Procedure
Use the Modbus TCP Master Function as follows. Check the values of the output variables of each
instruction to confirm whether the instruction ended normally.
Execute SktTCPConnect
instruction.
Instruction end normally?
Execute SktSetOption instruction
Instruction end normally?
Execute Modbus TCP instruction
Instruction end normally?
Execute SktClose instruction
Instruction end normally?
End Modbus TCP Master
Function.
Check error details based on the error code which
is output to the ErrorID output variable and take
suitable actions.
Error end
Output variable ErrorID=TRUE
Normal end
Output variable
Done=TRUE
Normal end
Output variable
Done=TRUE
Normal end
Output variable
Done=TRUE
Normal end
Output variable
Done=TRUE
Check error details based on the error code which
is output to the ErrorID output variable and take
suitable actions.
Error end
Output variable ErrorID=TRUE
Check error details based on the error code which
is output to the ErrorID output variable and take
suitable actions.
Error end
Output variable ErrorID=TRUE
Check error details based on the error code which
is output to the ErrorID output variable and take
suitable actions.
Error end
Output variable ErrorID=TRUE
If the response from the other equipment is slow and the Modbus TCP instruction ends before the
response is returned, there may be data remaining in the receive buffer. In such cases, execute the
Modbus TCP instruction after the receive buffer is cleared with the SktClearBuf instruction or
SktTCPConnect instruction.
Refer to the Modbus TCP instructions in the
NJ/NX-series Instructions Reference Manual (Cat. No.
W502)
for sample programming.
10 Modbus TCP Master Function
10-5
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
10-3 Modbus TCP Master Func-
tion Procedure
10
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: ......