Omron Sysmac NJ-series User Manual page 340

Machine automation controller cpu unit built-in ethernet/iptm port
Hide thumbs Also See for Sysmac NJ-series:
Table of Contents

Advertisement

9 Socket Service
3 :
SktGetTCPStatus_instance(
Execute
Socket
IF (SktGetTCPStatus_instance.Done=TRUE) THEN
Stage
ELSIF (SktGetTCPStatus_instance.Error=TRUE) THEN
Stage
END_IF;
4 :
SktTCPSend_instance(
Execute
Socket
SendDat
Size
IF (SktTCPSend_instance.Done=TRUE) THEN
Stage
ELSIF (SktTCPSend_instance.Error=TRUE) THEN
Stage
END_IF;
5 :
SktTCPRcv_instance(
Execute
Socket
TimeOut
Size
RcvDat
IF (SktTCPRcv_instance.Done=TRUE) THEN
Stage
ELSIF (SktTCPRcv_instance.Error=TRUE) THEN
Stage
END_IF;
6 :
SktClose_instance(
Execute
Socket
IF (SktClose_instance.Done=TRUE) THEN
Stage
ELSIF (SktClose_instance.Error=TRUE) THEN
Stage
END_IF;
9-26
// Request reading status.
:=TRUE,
:=WkSocket);
:=INT#4;
:=INT#30;
// Send request
:=TRUE,
:=WkSocket,
:=SendSocketDat[0],
:=UINT#2000);
:=INT#5;
:=INT#40;
// Request receiving data.
:=TRUE,
:=WkSocket,
:=UINT#0,
:=UINT#2000,
:=RcvSocketDat[0]);
:=INT#6;
:=INT#50;
// Request closing data.
:=TRUE,
:=WkSocket);
:=INT#0;
:=INT#60;
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
// Socket
// Normal end
// Error end
// Socket
// Send data
// Send data size
// Normal end
// Error end
// Socket
// Timeout value
// Receive data size
// Receive data
// Normal end
// Error end
// Socket
// Normal end
// Error end

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