
Modbus Commands
C-7
TIWAY I Gateway User Manual
I000000
Response: 07 01 01 1A XXXX
Checksum (XXXX)
Data (1A)
Number of bytes (01)
Function code (01)
Slave address (07)
Figur
e C-4
Read
Coil Status Example — Response
The response returns in the data field a single byte (1A) which contains the
1’
s or 0’
s for the 5 coils, packed out with zeros for the three high bits.
I000000
1A =
0 0 0 1 1 0 1 0
Coil 0A (OFF)
Coil 0B (ON)
Coil 0C (OFF)
Coil 0D (ON)
Coil 0E (ON)
Packed with zeros (000)
Figur
e C-5
Read
Coil Status Example — Data Field
Comentarios a estos manuales