Mitsubishi Electric MELSEC-L Special Instructions Manual page 115

Melsec-q/l structured programming manual
Hide thumbs Also See for MELSEC-L:
Table of Contents

Advertisement

[ST]
IF((Var_Flag_Inst=TRUE) (* Write request ON *)
&(Var_Flag_Exe=FALSE) (* Execution flag *)
&(SW83.E=FALSE))THEN (* Data link status of station number 63 *)
(* Sets control data *)
MOV(TRUE, 63, Var_ControlData[1]); (* Sets station number *)
MOV(TRUE, H4, Var_ControlData[2]); (* Sets access code and attribute code *)
MOV(TRUE, H111, Var_ControlData[3]); (* Sets buffer memory address *)
MOV(TRUE, 1, Var_ControlData[4]); (* Sets number of write points *)
(* Sets interlock signal storage device *)
MOV(TRUE, H4, Var_InterlockData[0]); (* Sets request device *)
MOV(TRUE, H104, Var_InterlockData[1]); (* Sets completion device and error code storage area device *)
MOV(TRUE, H1, Var_InterlockData[2]); (* Sets completion mode *)
(* Sets data to be written to intelligent device station *)
MOV(TRUE, 11, D10);
GP_RISEND(TRUE, H00, Var_ControlData, Var_InterlockData,D10, Var_Result); (* Performs writing *)
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); (* Turns execution flag ON *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
(* Process on normal completion *)
ELSE (* Error completion *)
(* Process on error completion *)
END_IF;
RST(TRUE, Var_Flag_Inst); (* Turns write request OFF *)
RST(TRUE, Var_Flag_Exe); (* Turns execution flag OFF *)
END_IF;
5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
5
113

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q

Table of Contents