11: M
ODBUS
C
OMMUNICATION
11-24 S
MART
AXIS P
RO
/L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
Modbus TCP Server
When the SmartAXIS is configured as the Modbus TCP server, Modbus TCP client devices can read/write data to the SmartAXIS.
When the SmartAXIS receives a valid request from a Modbus TCP client device, the data is read or written according to the request
received. The communication data received from Modbus TCP clients is processed at the END processing of the user program.
Modbus TCP Server Specifications
Address Map
Modbus TCP client can access the Modbus devices (Coil, Input Relay, Input Register, and Holding Register) of Modbus server to
read or write the device data (I, Q, M, R, T, C, and D) of SmartAXIS. Refer to the following table to configure the Modbus TCP
clients.
*1: These 4-digit addresses are used in the communication frame. To calculate the address used in communication frame, extract lower 5 digits of
the Modbus address, subtract 1 from the value, and convert the result into hexadecimal. For details, see “Modbus Slave Communication” on
page 11-8.
*2: Access within the device range for the SmartAXIS type used.
Parameter Modbus TCP Server
Slave Number Ignored
Response Time 1.5 ms
Number of Clients that can Access Simultaneously 3 (1 client per 1 connection)
Port Number 502 (can be changed between 0 and 65535)
Supported Function Code
01 Read Coil Status
02 Read Input Status
03 Read Holding Registers
04 Read Input Registers
05 Force Single Coil
06 Preset Single Register
15 Force Multiple oils
16 Preset Multiple Registers
Modbus Device Name
Modbus Address
Map (Decimal)
Communication
Frame Address
*1
SmartAXIS Device
*2
Applicable
Function Code
Coil
(000000 and above)
000001 - 000112 0000 - 006F Q0 - Q141
1, 5, 15
000701 - 000828 02BC - 033B R0 - R127
001001 - 002024 03E8 - 07E7 M0 - M1277
009001 - 009144 2328 - 23B7 M8000 - M8177
Input Relay
(100000 and above)
100001 - 100126 0000 - 007D I0 - I155
2101001 - 101200 03E8 - 04AF T0 - T199 (timer contact)
101501 - 101700 05DC - 06A3 C0 - C199 (counter contact)
Input Register
(300000 and above)
300001 - 300200 0000 - 00C7 T0 - T199 (timer current value)
4
300501 - 300700 01F4 - 02BB C0 - C199 (counter current value)
Holding Register
(400000 and above)
400001 - 402000 0000 - 07CF D0 - D1999
3, 6, 16
408001 - 408200 1F40 - 2007 D8000 - D8199
409001 - 409200 2328 - 23EF T0 - T199 (timer preset value)
3
409501 - 409700 251C - 25E3 C0 - C199 (counter preset value)