Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
2 :// Set Socket Option
3 :// Send request
4 :// Request closing data.
0 :// Normal end
ELSE// Interrupted by error.
END_CASE;
END_IF;
2-1090
END_IF;
SktSetOption_instance(
Execute:=TRUE,
Socket:=WkSocket);// Socket
OptionType:=_TCP_NODELAY, // Option type
OptionParam:= Nodelay); // NODELAY enabled
IF (SktSetOption_instance.Done=TRUE) THEN
Stage:=INT#3;// Normal end
ELSIF (SktSetOption_instance.Error=TRUE) THEN
Stage:=INT#20; // Error end
END_IF;
SktTCPSend_instance(
Execute:=TRUE,
Socket:=WkSocket);// Socket
SendDat:=SendSocketDat[0],// Send data
Size:=UINT#2000);// Send data size
IF (SktTCPSend_instance.Done=TRUE) THEN
Stage:=INT#4;// Normal end
ELSIF (SktTCPSend_instance.Error=TRUE) THEN
Stage:= INT#30; // Error end
END_IF;
SktClose_instance(
Execute:=TRUE,
Socket:=WkSocket);// Socket
IF (SktClose_instance.Done=TRUE) THEN
Stage:=INT#0;// Normal end
ELSIF (SktClose_instance.Error=TRUE) THEN
Stage:= INT#40; // Error end
END_IF;
DoTCP:=FALSE;
Trigger:=FALSE;
DoTCP:=FALSE;
Trigger:=FALSE;

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents