
Appendix D Use of Application Instructions|DOP-EXIO Series
Revision March, 2008, Doc. Name: 2007PDD23000014 D-59
Mnemonic Operands Function
ALT
D
Alternate State
Bit Devices Word Devices
X Y M S K H KnX KnY KnM KnS T C D E F
D
16-bit instruction (3 Steps)
ALT
Continuous
execution
32-bit instruction
- - - -
y Flags: None
Operands:
D
: Destination device
Program Example 1:
When X0 goes from Off to On for the first time, Y0 will be On. When X0 goes from Off to On for the
second time, Y0 will be Off.
X0
ALTP Y0
X0
Y0
Program Example 2:
Using a single switch to enable and disable control. At the beginning, M0 = Off, so Y0 = On and Y1 =
Off. When X10 switches between On/Off for the first time, M0 will be On, so Y1 = On and Y0 = Off. For
the second time of On/Off switching, M0 will be Off, so Y0 = On and Y1 = Off.
X10
LT M0
M0
Y0
M0
Y1
Program Example 3:
Generating flashing. When X10 = On, T0 will generate a pulse every 2 seconds and Y0 output will
switch between On and Off following the T0 pulses.
Comentários a estes Manuais