Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
Function
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:
Name
Socket
Handle
SrcAdr*
PortNo*
IpAdr*
DstAdr*
PortNo*
IpAdr*
* 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:
Enumerators
_CLOSED
_LISTEN
_SYN SENT
_SYN RECEIVED
_ESTABLISHED
_CLOSE WAIT
_FIN WAIT1
_CLOSING
_LAST ACK
_FIN WAIT2
_TIME WAIT
Related System-defined Variables
Name
_EIP_EtnOnlineSta
2-784
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
Status of built-in EtherNet/IP port communications
TRUE: Can be used.
FALSE: Cannot be used.

NJ-series Instructions Reference Manual (W502)

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents