Procedure To Use Socket Services - Omron Sysmac NJ-series User Manual

Machine automation controller cpu unit built-in ethernet/iptm port
Hide thumbs Also See for Sysmac NJ-series:
Table of Contents

Advertisement

9-6-2

Procedure to Use Socket Services

You execute special instructions for sockets in sequence to use the socket services according to the
procedure shown below. Use the values of the output variables for each instruction to confirm that each
instruction is completed normally.
TCP
Opening a Connection
Execute SktTCPConnect instruction.
Normal End
Output variable: Done = TRUE
Normal End
Output variable: Done = TRUE
Output variable BufferDataByte
≥ Number of send bytes
Normal End
Output variable: Done = TRUE
Normal End
Output variable: Done = TRUE
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
Accepting a Connection
Execute SktTCPAccept instruction.
Instruction end normally?
Send Processing
Execute SktTCPSend instruction.
Instruction end normally?
Checking TCP Status
Execute SktGetTCPSatus
instruction.
All data received?
Receive Processing
Execute SktTCPRcv instruction.
Instruction end normally?
Close Processing
Execute SktClose instruction.
Instruction end normally?
End socket communications.
Error End
Check error details based on
Output variable: Error = TRUE
the error code and take
suitable actions.
Output variable: ErrorID
Error End
Output variable: Error = TRUE
Output variable BufferDataByte
≤ Number of send bytes
Error End
Output variable: Error = TRUE
Error End
Output variable: Error = TRUE
9 Socket Service
Check error details based on
the error code and take
suitable actions.
Output variable: ErrorID
Check error details based on
the error code and take
suitable actions.
Output variable: ErrorID
Check error details based on
the error code and take
suitable actions.
Output variable: ErrorID
9-15
9

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac nx-seriesSysmac nx1p2-10 seriesSysmac nx1p2-90 seriesSysmac nj501-5 seriesSysmac nj501-4 seriesSysmac nj501-3 series ... Show all

Table of Contents