
Programmable Serial-to-Ethernet Device Server
PDS Series User Manual, Version 2.5, Mar. 2019
-
155 -
8.9
@AA
This function reads the status of the digital input/output
Syntax:
@AA[CHK](cr)
@
A delimiter character
AA
The address of the module (01 only for PDS)
Response:
Valid Command:
>(Data)[CHK](cr)
Invalid Command:
?AA[CHK](cr)
*A syntax error or a communication error will result in no response.
>
A delimiter for a valid command
?
A delimiter for an invalid command
AA
The address of the module (01 only for PDS)
(Data)
The status of the DIO
Example:
Command
Response
$01M
>050F
1.
Read the status of the DIO. Returns 050F.
2.
The first two bytes indicate the status of the DO. 05 means that channel 0 and channel 2
are 1, and the other channels are 0.
3.
The last two bytes indicate the status of the DI. 0F means that all 4 channels read are 1