Omron FQM1-CM001, FQM1-MMA21, FQM1-MMP21 Pulse Outputs, Section, Changing the Frequency in Steps

Models: FQM1-MMP21 FQM1-MMA21 FQM1-CM001

1 414
Download 414 pages 44.52 Kb
Page 213
Image 213
Changing the Frequency in Steps

Pulse Outputs

Section 7-6

Changing the Frequency in Steps

In this example, the SPED(885) instruction is used to change the speed of a pulse output from port 2 from a frequency of 3,000 Hz to 50,000 Hz. In this case, the pulse output is a CCW continuous mode output.

Frequency

Target frequency 50,000 Hz

Present frequency 3,000 Hz

0002.00

0002.01

 

 

 

 

 

 

Time

SPED executed.

SPED executed.

 

 

 

 

 

@SPED

 

When CIO 0002.00 turns ON,

 

 

 

 

 

#2

SPED starts a pulse output from

 

 

 

 

 

#1

port 2 at 3,000 Hz (3 kHz) in

 

 

 

#00000BB8

CCW continuous mode.

 

 

 

@SPED

 

When CIO 0002.01 turns ON,

 

 

 

 

 

#2

SPED changes the frequency

 

 

 

 

 

#1

to 50,000 Hz (50 kHz) in CCW

 

 

 

 

D00000

continuous mode.

D00000

C

3

5

0

Target frequency

D00001

0

0

0

0

 

 

Note Speed control timing will be accurate when frequency changes are executed by SPED(885) instructions in interrupt tasks called by input interrupts.

Accelerating the Frequency at a Fixed Rate

In this example, the ACC(888) instruction is used to accelerate the pulse out- put from port 2 from a frequency of 3,000 Hz to 50,000 Hz at an acceleration rate of 500 Hz/2 ms.

Frequency

 

 

 

 

 

 

Target frequency

 

 

 

 

 

 

 

50,000 Hz

Acceleration rate

 

 

 

 

 

 

 

 

 

 

500 Hz/2 ms

 

 

 

 

 

Present frequency

 

 

 

 

 

 

 

3,000 Hz

 

 

 

 

 

 

Time

 

SPED executed.

ACC executed.

 

0002.00

 

 

 

 

 

 

 

 

 

 

 

 

@SPED

When CIO 0002.00 turns ON,

 

 

 

 

 

 

#2

SPED starts a pulse output from

 

 

 

 

 

 

#1

port 2 at 3,000 Hz (3 kHz) in

 

 

 

 

 

 

#00000BB8

CCW continuous mode.

0002.01

 

 

 

 

 

 

 

 

 

 

 

 

@ACC

When CIO 0002.01 turns ON, ACC is

 

 

 

 

 

 

#2

executed in mode 1 (CCW direction,

 

 

 

 

 

 

#1

acceleration, and continuous mode) to

 

 

 

 

 

 

D00000

accelerate the frequency at 500 Hz/2 ms

 

 

 

 

 

 

 

to 50,000 Hz (50 kHz).

 

D00000

0

1

F

4

Acceleration rate

 

D00001

C

3

5

0

Target frequency

 

D00002

0

0

0

0

 

 

 

190

Page 213
Image 213
Omron FQM1-CM001 Pulse Outputs, Section, Changing the Frequency in Steps, Accelerating the Frequency at a Fixed Rate