Omron NY532-5400 User Manual page 281

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

Advertisement

2 :
SktUDPRcv_instance(
Execute
Socket
TimeOut
Size
RcvDat
IF (SktUDPRcv_instance.Done=TRUE) THEN
Stage
ELSIF (SktUDPRcv_instance.Error=TRUE) THEN
Stage
END_IF;
3 :
WkSocket.DstAdr.PortNo:=UINT#6000;
WkSocket.DstAdr.IpAdr :='192.168.250.1';
SktUDPSend_instance(
Execute
Socket
SendDat
Size
IF (SktUDPSend_instance.Done=TRUE) THEN
Stage
ELSIF (SktUDPSend_instance.Error=TRUE) THEN
Stage
END_IF;
4 :
SktClose_instance(
Execute
Socket
IF (SktClose_instance.Done=TRUE) THEN
Stage
ELSIF (SktClose_instance.Error=TRUE) THEN
Stage
END_IF;
0 :
DoSendAndRcv:=FALSE;
Trigger
ELSE
DoSendAndRcv:=FALSE;
Trigger
END_CASE;
END_IF;
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User's Manual (W563)
// Request receiving data.
:=TRUE,
:=WkSocket,
:=UINT#0,
:=UINT#2000,
:=RcvSocketDat[0]);
:=INT#3;
:=INT#20;
// Send request
:=TRUE,
:=WkSocket,
:=SendSocketDat[0],
:=UINT#2000);
:=INT#4;
:=INT#30;
// Request closing data.
:=TRUE,
:=WkSocket);
:=INT#0;
:=INT#40;
// Normal end
:=FALSE;
// Interrupted by error.
:=FALSE;
9 Socket Service
// Socket
// Timeout value
// Receive data size
// Receive data
// Normal end
// Error end
// Socket
// Send data
// Send data size
// Normal end
// Error end
// Socket
// Normal end
// Error end
9
9-23

Advertisement

Table of Contents
loading

Table of Contents