![TDK-Lambda GXE600 Series Communications Manual Download Page 11](http://html2.mh-extra.com/html/tdk-lambda/gxe600-series/gxe600-series_communications-manual_4197170011.webp)
COMMUNICATION MANUAL
GXE600 SERIES
TDKLambda
<Page>
11/79
3.3 GXE supported function code
GXE supports the following function codes (FC).
Function name
4
Read Input register
3
Read Holding register
6
Write single Holding register
16
Write multi Holding register
23
Read/Write multi Holding register
For simplification, each query is described with only PDU in the following explanation.
Any queries for the actual communication line must be sent with ADU (ID + PDU + CRC).
3.3.1 FC : 4 (0x04) Read Input register
The read content of consecutive Input registers.
Broadcast is invalid.
・Request PDU
Function code
0x04
Starting Address
Refer to 4.Register list
Quantity of Registers
1 ~ 15 (0x000F)
*
* It is necessary to specify according to the actual register arrangement
・Response PDU
Function code
0x04
Number of data bytes
2 x N
Register data
Read data
N =Quantity of Registers specified in the query
・Error PDU
Function code
0x84
Exception code
Refet to 3.2.2
It can be used for data acquisition of single register, multi-register block and consecutive register block.
If a reserved address is included in the specified register address section [start address ~ (start a
number of registers - 1)], an exception response [Exception code 0x02: ILLEGAL DATA ADDRESS] is returned.
Even if the start address or the number of registers is invalid, 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).
1
1
Field
Number of bytes
Field value
1
1
N x 2
2
Field
Number of bytes
Field value
1
2
16 bit
(0x17)
Field
Number of bytes
Field value
16 bit
(0x06)
16 bit
(0x10)
16 bit
(0x03)
Data Type
FC
16 bit
(0x04)