3. Instruction Set

Change target freq.

Actual timing of changing

Freq.

Gap freq.

Gap Gap

time time

Time

Delayed by program scan cycle

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

 

Freq.

Actual timing of changing

 

 

 

 

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.

3 - 4 5 1

Page 567
Image 567
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Interrupt