Ramp (Time)
Instruction Parameters
Supported PLC Series
| XPnA/1R | XPnB | XPnE | XPnF | CP3A/B/P/U CP4A~D/U | CPnE | CPnF | BP | PLC-S |
|---|---|---|---|---|---|---|---|---|
| - | ✓ | ✓ | ✓ | - | ✓ | ✓ | - | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S1 | ✓ | - | ✓ | ✓ | ✓ | - | - | - | - | - | - | - | ✓ | ✓ | ✓ |
| S2 | ✓ | - | ✓ | ✓ | ✓ | - | - | - | - | - | - | - | ✓ | ✓ | ✓ |
| S3 | ✓ | - | ✓ | ✓ | ✓ | - | - | - | - | - | - | - | ✓ | ✓ | ✓ |
| D | ✓ | - | ✓ | ✓ | ✓ | - | - | - | - | - | - | - | ✓ | ✓ | - |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | ✓ |
| Zero | F11.1 | - |
| Carry | F11.2 | - |
Number of Steps
| Steps |
|---|
| 5 |
Operands
| Operand | Description |
|---|---|
| S1 | The 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. |
| S2 | The 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. |
| S3 | The 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. |
| D1 | The 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: