Omron NJ Series User Manual page 373

Machine automation controller, cpu unit built-in ethernet/ip port
Hide thumbs Also See for NJ Series:
Table of Contents

Advertisement

Stage
ELSIF (SktUDPSend_instance.Error=TRUE) THEN
Stage
END_IF;
3 :
SktUDPRcv_instance(
Execute
Socket
TimeOut
Size
RcvDat
IF (SktUDPRcv_instance.Done=TRUE) THEN
Stage
ELSIF (SktUDPRcv_instance.Error=TRUE) THEN
Stage
END_IF;
4 :
ocket
SktClose_instance(
Execute
Socket
IF (SktClose_instance.Done=TRUE) THEN
Stage
ELSIF (SktClose_instance.Error=TRUE) THEN
Stage
END_IF;
0 :
DoSendAndRcv
Trigger
ELSE
DoSendAndRcv
Trigger
END_CASE;
END_IF;
Remote Node Programming
The processing procedure at the remote node is as follows:
1
The SktUDPCreate instruction is used to make a request to create a UDP socket.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
:=INT#3;
:=INT#20;
:=TRUE,
:=WkSocket,
:=UINT#0,
:=UINT#2000,
:=RcvSocketDat[0]);
:=INT#4;
:=INT#30;
:=TRUE,
:=WkSocket);
:=INT#0;
:=INT#40;
:=FALSE;
:=FALSE;
:=FALSE;
:=FALSE;
9 Socket Service
// Normal end
// Error end
// Receive request
// Socket
// Timeout value
// Receive data size
// Receive data
// Normal end
// Error end
// Requestto close the s
// Socket
// Normal end
// Error end
// Normal end
// Interrupted by error.
9
9-19

Advertisement

Table of Contents
loading

Table of Contents