7 Application Instructions API 50-99
D V P - P L C A P P L I C AT I O N M A N U A L
7-55
API Mnemonic
Operands
Function
67
RAMP
Ramp Variable Value
Controllers
ES/EX/SS SA/SX/SC EH/SV
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S K H
KnX KnY KnM KnS T
C
D
E
F
S
1
*
S
2
*
D
*
n
*
*
RAMP: 9 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S
1
: Start of ramp signal
S
2
: End of ramp signal
D
: Duration of ramp signal
n
: Scan times
Explanations:
1. Range
of
n
: 1 ~ 32,767
2.
D
will occupy 2 consecutive points.
3. See the specifications of each model for their range of use.
4. Flags: M1026 (enabling RAMP; see remarks for more details); M1029 (RAMP execution completed).
5. This instruction is for obtaining slope (the relation between linearity and scan time). Before using this instruction,
you have to preset the scan time.
6. The set value of start ramp signal is pre-written in D10
and set value of end ramp signal in D11.
When X10 = On,
D10
increases towards D11
through n (= 100) scans (the duration is stored in D12). The times of scans are
stored in D13.
7. In the program, first drive M1039 = On to fix the scan time. Use MOV instruction to write the fixed scan time to
the special data register D1039. Assume the scan time is 30ms and take the above program for example, n =
J100, the time for D10 to increase to D11 will be 3 seconds (30ms
× 100).
8. When X10 goes Off, the instruction will stop its execution. When X10 goes On again, the content in D12 will be
reset to 0 for recalculation.
9. When M1026 = Off, M1029 will be On and the content in D12 will be reset to the set value in D10.
Program Example:
When this instruction is used with analog signal outputs, it will be able to buffer START and STOP.
X10
RAMP
D10
D11
D12
K100
D10
D12
D11
D11
D12
D10
D10<D11
D10 >D11
n scans
The scan times is stored in D13
n scans
Summary of Contents for DVP-PLC
Page 1: ...PLC PLC...
Page 28: ...1 Basic Principles of PLC Ladder Diagram DVP PLC Application Manual 1 24 MEMO...
Page 192: ...4 Step Ladder Instructions DVP PLC Application Manual 4 22 MEMO...
Page 472: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 70 MEMO...
Page 574: ...9 Application Instructions API 150 199 DVP PLC Application Manual 9 102 MEMO...