10-3
Modbus TCP Master Function Proce-
dure
When you use the Modbus TCP Master Function, you need to also use the following instructions other
than the Modbus TCP instruction.
Instruction Description
SktTCPConnect Establishes the TCP/IP connection with the Modbus TCP slave before the execu-
tion of the Modbus TCP instruction. The default connection port is 502.
SktClose Disconnects the TCP/IP connection with the Modbus TCP slave after the execution
of the Modbus TCP instruction.
SktSetOption The application of the TCP-NODELAY option in the TCP/IP settings with the Mod-
bus standard is recommended. Set it before the execution of the Modbus TCP in-
struction after the TCP/IP connection is established with the Modbus TCP slave.
SktClearBuf The receive buffer is not cleared during the execution of the Modbus TCP instruc-
tion. This instruction is executed if the receive buf
fer needs to be cleared during
use of the Modbus TCP instruction. For example, execute this instruction when the
previous Modbus TCP command response may be stored in the receive buffer.
10 Modbus TCP Master Function
10-4
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)