![TDK-Lambda GXE600 Series Communications Manual Download Page 13](http://html2.mh-extra.com/html/tdk-lambda/gxe600-series/gxe600-series_communications-manual_4197170013.webp)
COMMUNICATION MANUAL
GXE600 SERIES
TDKLambda
<Page>
13/79
・Message exchange example
The Read the Holding register for two words from the start address 100d (0x0064)
Query
Response
Field
[HEX]
Field
[HEX]
Function code
0x03
Function code
0x03
Start address Hi
0x00
Number of data bytes
0x04
Start address Lo
0x64
Register 0x0064 Hi
0x0A
Number of registers Hi
0x00
Register 0x0064 Lo
0x01
Number of registers Lo
0x02
Register 0x0065 Hi
0x00
Register 0x0065 Lo
0x03
It means the following contents from above response data.
CNT setting : 0x0A01
PVCC setting : 0x0003
3.3.3 FC : 6 (0x06) Write single Holding register
The Updates the content of a single Holding register.
If the specified register is supported non-volatile memory, it is updated as non-volatile data.
Broadcast is valid.
・Request PDU
Field
Number of bytes
Field value
Function code
1
0x06
Starting Address
2
Refer to 4.Register list
Register data
2
Write data
・Response PDU
Field
Number of bytes
Field value
Function code
1
0x06
Starting Address
2
Refer to 4.Register list
Register data
2
Write data echo back
・Error PDU
Field
Number of bytes
Field value
Function code
1
0x86
Exception code
1
Refer to 3.2.2
It can be used to update data of a single register.
If the specified start address is a reserved address, an exception response [Exception code 0x02: ILLEGAL
DATA ADDRESS] is returned.
Exception response [Exception code 0x03: ILLEGAL DATA VALUE] is returned if the Request PDU size is not
the valid size (5 bytes) or the register data is out of the allowable range.
When an exception response occurs, non-volatile memory is not updated.