Ramp Signal - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Ramp signal

RAMP
Basic
High
Redundant
Process
performance
RAMP
n1:
Initial value (BIN 16 bits)
n2:
Final value (BIN 16 bits)
(D1): (D1)+0: Present value (BIN 16 bits)
(D1)+1: Number of executions (BIN 16 bits)
n3:
Number of shifts (BIN 16 bits)
(D2): (D2)+0: Completion device (bits)
(D2)+1: Bit for selecting data retaining at completion (bit)
Setting
Internal device
data
Bit
Word
n1
n2
(D1)
n3
(D2)
Processing details
• When the execution command is ON, the following processing is executed.
• Shifts from the value specified by n1 to the value specified by n2 in the number of times specified by n3.
• For n3, designate the number of scans (number of shifts) required for shift from n1 to n2.
• No operation if other than 0<n3<32768.
• The system uses (D1)+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:
Value of one variation (one scan)
Ex.
0 is varied to 350 in seven scans as shown below.
Value stored in
D1
+ 0 (Present value)
Value specified by n1 (0)
50
(0)
When the calculated one variation is indivisible, compensation is made to achieve the value specified in n2 by the number of
shifts specified in n3. Hence, a linear ramp may not be made.
• If the scan is performed for the number of moves specified by n3, the complete device specified by (D2) +0 is turned 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, +0 will go OFF at the next scan, and the RAMP instruction will begin a new move operation from the value currently at (D2)+0.
• When (D2)+1 is ON, (D2)+0 will remain ON, and the contents of (D1)+0 will not change.
• 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 +0.
• 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.
Universal
LCPU
Command
RAMP
R, ZR
J\
Bit
(Value specified by n2) (Value specified by n1)
(Value specified by n3)
250
200
150
100
Number of shifts (7) specified by n3
n1
n2
D1
U\G
Word
350
300
Value specified by n2 (350)
Value stored in
+ 1
D1
(Number of execution times)
n3
D2
Zn
Constant
Others
K, H
6 BASIC INSTRUCTIONS
6.8 Other Convenient Instructions
6
345

Advertisement

Table of Contents
loading

Table of Contents