
Programmable Serial-to-Ethernet Device Server
PDS Series User Manual, Version 2.5, Mar. 2019
-
148 -
8.2
$AA6
This function reads the status of the digital I/O channels
Syntax:
$AA6[CHK](cr)
$
A delimiter character
AA
The address of the module (01 only for PDS)
6
A command for reading the digital I/O status
Response:
Valid Command:
!ddff00[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)
dd
The current status of the digital output channels
ff
The status of the digital input channel
Example:
Command
Response
$016
!0F0000
1.
Reads the digital input/output status. Returns 0F00;
2.
The status of digital output channels 3 to 0 is set as on.
3.
The status of all digital input channels is set to off.
Related Topics: