Mitsubishi MELSEC-L series Programming Manual page 115

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

Advertisement

[ST]
IF((X3=TRUE) OR (X4=TRUE))THEN
MOVP(TRUE, 1, Var_ControlData[0]);
MOVP(TRUE, 10, Var_ControlData[3]);
(* Sets allowable number of words for receive data to 10 words *)
G_INPUT(TRUE, H0, Var_ControlData, D10, Var_Result);
END_IF;
IF(Var_Result[0]=TRUE)THEN
IF(Var_Result[1]=FALSE)THEN
MOV(TRUE, Var_ControlData[2], Z2);
BMOV(TRUE, D10, K0Z2, D110);
ELSE
SET(TRUE, Var_Flag_Error);
END_IF;
END_IF;
IF(X100=TRUE)THEN
RST(TRUE, Var_Flag_Error);
END_IF;
5.2 Serial Communication and Modem Interface Instruction
(* Sets receive channel to 1 *)
(* Receives data *)
(* Execution finished *)
(* Normal completion *)
(* Stores receive data *)
(* Error completion *)
(* Turns error completion flag ON *)
(* Turns error completion flag OFF *)
5.2.3 INPUT instruction
G_INPUT
5
5-69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents