- C# 7.3
- .NETFramework v4.7.2
String ip
- host IP for tcp/ip (ex. 192.168.0.XXX)int port
- TCP port number for tcp/ip (ex. 502)
- Creates a new
Vaem
driver object (host IP
,tcp/ip port
) - Initializes and connects to the
VAEM
- Configures the 8 valve channels and saves these device settings
- While loop that repeatedly opens and closes all valves
- Reads the status of the
VAEM
after opening the valves - Waits one second between opening and closing, vice versa
- Creates a new
Modbus Client
with the givenhost IP address
andport number
- Attempts to connect to the client three times if needed
- If connected, initialize the
VAEM
- Sets the operating mode of the device to 1 using a write operation
- Selects the valve connected to channel one with a write operation
VAEM
is fully initialized and connected
- configureValves(int[] openingTimes);
- (configureVaem() selects all valves instead)
- openValve();
- closeValve();
- readStatus();
- clearError();
- saveSettings();
Name | GitHub | |
---|---|---|
John Alessio | [email protected] | @jalesssio |