Mitsubishi MELSEC-L series Programming Manual page 289

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

Advertisement

Program Example
The following program writes the parameters, positioning data, and block start data stored in
buffer memory to the flash ROM when X3D turns ON.
[Structured ladder]
[ST]
PLS(X3D, Var_Flag_Inst);
IF((Var_Flag_Inst=TRUE)&(X0C=FALSE))THEN
SET(TRUE, Var_Flag_Mem);
END_IF;
IF((Var_Flag_Mem=TRUE)&(Y0=FALSE))THEN
OUT_T(TRUE, TC1, 2);
END_IF;
IF(TS1=TRUE)THEN
ZP_PFWRT(TRUE, "00", Var_ControlData, Var_Result);
IF((Var_Result[0]=TRUE)&(Var_Result[1]=FALSE))THEN
RST(TRUE, Var_Flag_Mem);
END_IF;
END_IF;
(* Write to flash ROM instruction pulse *)
(* Turns write to flash ROM instruction memory ON *)
(* Waits output of programmable controller ready for the QD75 *)
(* Write to flash ROM instruction memory ON *)
(* Writes data to flash ROM *)
(* Turns write to flash ROM instruction memory OFF *)
ZP_PFWRT
Write to flash ROM
instruction pulse
Turns write to flash ROM
instruction memory ON
Waits output of
programmable controller
ready for the QD75
Writes data to
flash ROM
Turns write to flash ROM
instruction memory OFF
5.5 Positioning Instruction
5.5.4 PFWRT instruction
5
5-243

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents