Notes
Expansion module with
2 relay outputs (Form-C, potential free, max 5A)
2 Analog inputs (0-25mA, 100 Ohm internal shunt)
2 Digital inputs with counters (resettable registers)
Connect:
ezeio D0 -> B/RX
ezeio D1 -> A/TX
ezeio GND -> GND
Module factory default is 9600 bps, no parity, address 32
Write to holding register 2100 (0x0834) to set speed:
3 = 9600
4 = 19200
6 = 57600
NOTE: Internal DIP switch sets address, but it upside-down, reversed and has a 1-offset.
So switch in ON position means binary 0.
Switch 5 = LSB, Switch 1 = MSB.
Then add 1 to the switch setting to get actual address.
Examples:
All on = address 1
All off = address 32
5 off, 4-1 on gives address 2
5-2 on, switch 1 off gives address 17