beautypg.com

8 stp examples – Horner APG XL7 OCS User Manual

Page 52

background image

XL7 User Manual

11.8 STP Examples

Example 1

Start Frequency Run Frequency

Accel Count

Run Count

Decel Count

10,000,000

steps control

sequence

Set %AQ1 =

2500 (Hz)

Set %AQ2 =

5000 (Hz)

Set %AQ3-4 =

1,000,000 (Steps)

Set %AQ5-6 =

8,000,000 (Steps)

Set %AQ7-8 =

1,0000,000 (Steps)

The example starts at 2.5 kHz and ramps up to 5 kHz during the first 1,000,000 steps.

Then, it runs at 5 kHz for the next 8,000,000 steps. Finally during the last 1,000,000 steps it slows to a stop.

Example 2

Start Frequency Run Frequency

Accel Count

Run Count

Decel Count

5,000,000

steps control

sequence

Set %AQ1 =

500 (Hz)

Set %AQ2 =

1000 (Hz )

Set %AQ3-4 =

2,000,000 (Steps)

Set %AQ5-6 =

2,000,000 (Steps)

Set %AQ7-8 =

1,000,000 (Steps)

The example starts at 0.5 kHz and ramps up to 1 kHz during the first 2,000,000 steps.

Then, it runs at 1 kHz for the next 2,000,000 steps. Finally during the last 1,000,000 steps it slows to a stop.

Example 3

Start Frequency Run Frequency

Accel Count

Run Count

Decel Count

6,000,000

steps control

sequence

Set %AQ1 =

50 (Hz)

Set %AQ2 =

250 (Hz)

Set %AQ3-4 =

150,000 (Steps)

Set %AQ5-6 =

5,500,000 (Steps)

Set %AQ7-8 =

350,000 (Steps)

The following example starts at 50 Hz and ramps up to 250 Hz during the first 150,000 steps.

Then, it runs at 250 Hz for the next 5,500,000 steps. Finally during the last 350,000 steps it slows to a stop.

Page 52 of 110