Mitsubishi MELSEC QCPU Programming Manual page 276

Programmable logic controller
Table of Contents

Advertisement

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
(4) When the move is completed to the final value, the completion device designated by
go ON.
The ON/OFF status of the completion device and the contents of
ON/OFF status of the device designated by
• When
D2
a new move operation from the value currently at
• When
D2
(5) When the command is turned OFF during the execution of this instruction, the contents of
+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
(6) Do not change the specified values in n1 and n2 before the completion device specified in
+0 turns ON.
D2
Since the same expression is used every scan to calculate the value stored in
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]
[Operation]
X0
OFF
D0
D1
M0
OFF
M1
OFF
6 - 125
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
+1 to store the number of times the instruction has been executed.
D1
+1 is OFF,
+0 will go OFF at the next scan, and the RAMP instruction will begin
D2
+1 is ON,
+0 will remain ON, and the contents of
D2
+0.
D1
ON
25
40
55
1
2
3
1 scan
1 scan
ON
+1.
D2
+0.
D1
[List Mode]
Steps
Instruction
85
70
4
5
1 scan
1 scan
1 scan
MELSEC-Q/QnA
+0 will
D2
+0 are determined by the
D1
+0 will not change.
D1
+1, changing
D1
Device
100
6
ON
6 - 125
D1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents