Hey Guys, I'm trying to work out how to set two bits in a solar regulator to switch an output via MODBUS over IP using only one data point, or setting two data points simultaneously.
Here is an excerpt from the solar regulator manufacturer.
Register 4165 can be used to enable and disable both AUX1 and AUX2. It is split in half, the lower 8-bits control AUX1 the upper 8 bits control AUX2.
Setting bits 6&7 will effect AUX 1 and bits 14&15 will control AUX 2.
Setting these bits to 00 (decimal 0) will set the AUX OUTPUT LOW (0v)
Setting these bits to 01 (decimal 1) will enable the AUX port function (PV ON HIGH, WASTE NOT, etc).
Setting these bits to 10 (decimal 2) will set the AUX output HIGH (12v).
Setting these bits to 11 (decimal 3) is undefined and has no guaranteed functionality (it could do anything including turning into a blowfish).
What I need to do is have a clickable button on my graphical view which when clicked, changes the LED to Green Flashing and sets bit 6&7 to 10 to switch ON
Then to switch off, I need to have the button go red solid and set bits 6&7 to 00, then 1 second later, set to 01 OFF