Mitsubishi MELSEC-L series Programming Manual page 118

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

Advertisement

G_BIDOUT
[ST]
PLS(X20, Var_Flag_Inst);
IF(Var_Flag_Inst=TRUE)THEN
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
IF(X21=TRUE)THEN
END_IF;
5.2 Serial Communication and Modem Interface Instruction
5-72
5.2.4 BIDOUT instruction
MOV(TRUE, H4241, D11);
MOV(TRUE, H4443, D12);
MOV(TRUE, H4645, D13);
MOV(TRUE, H0047, D14);
MOV(TRUE, H0A0D, D15);
MOV(TRUE, 1, Var_ControlData[0]);
MOV(TRUE, 5, Var_ControlData[2]);
(* Sets allowable number of words for send data to 5 words *)
G_BIDOUT(TRUE, H0, Var_ControlData, D11, Var_Result);
IF(Var_Result[1]=FALSE)THEN
SET(TRUE, Var_Flag_Normal);
ELSE
MOV(TRUE, Var_ControlData[1], Var_ErrorCode);(* Stores error code *)
SET(TRUE, Var_Flag_Error);
END_IF;
RST(TRUE, Var_Flag_Normal);
RST(TRUE, Var_Flag_Error);
(* Transmission instruction pulse *)
(* Sets send data *)
(* Sets transmission channel to 1 *)
(* Sends data *)
(* Execution finished *)
(* Normal completion *)
(* Turns normal completion flag ON *)
(* Error completion *)
(* Turns error completion flag ON *)
(* Turns normal completion flag OFF *)
(* Turns error completion flag OFF *)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents