User`s manual
SH-300 User’s Manual Connection with PLC
Page 89 of 103
Here is an example of reading alarm list coil M1-M8 status (M0 is the lowest coil)
a. Make the alarm list displayed as the following:
b. Use function key to set coil M1.M2.M3.M8 ON and others OFF.
Description: The status messages of coil M1-M8: [0E][01]
Coil No. M7 M6 M5 M4 M3 M2 M1 M0
Coil status 0 0 0 0 1 1 1 0
data 0 E
Coil No. M8
Coil status 0 0 0 0 0 0 0 1
data 0 1
When read coil M1-M8 status in controller the data format of query message from SH-300 and
response message from controller is shown as following:
Byte
NO.
Query format (controller receive) Example Response format (controller send) Example
0 Framing starting 55 Framing starting 55
1 Framing starting 55 Framing starting 55
2 Device address 01 Response status FF
3 Function code 48 Device address 01
4 Address offset 00 Function code 48
5 Reserved byte 00 Address offset 00
6 Reserved byte 00 Reserved byte 00
7 Address high order bit (Hi) 00 Reserved byte 00
8 Address high order bit (Lo) 00 Address high order bit (Hi) 00
9 Address Low order bit (Hi) 00 Address high order bit (Lo) 00
10 Address Low order bit (Lo) 01 Address Low order bit (Hi) 00
11
The quantity of the coil to be
read
08 Address Low order bit (Lo) 01
12 Reserved byte 00 The byte count occupied by coil status 02
13 Reserved byte 00 Coil status [data 1] 0E
14 Reserved byte 00 Coil status [data N] 01
15 Reserved byte 00 Verify value 04
16 Verify value FC
c. Connect SH-300 with PC
d. Click“ ”enter into simulation mode