Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions
Function
The SktGetTCPStatus instruction gets the TCP connection status TcpStatus of the socket that is speci-
fied with Socket. If there is receive data in the receive buffer, the value of data received flag DatRecv-
Flag changes to TRUE. Storage of the data to TcpStatus and DatRcvFlag is completed when the
instruction is completed normally (i.e., when the value of Done changes to TRUE).
The data type of Socket is structure _sSOCKET. The specifications are as follows:
Name
Socket
Handle
SrcAdr*
PortNo*
IpAdr*
DstAdr*
PortNo*
IpAdr*
* These members are not used for this instruction.
The data type of TcpStatus is enumerated type _eCONNECTION_STATE. The meanings of the enu-
merators of enumerated type _eCONNECTION_STATE are as follows:
Enumerators
_CLOSED
_LISTEN
_SYN_SENT
_SYN_RECEIVED
_ESTABLISHED
_CLOSE_WAIT
_FIN_WAIT1
_CLOSING
_LAST_ACK
_FIN_WAIT2
_TIME_WAIT
Related System-defined Variables
Name
*1
_EIP_EtnOnlineSta
*2
_EIP1_EtnOnlineSta
*3
_EIP2_EtnOnlineSta
*4
_EIPIn1_EtnOnlineSta
*1 Use this variable name for an NJ-series CPU Unit.
*2 Use this variable name for port 1 on an NX-series CPU Unit, or for an NY-series Controller.
*3 Use this variable name for port 2 on an NX-series CPU Unit.
2-1078
Meaning
Description
Socket
Socket
Handle
Handle for data commu-
nications
Local address Local IP address and
port number
Port number
Port number
IP address
IP address or host
name. A DNS or Hosts
setting is required to use
a host name.
Destination
Destination IP address
address
and port number
Port number
Port number
IP address
IP address or host
name. A DNS or Hosts
setting is required to use
a host name.
Meaning
CLOSED status
LISTEN status
SYN SENT status
SYN RECEIVED status
ESTABLISHED status
CLOSE WAIT status
FIN WAIT1 status
CLOSING status
LAST ACK status
FIN WAIT2 status
TIME WAIT status
Meaning
Online
Data type
_sSOCKET
UDINT
_sSOCKET_
ADDRESS
UINT
STRING
_sSOCKET_
ADDRESS
UINT
STRING
Data
type
BOOL
This variable indicates when built-in EtherNet/IP
port communications can be used.
TRUE: Communications are possible.
FALSE: Communications are not possible.

NY-series Instructions Reference Manual (W560)

Valid range
Unit
Default
---
---
---
0
Depends on
---
data type.
---
---
---
1 to 65535
0
Depends on
data type.
---
''
---
---
---
1 to 65535
0
Depends on
---
data type.
''
Description

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents