FX Series Programmable Controlers Applied Instructions 5
5-73
5.7.7 ALT (FNC 66)
Operation:
The status of the destination device (D) is
alternated on ever
operation of the ALT
instruction.
This means the status of each bit device will flip-
flop between ON and OFF. This will occur on ever
pro
ram scan unless a pulse modifier or a pro
ram
interlock is used.
The ALT instruction is ideal for switchin
between
two modes of operation e.
. start and stop, on and
off etc.
5.7.8 RAMP (FNC 67)
Operation:
The RAMP instruction varies a current value (D)
between the data limits set b
the user (S1and S2).
The ‘
ourne
’ between these extreme limits takes n
pro
ram scans. The current scan number is stored
in device D+1. Once the current value of D equals
the set value of S2the execution complete fla
M8029 is set ON.
The RAMP instruction can var
both increasin
and decreasin
differences between S1and S2.
Mnemonic Function
Operands
Program steps
D
ALT
FNC 66
(Alternate
state)
The status of the
assi
ned device
is inverted on
ever
operation of
the instruction
Y, M, S ALT, ALTP:
3 steps
Mnemonic Function
Operands
Program steps
S
1
S
2
Dn
RAMP
FNC 67
(Ramp vari-
able value)
Ramps a device
from one value to
another in the
specified number
of steps
D
Note:
Device D uses two consecutive
re
isters identified as D and D+1
these are read onl
devices.
K, H
Note:
n= 1 to
32,767
RAMP:
9 steps
ALT M 0
X0
[ D ]
M0
X0
X0
D 2D 1 D 3
[ S1 ] [ S2 ] [ D ]
K1000
[ n ]
RAMP
n n
[S1]
[S2]
[D]
[S2]
[S1]
[D]
S1 < S2 S1 > S2