6-166
6.8 Other Convenient Instructions
6.8.6 Ramp signal
RAMP
6.8.6
Ramp signal
RAMP
F
unct
i
on
(1) When the execution command is ON, the following processing is executed.
• Shifts from the value specified for n1 to the value specified for n2 in the number of times
specified for n3.
• For n3, specify the number of scans (number of shifts) required for shift from n1 to n2.
No processing is performed when n3 = 0.
• The system uses
[1] to store the number of times the instruction has been executed.
• The value of one variation (one scan) is obtained by the expression below.
RAMP
indicates the following instruction.
RAMP
Input argument,
EN:
Executing condition
: Bit
n1:
Initial value
: ANY16
n2:
Final value
: ANY16
n3:
Number of transitions
: ANY16
Output argument,
ENO:
Execution result
: Bit
d1:
d1[0]:Current value
d1[1]:Number of executions
: Array of ANY16 (0..1)
d2:
d2[0]:Completion device
d2[1]:Bit for selecting data retainment at completion
: Array of bit (0..1)
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
n1
−
n2
−
n3
−
−
−
−
−
−
U
n
i
versa
l
UD
Hi
g
h
Per
f
ormance
Structured ladder
ST
EN
ENO
n
1
d
1
n
2
d
2
n3
RAMP
RAMP
(EN, n
1
, n
2
, ,n3, d
1
, d
2
);
ENO:=
d
1
d
2
d
1
Value o
f
one variation (one scan)
(Value s
p
eci
f
ied
b
y n
2
) (Value s
p
eci
f
ied
b
y n
1
)
(Value s
p
eci
f
ied
b
y n3)
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......