E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-186
n
D0
D1(unit: 100 ms)
K0 (unit: s)
1×T
D1=D0×10
K1 (unit: 100 ms)
10×T
D1=D0
K2 (unit: 10 ms)
100×T
D1=D0/10
Program Example 2:
1.
Using the TTMR instruction write preset values to 10 timers.
2.
Write the preset values for timers T0-T9 to D100~D109. Use the thumbwheel switch wired to
X0-X4 to determine which timer’s preset to set..
3.
T0~T9 are 100ms timebase timers. So, we will want the time values measured with the TTMR
instruction to also be in 100ms increments, because these values will be moved to the presets
for timers T0-T9.
4.
Connect a single digit thumbwheel switch to X0~X3 and use the BIN instruction to convert the
set-point value of the switch to a BIN value and move it to the index register E. This allows the
thumbwheel switch to determine the timer number to move a new preset values to.
5.
The ON duration (in 100ms increments) of X20 is stored in D200.
6.
M0 is a pulse for one scan cycle generated when the alternate timer button X20 is released.
7.
Use the set-point number of the thumbwheel switch as the pointer for index register E. Then
move the new preset value to the appropriate timer. If E=0, the contents of D200 is moved to
the preset for timer T0 (D100). If E=1, the contents of D200 is moved to the preset for timer T1
(D101) and so on.
M10
TMR
T0
D100
M11
TMR
T1
D101
M19
TMR
T9
D109
M1000
BIN
K1X0
E
X20
TTMR
D200
K1
X20
PLF
M0
M0
MOV
D200
D100E
Note:
ELC-PC/PA/PH, ELCM-PH/PA models, can only use the TTMR instruction eight times in a program.
If used in a
CALL subroutine or interrupt subroutine, it only can be use once.
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...