3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-187
API Mnemonic
Operands
Function
65
STMR
S, m, D
Special Timer
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C D E
F
S
*
m
*
*
D
*
*
*
STMR: 7 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
Operands:
S
: Timer number (T0~T191)
m
: Set-point value of the timer (
m
=1~32,767), units in 100ms
D
: Starting address of the results (occupies 4 continuous bits)
Description:
1.
The STMR instruction can be used for OFF-delay, ON/OFF triggering, or as a flashing circuit.
2.
The timer number (
S
) specified by STMR instruction can be used only once.
3. Range
of
S
: for ELC-PC/PA/PH T0 ~ T191; for ELC-PV T0 ~ T199
Program Example:
1.
The preset value of timer T0 is 5 seconds.
2.
Y0 is the OFF-delay output :
a) When X20 turns from OFF
→
ON, Y0= ON.
b) When X20 turns ON
→
OFF after a delay 5 seconds, Y0=OFF.
c) When X20 turns from ON
→
OFF, Y1= ON for 5 seconds, then turns Off.
d) When X20 turns from OFF
→
ON, Y2=ON for 5 seconds, then turns Off.
e) When X20 turns from OFF
→
ON, Y3=ON after a 5 second delay.
f) When X20 turns from ON
→
OFF, Y3=OFF after a 5 second delay.
X20
STMR
T0
K50
Y0
X20
Y0
Y1
Y2
Y3
5 sec
5 sec
5 sec
5 sec
5 sec
5 sec
g) Add a b contact addressed with Y3 (LDI Y3) in series with contact X20. Then Y1 and Y2
can be used for a flash circuit. Y1 and Y2 will alternate, each on for 5 seconds, then off for
5 seconds. When X20 turns OFF, Y0, Y1 and Y3 = OFF and the content of T10 will be
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...