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-189
API Mnemonic
Operands
Function
66
ALT P
D
Alternate ON/OFF
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C D E
F
D
*
*
*
ALT, ALTP: 3 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:
D
: Destination address
Description:
1.
The status of the destination address (
D
) alternates between on and off with each transition of
the ALT instruction..
2. This
toggling
of
D
will occur every program scan unless the pulse option P is used with this
instruction..
3.
The ALT instruction is ideal for switching between two modes of operation e.g. start and stop,
ON and OFF etc.
4.
This instruction should be used as a pulse instruction (ALTP)
Program Example 1:
When X0 turns from OFF
→
ON for the first time, Y0=ON. When X0 turns from OFF
→
ON for the
second time, Y0=OFF.
X0
ALTP
Y0
X0
Y0
Program Example 2:
When X20= ON, T0 will generate a pulse every two seconds and output Y0 will toggle between on
and off every 2 seconds..
X20
TMR
T0
ALTP
Y0
K20
T0
T0
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...