This demonstrates the process of communicating through ethernet to a SEL-2431 Voltage Regulator Control Panel using SEL Fast Message. Basic device commands and data cna be requested and displayed over a connected serial port. This is a basic version and full testing and documentation has yet to be completed.

Dependencies:   BufferedSerial analogAverager voltageRegulator netStatReg analogMinMax CounterMinMax

Revision:
12:4bb088c27838
Parent:
3:ac1f2af8bd0f
--- a/nettime.cpp	Wed Oct 02 19:16:25 2019 +0000
+++ b/nettime.cpp	Mon Oct 07 12:44:38 2019 +0000
@@ -1,24 +1,24 @@
 #include "nettime.h"
 
-static volatile unsigned int timerval = 0;
-static volatile bool tickflag = false;
+static volatile bool polltickflag = false;
+static volatile bool sendtickflag = false;
 
-int getTime(void)
+bool getPollTick(void)
 {
-    return timerval;
+    return polltickflag;
 }
 
-bool getTick(void)
+void setPollTick(bool tickval)
 {
-    return tickflag;
+    polltickflag = tickval;
 }
 
-void setTick(bool tickval)
+bool getSendTick(void)
 {
-    tickflag = tickval;
+    return sendtickflag;
 }
 
-void incTime(void)
+void setSendTick(bool tickval)
 {
-    timerval=timerval+1;
+    sendtickflag = tickval;
 }
\ No newline at end of file