Mitsubishi — Chapter 8 Application Instructions API 100-149

9 Application Instructions API 150-199 you can improve the situation by adjusting the percentage value, acceleration/decelartion time or target frequency. Program Example: 1. Assume we adopt X0 as the external interruption, together with I001 (rising-edge trigger) interruption program; target number of feedbacks = 50,000; target frequency = 10kHz; Y0, Y1 (CH0) as output pulses; start/end frequency (D1340) = 200Hz; acceleration time (D1343) = 300ms; deceleration time (D1348) = 600ms; percentage value (D1131) = 100; current number of output pulses (D1336, D1337) = 0. 2. Write the program codes as follows: M1002 EI M0 M1000 I010 FEND IRET END 3. Assume the first execution result as:

Frequency X0 Off --> On 100KHz Y0 stops output D1340 D1340 Time Number 4. Observe the result of the first execution: a) The actual output number 49,200 – estimated output number 50,000 = -800 (a negative value). A negative value indicates that the entire execution finishes earlier and has not completed yet. DVP-PLC Application Manual 9-135 MOV K100 D1131 MOV K300 D1343 MOV K600 D1348 SET M1534 DMOV K0 D1336 DCLLM X0 K50000 K100000 Y0 INC D0 Estimated number of output pulses: 50,000