6-162
6.8 Other Convenient Instructions
6.8.4 Special function timer
STMR
Program
E
xam
pl
e
In the following program, Y0 and Y1 are turned ON and OFF every second (flicker) when X20
turns ON.
(Uses 100ms timer)
[Structured ladder]
[ST]
STMR(X20 AND NOT(Var_M0[3]),T0,10,Var_M0);
OUT(Var_M0[1],Y0);
OUT(Var_M0[2],Y1);
[Timing chart]
Var_M0[
1
],Y0
X2
0
Var_M0[
2
],Y
1
Var_M0[3]
1
sec
1
sec
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......