Delta DVP-ES2 User Manual
Page 567
3 . I n s t r u c t i o n S e t
3 - 4 5 1
Freq.
Time
Gap freq.
Delayed by program scan cycle
Gap
time
Gap
time
Change target freq.
Actual timing of changing
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:
Freq.
Time
Gap freq.
approx.10us
Gap
time
Gap
time
Interrupt
Actual timing of changing
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.