TRAMP(Time-based Ramp Signal)
TRAMP(Time-based Ramp Signal)
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @ D | Int. | Error | Zero | Carry | |||
TRAMP | S1 | ㅇ | - | ㅇ | ㅇ | ㅇ | - | - | - | - | - | ㅇ | ㅇ | ㅇ | 5 | - | - | - |
S2 | ㅇ | - | ㅇ | ㅇ | ㅇ | - | - | - | - | - | ㅇ | ㅇ | ㅇ | |||||
S3 | ㅇ | - | ㅇ | ㅇ | ㅇ | - | - | - | - | - | ㅇ | ㅇ | ㅇ | |||||
D1 | ㅇ | - | ㅇ | ㅇ | ㅇ | - | - | - | - | - | ㅇ | ㅇ | - |
|
S1 | Initial value value scale : -32768 ~ 32767 |
S2 | Last value value scale : -32768 ~ 32767 |
S3 | Time required(sec) value scale : 0~65535 |
D1 | Current value D1+4~7 : Internal Time(64bit) |
Supported PLC series & Version
XPnF | CPnF | XPnE | CPnE | XPnB | PLC-S | BP | XPnA/1R | CP3A/B/P/U | CP4A~D/U |
v6.13 | - | - | - | v6.14 | v6.14 | - | - | - | - |
TRAMP
During the time designated by S3, it saves value changes from initial value to last value linearly and saves a timer value in D1+4~7.
After the time (S3), D1 becomes equal to S2.
If execution condition is canceled, D1 keeps the last value, but internal time is initialized. So if you restart the instruction, a value changes from an initial value.
During operation, a result value (D1) is calculated as follows.
If the value under decimal point occurs, error may occur when changing it to integer type.
If the required time (S3) is 0, operation will not be done and a D1 value is always a S2 value.
Since the timer value for operation is saved in the D1+4~7, if you change it, the undesired result may occur.
After execution to the last value(S2) is completed, the last value(S2) is saved int the operation result D1.
If you cancel the execution condition during operation, the value D1 keeps it value.
If you restart the instruction, TRAMP instruction is executed from the initial value.
Though the execution condition is not on, there is internal operation for TRAMP. So in case of using the indirect designation(#) or the index([Z]), pay attention.
Program
In cases D0 = 0, D10 = 350, D20 = 7, if you turn on X00, D30 increases by a velocity of 50/sec every scan and a timer is saved in the D34~D37.
After 7s, D30 becomes equal to 350 and keeps its value.