7 APPLICATION INSTRUCTIONS
7.16 Ramp Signal Instruction
891
7
7.16 Ramp Signal Instruction
Ramp signal
RAMPQ
This instruction shifts from a specified value to another specified value in (n) times.
■Execution condition
■Descriptions, ranges, and data types
■Applicable devices
Ladder ST
ENO:=RAMPQ(EN,s1,s2,n,d1,d2);
FBD/LD
Instruction Execution condition
RAMPQ
Operand Description Range Data type Data type (label)
(s1) Initial value -32768 to 32767 16-bit signed binary ANY16
(s2) Last value -32768 to 32767 16-bit signed binary ANY16
(d1) (d1)+0: Current value 16-bit signed binary ANY16_ARRAY
(Number of elements: 2)
(d1)+1: Number of executions
(n) Number of shifts 1 to 32767 16-bit signed binary ANY16
(d2) (d2)+0: Completion device Bit ANYBIT_ARRAY
(Number of elements: 2)
(d2)+1: Bit for selecting data retention at completion
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1)
(s2)
(d1)
(n)
(d2)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)