Skip to main content

Ramp (Time)

Instruction Parameters

Supported PLC Series

XPnA/1RXPnBXPnEXPnFCP3A/B/P/U
CP4A~D/U
CPnECPnFBPPLC-S
---

Supported Data Registers

MXYKLFTCSZRQD@DConstant
S1--------
S2--------
S3--------
D---------

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1-
CarryF11.2-

Number of Steps

Steps
5

Operands

OperandDescription
S1The first operand.
Entries are WORD data registers or constants.
This is the starting value.

The signed value range is -32,768 ~ 32,767 (216).
The unsigned value range is 0 ~ 65,535 (216-1).
The Hexadecimal value range is H0000 ~ HFFFF.
S2The second operand.
Entries are WORD data registers or constants.
This is the final value.

The signed value range is -32,768 ~ 32,767 (216).
The unsigned value range is 0 ~ 65,535 (216-1).
The Hexadecimal value range is H0000 ~ HFFFF.
S3The third operand.
Entries are WORD data registers or constants.
This is the time to shift from the starting value to the final value.

The unsigned value range is 0 ~ 65,535 (216-1).
The Hexadecimal value range is H0000 ~ HFFFF.
The time interval is in SECONDS.
D1The fourth operand.
Entries are WORD data registers.
This is the current value.
This requires 4 data registers.

Notice

Error Flag (F11.0) Notice

The error flag, F11.0, will be ON for one scan when the address of the data register assigned by @D exceeds the range of the data register, D. The range of the data register, D, is dependent on the CPU type.

F11.0 turns ON for one scan if the current value D1 does NOT reach the final value S2 even if the actual execution time has exceeded the S3 value.

Instruction Behavior

The TRAMP instruction behaves as follows:

  • When the current value, D1, reaches the final value, S2, the instruction execution stops.
  • The smallest possible value for the time value, S3, is 0.
    • If time value, S3, is 0, the TRAMP instruction will not execute.
  • The largest possible value for the time value, S3, is 65,535.
  • If the execution condition turns OFF, the latest value is retained in D1.
    • When the execution instruction goes from OFF to ON, the TRAMP instruction executes from the beginning.
  • If the execution condition is OFF, an internal process is in execution.
    • Use the indirect data register (@D) with caution.
  • The current value, D1, is calculated:

Examples