ProXR controllers allow you to read the on/off status one bank of relays or 32 banks of relays at a time. Reading the current status of relays will incate the on/off status of all relays at any given time while reading the power-up status will indicate the on/off status of relays when power is first applied to the controller.
The last 4 commands in the sample return 35 bytes, beginning with a 170 header byte, followed by a value of 32 indicating the number of data bytes to expect, followed by 32 relay status bytes beginning with Bank 1, and concluding with a checksum value, which is the 8-bit sum of all previous bytes.
Hex Version of Above Table32x = 32 Bytes Returned by this Command
CK = Checksum (00-FF)
-- = Skip
TX: | 2 | 3 | 4 | 5 | 6 | CK | Function | RX: | 2 | 3 | CK |
---|---|---|---|---|---|---|---|---|---|---|---|
AA | 03 | FE | 7C | 01 | -- | 28 | Read the Current Status of Relay Bank 1 | AA | 01 | 00 | AB |
AA | 03 | FE | 7C | 02 | -- | 29 | Read the Current Status of Relay Bank 2 | AA | 01 | 00 | AB |
AA | 03 | FE | 8F | 01 | -- | 3B | Read the Power-Up Status of Relay Bank 1 | AA | 01 | 00 | AB |
AA | 03 | FE | 8F | 02 | -- | 3C | Read the Power-Up Status of Relay Bank 2 | AA | 01 | 00 | AB |
AA | 03 | FE | 7C | 00 | -- | 27 | Read the Current Status of Relay Banks 1-32 | AA | 23 | 32x | CK |
AA | 04 | FE | 7C | 00 | 01 | 29 | Read the Current Status of Relay Banks 33-64 | AA | 23 | 32x | CK |
AA | 03 | FE | 8F | 00 | -- | 3A | Read the Power-Up Status of Relay Banks 1-32 | AA | 23 | 32x | CK |
AA | 04 | FE | 8F | 00 | 01 | 3C | Read the Power-Up Status of Relay Banks 33-64 | AA | 23 | 32x | CK |