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

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

Advertisement

Function
The SktTCPConnect instruction requests a connection between local TCP port number SrcTcpPort and
destination TCP port number DstTcpPort at destination address DstAdr. To do this, it executes the Con-
nect() socket function. The connection is established 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
*1
IpAdr
DstAdr
PortNo
IpAdr
*1 NULL is output for this member.
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.
*4 Use this variable name for the internal communication port on an NY-series Controller.
Additional Information
Refer to the NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (Cat. No. W506) or NY-
series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User's Manual (Cat. No. W563)
for details on socket services.

NY-series Instructions Reference Manual (W560)

Meaning
Description
Socket
Socket
Handle
Handle for data communica-
tions
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 and
address
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
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.
2 Instruction Descriptions
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
2-1063
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents