User`s manual

SH-300 Text Panel
Page 88 of 103
Here is an example of writing 2A6B8C9D hex into two Registers 58.59 in controller
a. Make the screen displayed as the following:
When write 2A6B8C9D hex into two Registers 58 59 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 47 Device address 01
4 Reserved byte 00 Function code 47
5 Reserved byte 00 Reserved byte 00
6 Address high order bit (Hi) 00 Reserved byte 00
7 Address high order bit (Lo) 00 Address high order bit (Hi) 00
8 Address Low order bit (Hi) 00 Address high order bit (Lo) 00
9 Address Low order bit (Lo ) 3A Address Low order bit (Hi) 00
10 Register 58 data Hi 8C Address Low order bit (Lo) 3A
11 Register 58 data Lo 9D Reserved byte 00
12 Register 59 data Hi 2A Reserved byte 00
13 Register 59 data Lo 6B Reserved byte 00
14 Reserved byte 00 Reserved byte 00
15 Reserved byte 00 Reserved byte 00
16 Verify value EA Verify value 2B
9. Read a series of coils M 0X48
Use this function code to read a series of coil status in controller. The query message specifies
coil starting address .The quantity of coil status byte depends on the quantity of the coil to be
read and the coil starting address, N=(the coil number + the coil starting address)/8 if the
remainder is unequal to zero N=N+1, Coil status [Data 1]….. [Data N]: each bit of byte indicate
one coil status .In which bit of which byte the coil M status information is depends on the starting
address of M and the quantity of the coils to be read. The address of M is octal. If the returned
coil quantity is not a multiple of eight, the remaining bits in the final data byte will be padded with
zeros (toward the high order end of the byte).
b. Connect SH-300 with PC, download the
screen into SH-300.
c. click“ ”enter into simulation mode
write 2A6B8C9D hex into two registers 58.59