Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controlers Applied Instructions 5
5-72
5.7.5 TTMR (FNC 64)
Operation:
The duration of time that the TTMR instruction is
ener
g
ized, is measured and stored in device D
+1
(as a count of 100ms periods).
The data value of D
+1
(in secs), multiplied b
y
the
factor selected b
y
the operand n, is moved in to
re
g
ister D. The contents of D could be used as the
source data for an indirect timer settin
g
or even as
raw data for manipulation.
When the TTMR instruction is de-ener
g
ized D
+1
is
automaticall
y
reset (D is unchan
g
ed).
5.7.6 STMR (FNC 65)
Operation:
The desi
g
nated timer Swill operate for the duration
n with the operational effect bein
g
fla
gg
ed b
y
devices D+0to D+3. Device D+0is an off-dela
y
timer, D+1is a one shot timer. When D+3is used in
the confi
g
uration below, D+1and D+2act in a
alternate flashin
g
sequence.
Mnemonic Function
Operands
Program steps
Dn
TTMR
FNC 64
(Teachin
g
timer)
Monitors the
duration of a
si
g
nal and places
the timed data
into a data re
g
ister
D
Note:
2 devices 16 bit words
are used D and D
+1
K, H
Note:
n= 0: (D) = (D
+1
)
×
1
n= 1: (D) = (D
+1
)
×
10
n= 2: (D) = (D
+1
)
×
100
TTMR:
5 steps
Mnemonic Function
Operands
Program steps
SnD
STMR
FNC 65
(Special
timer)
Provides
dedicated
off-dela
y
, one
shot and flash
timers
T
Note:
Timers 0 to 199
(100msec
devices)
K, H
Note:
n=
1 to 32,767
Y, M, S
Note:uses 4
consecutive
devices
D+0to D+3
STMR:
7 steps
X10
D300
[ D ]
K 0
[ n ]
TTMR
D301 D301
X10
Equivalet time data (n duration D+1), is stored in D
X0
K 100 M 0
[ S ]
[ D ]
T 10STMR
[ n ]
X0
M0
M1
M2
M3
X0
K 100 M 0T 10STMR
M3
X0
M2
M1(M3)