beautypg.com

Horner APG XL6 OCS User Manual

Page 58

background image

CH.11 MAN0883-05-EN

March 4, 2010

Page 58 of 135

#1037

11.4.3 HSC (High Speed Counter)

When either Q1 or Q2 is configured for HSC operation, HSC1 or HSC2 totalize functions are
extended to allow respective direct output control based on a comparison of the current count and
a preset value (PV). See totalize in the HSC section above for more information.

11.4.4

Stepper

Function

When Q1 is configured for Stepper, the stepper function is enabled at the Q1 output. Only one
stepper function and output is available.

Note that when Q1 is configured for stepper operation, Q2 operation is limited to direct
digital output.

The Stepper requires five parameters (%AQs) to be set for operation. These parameters may be
set at run-time but are ‘latched’ when the stepper is commanded to start.

Start Frequency (cycles per second)

This value (%AQ1) sets the frequency for the first cycle during the acceleration phase
and the frequency of the last cycle during the deceleration phase. When an acceleration
or deceleration count is specified, the Start Frequency must be greater than 0 and must
not exceed the run frequency or an error is generated.

Run Frequency (cycles per second)

This value (%AQ2) sets the frequency for the last cycle during the acceleration phase, the
consistent frequency during the run phase, and the frequency of the first cycle during the
deceleration mode. The Run Frequency must be greater than 0 and must not exceed
5000 cycles/sec. or an error is generated.

Acceleration Count

This value (%AQ3-4) sets the number of cycles to occur within the acceleration phase.
The frequency of the cycles within this mode will vary linearly between the specified Start
and Run frequency. The Accel count must not equal 1 or an error is generated. Setting
this value to zero disables this phase.

Run Count

This value (%AQ5-6) sets the number of cycles to occur within the run phase. The
frequency of the cycles within this mode is constant at the specified Run frequency. The
Run count may be any value. Setting this value to zero disables this phase.

Deceleration Count

This value (%AQ7-8) sets the number of cycles to occur within the deceleration phase.
The frequency of the cycles within this phase will vary linearly between the specified Run
and Stop frequency. The Decel count must not equal 1 or an error is generated. Setting
this value to zero disables this phase.


The stepper provides two Boolean registers to provide stepper status

Ready/Done

A high indication on this register (%I30) indicates the stepper sequence can be started
(i.e. not currently busy).