10-17.Read digital input/output status
Command
ID 01 00 SS 00 08 (CRC)
Syntax
Description
ID
Address of setting module 1~247
01
Function Code
00
Start channel number
SS
SS=00 Read DO status
SS=20 Read DI status
SS=40 Latch low
SS=60 Latch High
00 08
Output channel number
Response
ID 01 BC DD (CRC)
ID 01 :Command Line
BC: Byte counter
DD: DIO Status
ID 81 ER (CRC)
ID 81 :Function Code ER=00 Syntax error
ER=01 Data Format error
ER=02 Start channel error
ER=03 I/O out of range
Example:
Send command :”
01 01 00 00 00 08 ”…..Read DO status.
Response:” 01 01 01 36 ”….. CH1~2 =on,CH4~5=on.
Send command :”
01 01 00 20 00 08 ”…..Read DI status.
Response:” 01 01 01 DF ”….. CH5 Enable.
Send command :”
01 01 00 40 00 8 ”…..Read Latch Low.
Response:”
01 01 01 01
”….. bit0 have been triger.
46
Содержание TRP-C29U
Страница 3: ...1 4 Block Diagram...
Страница 5: ...2 2 Wire Connection 3 USB to serial Driver Install...
Страница 50: ...If you don t know the module s ID may select Scan to find the module s setting 50 Figure 2...
Страница 52: ...12 Application 52...