User`s manual

SH-300 Text Panel
Page 86 of 103
When writing coil M25 status 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 41 Device address 01
4 Address offset 00 Function code 41
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) 00 Address Low order bit (Hi ) 00
11
Coil status value0xFF express M
ON0x00 express M OFF
FF/00 Address Low order bit (Lo) 19
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 04/05 Verify value 04
3. Read single byte of Register B0X42
Use this function code to read the value of single byte of Register in controller. The query message
specifies the Register address. Registers are addressed starting at zero: Register 0 is addressed
as 0.
4. Write single byte of Register B0X43
Use this function code to write the value into the single byte of Register in controller .The query
message specifies the Register address and the value of single byte to be written. Registers are
addressed starting at zero: Register 0 is addressed as 0
5. Read single Register W0X44
Use this function code to read the value of single Register in controller. The query message
specifies the Register address. Registers are addressed starting at zero: Register 0 is addressed
as 0. the Register data in the response message occupy two byte.
t
he first byte contains the high
order bits and the second byte contains the low order bits.
6. Write single Register W0X45
Use this function code to write the value into single Register in controller .The query message
specifies the Register address and the value of single Register to be written. Registers are
addressed starting at zero: Register 0 is addressed as 0