Procedure To Use Socket Services - Omron NY532-5400 User Manual

Ny-series ipc machine controller industrial panel pc / industrial box pc
Hide thumbs Also See for NY532-5400:
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
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User's Manual (W563)
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

Advertisement

Table of Contents
loading

Table of Contents