EasyManua.ls Logo

Inovance H3U Series - RAMP Ramp Instruction

Inovance H3U Series
737 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
193
4
4 Instructions 4.5.3 Table Operation
RAMP: Ramp instruction
Overview
When driving conditions are met, the RAMP instruction changes the value in D linearly from S1 to S2 after
a number (indicated by S3) of scan cycles are completed.
RAMP S1 S2 D n
Ramp instruction Applicable model:
H3U
S1
Start
value
Address of the word element that stores the ramp start value
16-bit instruction
(9 steps)
RAMP:
Continuous
execution
S2
End
value
Address of the word element that stores the ramp end value
D
Current
value
Address of the word element that stores the current ramp
value
n
Cycle
count
Number of scan cycles required to complete a ramp change;
value range: 1 to 32,767
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
Function
Linear interpolation is performed between two given data records within the designated time range.
Process values are output in sequence based on the scan execution time until the end value of the range is
reached.
S1 is the start value unit of a ramp signal.
S2 is the end value unit of a ramp signal.
D stores the process values of a linear interpolation signal. The interpolation times counter is stored in D+1.
n is the number of scan execution times required to complete interpolation. The value range is 1 to 32,767.
Because interpolation output is performed during the normal main loop, set program execution to xed scan
mode to ensure linear output. (For details, see the description of M8039 and D8039.)
Interpolation adopts integer calculation, and the fractional part is discarded. The function of the instruction
is shown as follows:
S1
S2
D
n
S1
S2
D
n
D
+1
D
+1

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals