Omron NY532-5400 User Manual page 285

Ny-series ipc machine controller industrial panel pc / industrial box pc
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

0 :
DoTCP
Trigger
ELSE
DoTCP
Trigger
END_CASE;
END_IF;
 Remote Node Programming
In this example, programming is also required in the remote node. The order of sending and receiv-
ing is reversed in comparison with the above procedure.
1
The SktTCPAccept instruction is executed to request accepting a TCP socket.
2
The SktTCPRcv instruction is executed to request receiving data. The receive data is stored in
RcvSocketDat[].
3
The SktTCPSend instruction is executed to request sending data. The data in SendSocketDat[]
is sent.
4
The SktClose instruction is executed to close the socket.
ST
Internal
Variables
External
Variables
*1 Replace the variable name with _EIP1_EtnOnlineSta (Port1 Online) or _EIPIn1_EtnOnlineSta (Internal Port1
Online), depending on which communications port you use.
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User's Manual (W563)
// Normal end
:=FALSE;
:=FALSE;
// Interrupted by error.
:=FALSE;
:=FALSE;
Variable
Trigger
BOOL
DoTCP
BOOL
Stage
INT
RcvSocketDat
ARRAY[0..1999] OF
BYTE
WkSocket
_sSOCKET
SendSocketDat
ARRAY[0..1999] OF
BYTE
SktTCPAccept_instance
SktTCPAccept
SktTCPSend_instance
SktTCPSend
SktTCPRcv_instance
SktTCPRcv
SktClose_instance
SktClose
Variable
*1
BOOL
_EIP_EtnOnlineSta
Data type
Initial value
False
False
0
[2000(16#0)]
(Handle:=0,
SrcAdr:=(PortNo:=0,IpAdr:=''),
DstAdr:=(PortNo:=0,IpAdr:=''))
[2000(16#0)]
Data type
Constant
9 Socket Service
Comment
Execution condi-
tion
Processing
Status change
Receive data
Socket
Send data
Comment
Online
9-27
9

Advertisement

Table of Contents
loading

Table of Contents