Справочник Пользователя для Mitsubishi Electronics FX2N

Скачать
Страница из 382
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
energized, is measured and stored in device D
+1
(as a count of 100ms periods).
The data value of D
+1 
(in secs), multiplied by the
factor selected by the operand n, is moved in to
register D. The contents of D could be used as the
source data for an indirect timer setting or even as
raw data for manipulation.
When the TTMR instruction is de-energized D
+1 
is
automatically reset (D is unchanged).
5.7.6
STMR (FNC 65)
Operation:
The designated timer Swill operate for the duration
n with the operational effect being flagged by
devices D+0to D+3. Device D+0is an off-delay
timer, D+1is a one shot timer. When D+3is used in
the configuration below, D+1and D+2act in a
alternate flashing sequence.
Mnemonic
Function 
Operands
Program steps
D
n
TTMR
FNC 64
(Teaching
timer)
Monitors the
duration of a
signal and places
the timed data
into a data register
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
S
n
D
STMR
FNC 65
(Special
timer)
Provides
dedicated
off-delay, 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
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
X10
D300
[ D ]
K 0
[ n ]
TTMR
D301
D301
X10
Equivalet time data (n   duration D+1), is stored in D
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
X0
K 100
M 0
[ S ]
[ D ]
T 10
STMR
[ n ]
X0
M0
M1
M2
M3
X0
K 100 M 0
T 10
STMR
M3
X0
M2
M1(M3)