I-7088 and M-7088 User Manual, Rev: A1.2 7MH-026-A12
103
2.41. @AADI
Description:
This command is used to read the status of the PWM output port
and the digital input port.
Syntax:
@AADI[CHKSUM](CR)
@
Delimiter character
AA
The address of the module to be read (00 to FF)
DI
The command to read the status of the PWM and digital
input
Response:
Valid Command:
!AAOOII[CHKSUM](CR)
InValid Command:
?AA[CHKSUM](CR)
!
Delimiter character for a valid command
?
Delimiter character for an invalid command
AA
The address of the responding module (00 to FF)
OO
A two-digit hexadecimal value, where bit 0 corresponds
to PWM channel 0, and bit 1 corresponds to PWM
channel 1, etc. When the bit is 0, it denotes that the
PWM is inactive and 1 denotes that the PWM is active.
II
A two-digit hexadecimal value, where bit 0 corresponds
to DI channel 0, and bit 1 corresponds to DI channel 1,
etc. When the bit is 0, it denotes that the DI is inactive
and 1 denotes that the DI is active.