Mitsubishi Electronics FX2C Home Theater Server User Manual


 
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
y
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
y
pro
g
ram scan unless a pulse modifier or a pro
g
ram
interlock is used.
The ALT instruction is ideal for switchin
g
between
two modes of operation e.
g
. 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
y
the user (S1and S2).
The ‘
j
ourne
y
’ between these extreme limits takes n
pro
g
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
g
M8029 is set ON.
The RAMP instruction can var
y
both increasin
g
and decreasin
g
differences between S1and S2.
Mnemonic Function
Operands
Program steps
D
ALT
FNC 66
(Alternate
state)
The status of the
assi
g
ned device
is inverted on
ever
y
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
g
isters identified as D and D+1
these are read onl
y
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