Mitsubishi MELSEC-L series Programming Manual page 171

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

Advertisement

[ST]
IF((Var_Flag_Inst=TRUE)
&(Var_Flag_Exe=FALSE)
&(SW83.E=FALSE))THEN
(* Sets control data *)
MOV(TRUE, 63, Var_ControlData[1]);
MOV(TRUE, H4, Var_ControlData[2]);
MOV(TRUE, H111, Var_ControlData[3]);
MOV(TRUE, 1, Var_ControlData[4]);
(* Sets interlock signal storage device *)
MOV(TRUE, H4, Var_InterlockData[0]);
MOV(TRUE, H104, Var_InterlockData[1]);
(* Sets completion device and error code storage area device *)
MOV(TRUE, H1, Var_InterlockData[2]);
(* Sets data to be written to intelligent device station *)
MOV(TRUE, 11, D10);
G_RISEND(TRUE, H00, Var_ControlData, Var_InterlockData,D10, Var_Result);
END_IF;
IF(MEP((Var_Flag_Inst=TRUE) & (SW83.E=FALSE)))THEN
(* Write request is ON and data link status of station number 63 is OFF (rising pulse) *)
SET(TRUE, Var_Flag_Exe);
END_IF;
IF(Var_Result[0]=TRUE)THEN
IF(Var_Result[1]=FALSE)THEN
(* Process on normal completion *)
ELSE
(* Process on error completion *)
END_IF;
RST(TRUE, Var_Flag_Inst);
RST(TRUE, Var_Flag_Exe);
END_IF;
(* Write request ON *)
(* Execution flag *)
(* Data link status of station number 63 *)
(* Sets station number *)
(* Sets access code and attribute code *)
(* Sets buffer memory address *)
(* Sets number of write points *)
(* Sets request device *)
(* Sets completion mode *)
(* Performs writing *)
(* Turns execution flag ON *)
(* Execution finished *)
(* Normal completion *)
(* Error completion *)
(* Turns write request OFF *)
(* Turns execution flag OFF *)
5.3 CC-Link Instruction
5.3.4 RISEND instruction
G_RISEND
5
5-125

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents