Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 API 67 Operands: S 1 : Start of ramp signal S 2 : End of ramp signal D : Duration of ramp signal n : Scan times Explanations: 1. Range of n : 1 ~ 32,767 2. D will occupy 2 consecutive points. 3. See the specifications of each model for their range of use. 4. Flags: M1026 (enabling RAMP; see remarks for more details); M1029 (RAMP execution completed). 5. This instruction is for obtaining slope (the relation between linearity and scan time). Before using this instruction, you have to preset the scan time. 6. The set value of start ramp signal is pre-written in D10 and set value of end ramp signal in D11. When X10 = On, stored in D13.

D10 increases towards D11 through n (= 100) scans (the duration is stored in D12). The times of scans are 7. In the program, first drive M1039 = On to fix the scan time. Use MOV instruction to write the fixed scan time to the special data register D1039. Assume the scan time is 30ms and take the above program for example, n = K100, the time for D10 to increase to D11 will be 3 seconds (30ms Ч 100). 8. When X10 goes Off, the instruction will stop its execution. When X10 goes On again, the content in D12 will be reset to 0 for recalculation. 9. When M1026 = Off, M1029 will be On and the content in D12 will be reset to the set value in D10. 10.

When this instruction is used with analog signal outputs, it will be able to buffer START and STOP. 11. DRAMP only supports EH3/SV2 V1.0, EH2/SV V1.8, SX V3.0, and above. Program Example: X10 DVP-PLC APPLICATION MANUAL 7-60 Mnemonic Operands Function RAMP Ramp Variable Value Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F RAMP: 9 steps DRAMP: 17 steps S 1 * S 2 * D * n * * PULSE 16-bit 32-bit SA SX SC EH S V EH3 SV2 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SC EH3 ES EX SS SX EH SV SV2 RAMP D10 D11 D12 K100