Modbus Tcp Master Function Procedure - Omron sysmac NX102-9 Series Owner's Manual

Machine automation controller, cpu unit built-in ethernet/iptm port
Table of Contents

Advertisement

10 Modbus TCP Master Function
10-3 Modbus TCP Master Function
Procedure
When you use the Modbus TCP Master Function, you need to also use the following instructions other
than the Modbus TCP instruction.
Instruction
SktTCPConnect
SktClose
SktSetOption
SktClearBuf
10 - 4
Establishes the TCP/IP connection with the Modbus TCP slave before the exe-
cution of the Modbus TCP instruction. The default connection port is 502.
Disconnects the TCP/IP connection with the Modbus TCP slave after the execu-
tion of the Modbus TCP instruction.
The application of the TCP-NODELAY option in the TCP/IP settings with the
Modbus standard is recommended. Set it before the execution of the Modbus
TCP instruction after the TCP/IP connection is established with the Modbus TCP
slave.
The receive buffer is not cleared during the execution of the Modbus TCP
instruction. This instruction is executed if the receive buffer 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.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
Description

Advertisement

Table of Contents
loading

Table of Contents