User`s manual

SH-300 User’s Manual Connection with PLC
Page 87 of 103
7. Read double Register DW0X46
Use this function code to read the value of double Registers in controller. The query message
specifies the Register starting address. Registers are addressed starting at zero: Register 0 is
addressed as 0. Each Register data in the response message occupy two byte. The first byte
contains the high order bits and the second contains the low order bits.
Here is an example reading the value of Register 35 36
a. Make the screen displayed as the following:
When reading Register 35 36 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 46 Device address 01
4 Reserved byte 00 Function code 46
5 Reserved byte 00 Register 35 data Hi C6
6 Address high order bit (Hi) 00 Register 35 data Lo D8
7 Address high order bit (Lo) 00 Register 36 data Hi A2
8 Address Low order bit (Hi) 00 Register 36 data Lo B9
9 Address Low order bit (Lo) 23 Reserved byte 00
10 Reserved byte 00 Reserved byte 00
11 Reserved byte 00 Reserved byte 00
12 Reserved byte 00 Reserved byte 00
13 Reserved byte 00 Reserved byte 00
14 Reserved byte 00 Reserved byte 00
15 Reserved byte 00 Reserved byte 00
16 Verify value 14 Verify value E9
8. Write double Register DW0X47
Use this function code to write the value into two continuous Register in controller
.
The query
message specifies the Register starting address and the data of double Register to be written.
Registers are addressed starting at zero: register 0 are addressed as 0.
b. Connect SH-300 with PC, download the
screen into SH-300
c. Click“ ”to enter into simulation mode.
Display the set value of Register35 36.