6 - 125 6 - 125
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
(2) For n3, designate the number of scans required to move data from n1 to n2.
No processing is performed when n3 = 0.
(3) The system uses
D1
+1 to store the number of times the instruction has been executed.
(4) When the move is completed to the final value, the completion device designated by
D2
+0 will
go ON.
The ON/OFF status of the completion device and the contents of
D1
+0 are determined by the
ON/OFF status of the device designated by
D2
+1.
• When
D2
+1 is OFF,
D2
+0 will go OFF at the next scan, and the RAMP instruction will begin
a new move operation from the value currently at
D1
+0.
• When
D2
+1 is ON,
D2
+0 will remain ON, and the contents of
D1
+0 will not change.
(5) When the command is turned OFF during the execution of this instruction, the contents of
D1
+0 will not change following this.
When the command goes ON again, the RAMP instruction will begin a new move from the
present value at
D1
+0.
(6) Do not change the specified values in n1 and n2 before the completion device specified in
D2
+0 turns ON.
Since the same expression is used every scan to calculate the value stored in
D1
+1, changing
n1/n2 may cause a sudden variation.
[Operation Errors]
(1) There are no operation errors associated with the RAMP instruction.
[Program Example]
(1) The following program changes the contents of D0 from 10 to 100 in a total of 6 scans, and
saves the contents of D0 when the move has been completed.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
[Operation]
OFFX0
ON
OFFM0
ON
OFF
M1
ON
D0
25
1
D1
40
2
55
3
70
4
85
5
100
6
1 scan
1 scan 1 scan 1 scan 1 scan
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com