9 Application Instructions API 150-199 2. If users change the target frequency by applying DICF instruction in insterupt subroutines, the actual changing timing will be executed immediately with only an approx. 10us delay (execution time of DICF instruction). The timing diagram is as below: Interrupt Actual timing of changing Freq. Gap freq. Gap time Gap time Time approx.10us Program Example: 1. When M0 = ON, pulse output ramps up to 100kHz. Total shifts: 100, Gap frequency: 1000Hz, Gap time: 10ms. Calculation of total shifts: (100,000 ﹣ 0) ч 1000 = 100. 2. When X6 external interrupt executes, target frequency is changed and ramp down to 50kHz immediately. Total shifts: 150, Gap frequency:
800Hz, Gap time: 20ms. Calculation of total shifts: (100,000 ﹣ 50,000) ч 800 = 125 3. When X7 external interrupt executes, target frequency is changed and ramp down to 100Hz immediately. Total shifts: 25, Gap frequency: 2000Hz, Gap time: 100ms. Calculation of total shifts: (50,000 ﹣ 100) ч 2000 = 25. 4. When pulse output reaches 100Hz, the frequency is kept constant and pulse output stops when 1,000,000 pulses is completed. 1000Hz 10ms 800Hz Freq.(Hz) 100KHz 20ms 2000Hz 50KHz 100Hz 100ms M0=ON X6=ON X7=ON Time(ms) 1,000,000pulse DVP-PLC Application Manual 9-145