10-2 Modbus TCP Master Function Details
The Modbus TCP Master Function can be used by executing Modbus TCP instructions in the user
program.
10-2-1
Modbus TCP Instruction Type
The Modbus TCP instruction type and function are as follows.
Instruction
Function
ModbusTCPCmd
Sends general commands to the Modbus TCP slave and receives responses.
ModbusTCPRead
Sends read commands to the Modbus TCP slave and receives responses.
ModbusTCPWrite
Sends write commands to the Modbus TCP slave and receives responses.
For details on Modbus TCP instructions, refer to the
NJ/NX-series Instructions Reference Manual (Cat.
No. W502)
.
10-2-2
Modbus TCP Instruction Function
This section describes Modbus TCP instruction functions.
Instruction
Function
ModbusTCPCmd
The ModbusTCPCmd instruction sends Modbus commands of the specified proto-
col data unit (PDU) to the specified Modbus TCP slave and receives responses.
ModbusTCPRead
The ModbusTCPRead instruction sends read commands to the specified Modbus
TCP slave and receives responses. The following four Modbus commands can be
sent by the ModbusTCPRead instruction.
•
Output read
•
Input read
•
Retained register read
•
Input register read
ModbusTCPWrite
The ModbusTCPWrite instruction sends write commands to the specified Modbus
TCP slave and receives responses. The following four Modbus commands can be
sent by the ModbusTCPWrite instruction.
•
One output write
•
One retained register write
•
Multiple output write
•
Multiple retained register write
10 Modbus TCP Master Function
10-3
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
10-2 Modbus TCP Master Func-
tion Details
10
10-2-1 Modbus TCP Instruction T
ype
Summary of Contents for Sysmac NX1P2-10 1 Series
Page 8: ...Manual Structure 6 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 34: ...Revision History 32 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 388: ...9 Socket Service 9 34 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 430: ...12 FTP Client 12 14 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 569: ...I Index I 1 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506 I...
Page 576: ...Index I 8 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 577: ......