Command
ID 0F SS NN 00 CN BC 00 (CRC)
Syntax
Description
ID
Address of setting module 1~247
0F
Function Code
SS
SS=00 Digital Output
SS=02 Clear Counter value
SS=03 Save Counter value to EEPROM
NN
Start channel number NN=00~07
00 CN
Channel number 1~8
BC
Byte Counter=01
00
Output value
Response
ID 0F SS NN 00 00 (CRC)
Command Valid
ID 8F ER (CRC)
ID 85 :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 0F 00 00 00 08 01 25 ”…..Set up the digital output valid.
Response:” 01 0F 00 00 00 08 ” set up the CH0,CH2,CH5 Enable.
Send command :” 01 0F 02 04 00 04 01 00 ”…..Clear channel counter from CH4~CH7 to
EEPROM
Response:” 01 0F 02 00 00 0F ” Command valid.
Send command :” 01 0F 03 00 00 08 01 00 ”…..Save channel counter from CH0~CH7 to
EEPROM
Response:” 01 0F 03 00 00 08 ” Command valid.
*When the module is in safe mode, any digital output command are invalid, you will get the
response “ID 8F FF”, which means the module is in safe mode, you can't change output status
Until the watchdog disable.
*Reset and power fail will not affect watchdog mode.
8. How to use the utility for windows
48
Содержание 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...