Appendix A - 1 -
Appendix
A- CYT-133SC DIO Command Protocol
This DIO command protocol is described here to let customer’s remote management software
to access Digital I/O state through Ethernet network by a specific TCP/UDP port.
Command Packet Format: (Host
CYT-133SC)
Length(Bytes) 2
2
32
32
2
1
Start Flag Command Data1 Data2 End
Flag
CRC
Command:
0x0001 - Read Digital I/O state
0x0003 - Trigger Digital I/O
0x0005 - Auto Report Current I/O State Packet
Return Packet Format: (CYT-133SC
Host)
Length(Bytes) 2
2
32
32
2
1
Start Flag Command Status Data1 Data2 End
Flag
CRC
The CYT-133SC returns by Return packet. You can get command status to know the result
after sending command packet and from Data1 and Data2 to know current I/O state.
Note:
Start Flag: 0xF0F0
End Flag: 0xF0F0
Command Status:
the definition of command code is as following
0x0002 – ACK of Read Digital I/O state
0x0004 – ACK of Trigger Digital I/O
0x0006 – ACK of E-mail Alarm Trigger
0x0010 – Report current Digital I/O state (If Auto Report I/O Status is enabled, you will receive
this report packet from CYT-133SC)
0xFFFC – Flag error, incorrect Start Flag or End Flag received in command packet
0xFFFD – Length error, the length of command packet is invalid
0xFFFE – CRC error, incorrect CRC value
0xFFFF – Command error, no such command
CRC value = 0 – total sum from field of ‘Start Flag” to “End Flag”
Содержание CYT-133SC
Страница 4: ... 2 End point ...