FX Series Programmable Controlers Applied Instructions 5
5-93
5.7.8 RAMP (FNC 67)
Operation:
The RAMP instruction varies a current value (D)
between the data limits set by the user (S1and S2).
The ‘journey’ between these extreme limits takes n
program 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 flag
M8029 is set ON.
The RAMP instruction can vary both increasing
and decreasing differences between S1and S2.
Points to note:
a) FX
2N and FX2NC users may set the operation
mode of the RAMP instruction by controlling
the state of special auxiliary relay M8026.
When M8026 is OFF, the RAMP instruction will
be in repeat mode. This means when the
current value of D equals S2 the RAMP
instruction will automatically reset and start
again, i.e. the contents of D will be reset to that
of S1 and the device D+1 (the number of
current scans) will reset to ‘0’ (zero). This is
shown in the diagram opposite.
When M8026 is set ON, users will be operating
the RAMP instruction in ‘Hold mode’.This
Mnemonic Function
Operands
Program steps
S
1 S2 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
registers identified as D and D+1
these are read only devices.
K, H
)
Note:
n= 1 to
32,767
RAMP:
9steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
Flags
Operation
Complete M8029
X0
D 2D 1 D 3
[ S1 ] [ S2 ] [ D ]
K1000
[ n ]
RAMP
n n
[S1]
[S2]
[D]
[S2]
[S1]
[D]
S1 < S2 S1 > S2
X0
[S2]
M8029
[D]
[S1]
X0
[S2]
[S1]
M8029
[D]