
6: M
ODBUS
C
OMMUNICATION
6-26
FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730
Modbus TCP Server Communication Settings
Local Host Port No.
Configure the local host port number between 0 and 65,535. The same local host port number can be used with multiple
connection numbers.
If the same port number is used with multiple connections, Modbus TCP clients (as many as the number of the connections) can
communicate with FC6A Series MicroSmart through the same port number.
Allow Access by IP Address
You can set the IP address for a device to permit access. By setting the allowed IP address, only the device with the specified IP
address can establish a connection with the FC6A Series MicroSmart and communicate with the Modbus TCP server. When the
same local host port number is configured in multiple connections, all the allowed IP address settings are effective. If a connection
in which the allowed IP address it not configured uses the same local host port number, arbitrary access is allowed through the
port.
Modbus TCP Communication Format
This section describes the communication format used for Modbus TCP client and server communication. Modbus TCP
communication format starts with the Modbus TCP header followed by the RTU mode communication format without the idle 3.5
characters at both ends and CRC as shown below.
Modbus TCP Communication Format
Transaction ID
The Modbus TCP server (slave) returns the request ID sent from the client (master) without any change. When receiving the
returned request ID, the client can confirm to which request the response was returned. When confirmation is not required,
designate 0 as a transaction ID.
Protocol ID
Designate 0 to identify Modbus TCP protocol.
Message Length
Designate the length of the following message in bytes.
Unit ID
The ID for identifying the device. Store the slave number of the Modbus TCP server. The FC6A Series MicroSmart Modbus TCP
server accepts and processes requests when the unit ID of the received request is not 0. When the unit ID is 0, the received
request is processed as broadcast communication and no response is returned to the Modbus TCP client.
Function Code
Designate a function code, such as 01 (read coil status) and 02 (read input status).
Data
Designate required data for each function.
Example 1) If two connections use the same local port number and an allowed IP address is not configured for both
connections, access from a total of two clients with any IP addresses is accepted.
Example 2) If two connections use the same local port number and 192.168.1.101 and 192.168.1.102 are configured as the
allowed IP addresses, access from a total of two clients whose IP addresses are 192.168.1.101 and 192.168.1.102
is accepted.
Example 3) If connection 1 and 2 use the same local port number, an allowed IP address 192.168.1.101 is configured for
connection 1, and the allowed IP address is not configured for connections, access from a total of two clients with
any IP addresses is accepted.
Transaction ID
Protocol ID
Message Length
(bytes)
Unit ID
Function
Code
Data
2 bytes
2 bytes
2 bytes
1 byte
1 byte
N bytes
RTU Mode
Communication Format
Idle
3.5 characters
Slave No.
Function
Code
Data
CRC
Idle
3.5 characters
1 byte
1 byte
N bytes
2 bytes
Modbus TCP Header
Содержание MICROSmart FC6A-C16K1CE
Страница 1: ...B 1730 2 FC6A SERIES All in One Type Communication Manual...
Страница 60: ...3 COMMUNICATION SETTINGS 3 22 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 76: ...4 MAINTENANCE COMMUNICATION 4 16 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 126: ...5 USER COMMUNICATION INSTRUCTIONS 5 50 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 158: ...6 MODBUS COMMUNICATION 6 32 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 200: ...8 J1939 COMMUNICATION 8 32 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 218: ...10 SEND E MAIL FUNCTION 10 16 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 252: ...INDEX 4 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730 INDEX...