Mitsubishi MELSEC-L series Programming Manual page 332

Hide thumbs Also See for MELSEC-L series:
Table of Contents

Advertisement

SP_SOCRCV
Program Example
The following program reads data received from the external device.
[Structured ladder]
[ST]
IF((Var_Flag_Inst=TRUE) &(SD1282.0=TRUE) &(SD1286.0=TRUE)
&(Var_Result[0]=FALSE))THEN
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
7.3 SOCRCV Instruction
7-10
SP_SOCRCV (TRUE, "U0", 1, Var_ControlData, D500, Var_Result);
IF(Var_Result[1]=FALSE)THEN
SET(TRUE, Var_Flag_Normal);
ELSE
SET(TRUE, Var_Flag_Error);
END_IF;
(* Reads data from the connection number 1 *)
(* Execution finished *)
(* Normal completion *)
(* Turns normal completion flag ON *)
(* Error completion *)
(* Turns error completion flag ON *)
Reads data from
the connection
number 1
Turns normal
completion flag ON
Turns error
completion flag OFF

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents