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