9
Direct query command set
The only command required for this product is to query the status of the inputs if
needed. This may need to be done after a server reboot in order to get the current
status of inputs on the controller. This will be done via a TCP socket connection
to the controller’s IP address on the port number configured in the Listening Port
field during WiFi module setup in Base Station. While these are technically A/D
inputs we are simply using them as contact closure inputs. All inputs are pulled
low on the controller so if the input is not tripped its value will be 0. When the
input is tripped it will be pulled high and its status will be 255. It is recommended
that you assume any input above 200 is tripped with a contact.
Reads the 8-Bit Analog Input of Channels
This command will read the Analog Input value of the specified input and return a
value from 0-255.
Send Bytes:
Byte 1:
Byte 2:
Function:
Command
Parameter (Channel 1-8)
Decimal Values:
254
150-157
Hex Values
0xFE
0x96 - 0x9D
Receive Byte:
Decimal:
0-255
Hex:
0x00-0xFF
Multi Channel 8-Bit
Reads all 8 Analog Input Channels and replies with 8 bytes indicating the 8-bit
value of each Analog Input.
Send Bytes:
Byte 1:
Byte 2:
Function:
Command
Returns AD1 - AD8
Decimal Values:
254
166
Hex Values
0xFE
0xA6
Receive Byte:
Decimal:
0-255 (AD1-AD8)
Hex:
0x00-0xFF