2 Instruction Descriptions
2-760
NJ-series Instructions Reference Manual (W502)
3 :
SendSocketDat:=RcvSocketDat;
SktUDPSend_instance(
Execute :=TRUE,
Socket :=WkSocket,
SendDat:=SendSocketDat[0],
Size :=UINT#2000);
IF (SktUDPSend_instance.Done=TRUE) THEN
Stage:=INT#4;
ELSIF (SktUDPSend_instance.Error=TRUE) THEN
Stage:=INT#30;
END_IF;
4 :
SktClose_instance(
Execute:=TRUE,
Socket :=WkSocket);
IF (SktClose_instance.Done=TRUE) THEN
Stage:=INT#0;
ELSIF (SktClose_instance.Error=TRUE) THEN
Stage:=INT#40;
END_IF;
0 :
DoSendAndRcv:=FALSE;
Trigger :=FALSE;
ELSE
DoSendAndRcv:=FALSE;
Trigger :=FALSE;
END_CASE;
END_IF;
// Socket
// Normal end
// Error end
// Request closing.
// Normal end
// Interrupted by error.
// Socket
// Send data
// Send data size
// Normal end
// Error end
// Request sending data.