9 Application Instructions API 150-199 b) Try to shorten the acceleration time (D1343) into 250ms and deceleration time (D1348) into 550ms. 5. Obtain the result of the second execution: Frequency 100KHz Y0 stops output X0 Off --> On D1340 Time Number Actual number of output pulses (D1336, D1337) = K50,020 6. Observe the result of the second execution: a) The actual output number 50,020 – estimated output number 50,000 = 20 b) 20 x (1/200Hz) = 100ms (idling time) c) 100ms is an appropriate value. Therefore, set the acceleration time as 250ms and deceleration time as 550ms to complete the design. Program Example 2: 1.
Assume the feedback of the encoder is an A/B phase input and we adopt C251 timing (we suggust you clear it to 0 before the execution); target number of feedbacks = 50,000; target output frequency = 100kHz; Y0, Y1 (CH0) as output pulses; start/end frequency (D1340) = 200Hz; acceleration time (D1343) = 300ms; deceleration time (D1348) = 600ms; precentage value (D1131) = 100; current number of output pulses (D1336, D1337) = 0. 2. Write the program codes as follows: M1002 M0 M1000 I010 IRET END DVP-PLC Application Manual 9-136 Estimated number of output pulses:
50,000 MOV K100 D1131 MOV K300 D1343 MOV K600 D1348 SET M1534 DMOV K0 D1336 RST C251 EI DCNT C251 K100000 DCLLM C251 K50000 K100000 Y0 FEND INC D0