![Omron Sysmac NY512-1300 User Manual Download Page 273](http://html.mh-extra.com/html/omron/sysmac-ny512-1300/sysmac-ny512-1300_user-manual_742451273.webp)
9-15
9 Socket Service
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
9-
6 Det
ails on
Usin
g t
h
e Soc
ket Services
9
9-6-
2 Procedur
e to Use Socket Ser
vices
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.
9-6-2
Procedure to Use Socket Services
TCP
End socket communications.
Output variable: Done = TRUE
Normal End
Instruction end normally?
Output variable: Error = TRUE
Error End
Execute SktClose instruction.
Close Processing
Output variable: Done = TRUE
Normal End
Instruction end normally?
Output variable: Error = TRUE
Error End
Execute SktTCPRcv instruction.
Receive Processing
Output variable
BufferDataByte
≥
Number of send bytes
All data received?
Output variable
BufferDataByte
≤
Number of send bytes
Execute SktGetTCPSatus
instruction.
Checking TCP Status
Output variable: Done = TRUE
Normal End
Instruction end normally?
Output variable: Error = TRUE
Error End
Check error details based on
the error code and take
suitable actions.
Output variable: ErrorID
Execute SktTCPSend instruction.
Send Processing
Output variable: Done = TRUE
Normal End
Output variable: Error = TRUE
Error End
Instruction end normally?
Accepting a Connection
Execute SktTCPAccept instruction.
Opening a Connection
Execute SktTCPConnect instruction.
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
Summary of Contents for Sysmac NY512-1300
Page 459: ......