2 Instruction Descriptions
IF (OperatingStart=TRUE) THEN
NX_SerialRcv_instance(
ally received
OperatingStart:=FALSE;
END_IF;
// Execute NX_SerialRcv instruction.
IF (Operating=TRUE) THEN
NX_SerialRcv_instance(
IF (NX_SerialRcv_instance.Done=TRUE) THEN
vert character codes to a text string.
ger.
END_IF;
IF (NX_SerialRcv_instance.Error=TRUE) THEN
END_IF;
END_IF;
2-1182
Execute:=FALSE,
DevicePort:=DevicePort, // Port settings
Size:=UINT#256,,
RcvDat:=RecvDat,
RcvSize=>RecvSize);
Execute:=TRUE,
DevicePort:=DevicePort,
Size:=UINT#256,
RcvDat:=RecvDat,
RcvSize=>RecvSize);
// Processing after normal end
RecvStringDat:=AryToString(In:=RecvDat[0],Size:=RecvSize); // Con-
Code:=STRING_TO_ULINT(RecvDat); // Convert text string to an inte-
Operating:=FALSE;
// Processing after error end
Operating:=FALSE;
// Initialize instance.
// Receive data size
// Receive data
// Data size that was actu-
NY-series Instructions Reference Manual (W560)