Skttcpaccept - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

SktTCPAccept

The SktTCPAccept instruction requests accepting a TCP socket for the built-in EtherNet/IP.
Instruction
Name
SktTCPAccept
Accept TCP
Socket
Variables
Name
Meaning
SrcTcpPort
Local TCP
port number
TimeOut
Timeout time
Socket
Socket
Bit strings
SrcTcpPort
TimeOut
Socket
Function
The SktTCPAccept instruction requests accepting the port specified with the local TCP port number
ScrTcpPort. To do this, it executes the Socket(), Bind(), Listen(), and Accept() socket functions. The
instruction waits for the time set with timeout time TimeOut for a connection to be established with the
remote node. The connection is established when the instruction is completed normally (i.e., when the
value of Done changes to TRUE).
NY-series Instructions Reference Manual (W560)
FB/
Graphic expression
FUN
FB
SktTCPAccept_instance
SktTCPAccept
Execute
SrcTcpPort
TimeOut
I/O
Description
Local TCP port number
Input
0: No timeouts
1 to 65535: 0.1 to 6553.5s
Output
Socket
Integers
OK
OK
Refer to Function for details on the structure _sSOCKET.
2 Instruction Descriptions
SktTCPAccept_instance(Execute,
SrcTcpPort, TimeOut, Done, Busy,
Error, ErrorID, Socket);
Done
Busy
Error
ErrorID
Socket
Valid range
1 to 65535
---
Depends on data
0.1 s
type.
---
---
ST expression
Unit
Default
1
0
---
Times, durations, dates,
and text strings
2-1059
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents