Omron Sysmac NJ-series User Manual page 341

Machine automation controller cpu unit built-in ethernet/iptm port
Hide thumbs Also See for Sysmac NJ-series:
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 For an NX701 CPU Unit, replace the variable with _EIP1_EtnOnlineSta (Port1 Online) or _EIP2_EtnOnlineSta
(Port2 Online), depending on the built-in EtherNet/IP port which is used.
For an NX1P2 CPU Unit, replace the variable with _EIP1_EtnOnlineSta (Port1 Online).
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
// 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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac nx-seriesSysmac nx1p2-10 seriesSysmac nx1p2-90 seriesSysmac nj501-5 seriesSysmac nj501-4 seriesSysmac nj501-3 series ... Show all

Table of Contents