13 Applied Instructions (Handy Instruction)
13.5 TTMR / Teaching Timer
336
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Program examples
Write teaching time in ten data registers.
Set values should be preliminarily written in D400 to D409.
M8000
RUN monitor
Timer selection by digital switch
The input of one-digit digital switch connected to X000
to X003 is converted to BIN, and transferred to Z.
BIN
EN
s
ENO
d
K1X000 Z
X010
Teaching button
Teaching measurement
Pushing duration (seconds) of X010 is stored in D300.
TTMR
EN
n
ENO
d
K0
D300
X010
Teaching button restore detection
PLF
EN ENO
d
M0
M0
Writing set value of timer
The teaching time (D300) is transferred to the setting
register (D400Z) for the timer selected by digital switch.
MOV
EN
s
ENO
d
D300 D400Z
[Structured ladder/FBD]
OUT_T
EN
TCoil
TValue
ENO
TC0
D400
OUT_T
EN
TCoil
TValue
ENO
TC1
D401
OUT_T
EN
TCoil
TValue
ENO
TC9
D409
X021
X020
X032
[ ST ]
Timers (T0 to T9) are 100 ms timers, and 1/10 of the
teaching data is the actual operation time (in seconds).
Ten timers desired to be set
OUT_T (X020, TC0, D400);
OUT_T (X021, TC1, D401);
OUT_T (X032, TC9, D409);
BIN(M8000, K1X000, Z);
TTMR(X010, D300, K0);
PLF(X010, M0);
MOV(M0, D300, D400Z);