EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 Instruction Descriptions
2-784
NJ-series Instructions Reference Manual (W502)
The SktGetTCPStatus instruction gets the TCP connection status TcpStatus of the socket that is spec-
ified 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:
* These members are not used for this instruction.
The data type of TcpSta is enumerated type _eCONNECTION_STATE. The meanings of the enumera-
tors of enumerated type _eCONNECTION_STATE are as follows:
Function
Name Meaning Description Data type Valid range Unit Default
Socket Socket Socket _sSOCKET ---
---
---
Handle Handle Handle for data commu-
nications
UDINT Depends on
data type.
--- ---
SrcAdr* Local address Local IP address and
port number
_sSOCKET_
ADDRESS
--- --- ---
PortNo* Port number Port number UINT 1 to 65535
--- ---
IpAdr* IP address IP address or host
name. A DNS or Hosts
setting is required to use
a host name.
STRING Depends on
data type.
DstAdr* Destination
address
Destination IP address
and port number
_sSOCKET_
ADDRESS
--- --- ---
PortNo* Port number Port number UINT 1 to 65535
--- ---
IpAdr* IP address IP address or host
name. A DNS or Hosts
setting is required to use
a host name.
STRING Depends on
data type.
Enumerators Meaning
_CLOSED CLOSED status
_LISTEN LISTEN status
_SYN SENT SYN SENT status
_SYN RECEIVED SYN RECEIVED status
_ESTABLISHED ESTABLISHED status
_CLOSE WAIT CLOSE WAIT status
_FIN WAIT1 FIN WAIT1 status
_CLOSING CLOSING status
_LAST ACK LAST ACK status
_FIN WAIT2 FIN WAIT2 status
_TIME WAIT TIME WAIT status
Related System-defined Variables
Name Meaning
Data
type
Description
_EIP_EtnOnlineSta Online BOOL Status of built-in EtherNet/IP port communications
TRUE: Can be used.
FALSE: Cannot be used.

Table of Contents

Related product manuals