Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
5.2 Positioning Instruction
5.2.4 PFWRT instruction
5-63
ZP_PFWRT
5
MODULE DEDICATED
INSTRUCTION
ZP_PFWRT
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/FBD]
[ST]
PLS(X3D, Var_Flag_Inst); (* Write to flash ROM instruction pulse *)
IF((Var_Flag_Inst=TRUE)&(X0C=FALSE))THEN
SET(TRUE, Var_Flag_Mem); (* Turns write to flash ROM instruction memory ON *)
END_IF;
IF((Var_Flag_Mem=TRUE)&(Y0=FALSE))THEN
OUT_T(TRUE, TC1, 2);
(* Waits output of programmable controller ready for the QD75 *)
END_IF;
IF(TS1=TRUE)THEN (* Write to flash ROM instruction memory ON *)
ZP_PFWRT(TRUE, "00", Var_ControlData, Var_Result);
(* Writes data to flash ROM *)
IF((Var_Result[0]=TRUE)&(Var_Result[1]=FALSE))THEN
RST(TRUE, Var_Flag_Mem);
(* Turns write to flash ROM instruction memory OFF *)
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
Writes data to
flash ROM
Turns write to flash ROM
instruction memory OFF