50
5 MODULE DEDICATED INSTRUCTION
5.2 Positioning Instruction
Program example
• The following program initializes the parameters of buffer memory and those of flash ROM when X3C turns ON.
[Structured ladder/FBD]
[ST]
PLS(X3C, Var_Flag_Inst); (* Parameter initialization instruction pulse *)
IF((Var_Flag_Inst=TRUE)&(X0C=FALSE))THEN
SET(TRUE, Var_Flag_Mem); (* Turns parameter initialization instruction memory ON *)
END_IF;
IF((Var_Flag_Mem=TRUE)&(Y0=FALSE))THEN
OUT_T(TRUE, TC0, 2); (* Waits output of programmable controller ready for the positioning module *)
END_IF;
IF(TS0=TRUE)THEN (* Parameter initialization instruction memory ON *)
ZP_PINIT(TRUE, "00", Var_ControlData, Var_Result); (* Performs initialization of parameters *)
IF((Var_Result[0]=TRUE)&(Var_Result[1]=FALSE))THEN
RST(TRUE, Var_Flag_Mem); (* Turns parameter initialization instruction memory OFF *)
END_IF;
END_IF;
Parameter initialization instruction pulse
Turns parameter initialization instruction
memory ON
Waits output of programmable controller
ready for the positioning module
Performs initialization of parameters
Turns parameter initialization instruction
memory OFF
Summary of Contents for MELSEC System Q
Page 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Page 2: ......
Page 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Page 309: ...I 307 MEMO ...
Page 315: ......