MAN0974-11-EN_XL7_UserManual
March 22
nd
, 2020
Page 99 | 195
9.5 High Speed Output Functions
On units that support high-speed output functions, two dedicated outputs are available that can
be configured for one of four modes of operation. Those modes are Normal, PWM, HSC Match and
Stepper.
9.5.1 Normal
When either Q1 or Q2 is configured for Normal operation, the digital output registers %Q1 and
%Q2 drives that respective output.
9.5.2 PWM
When either Q1 or Q2 is configured for PWM, the PWM function drives that respective output.
Both PWM channels may be individually enabled and can have independent frequency and duty
cycles.
The PWMs require two parameters (%AQs) to be set for operation. These parameters may be set
at run-time.
Duty Cycle - The Duty Cycle is a 32-bit value from 0 to 32,000 indicating the relative duty
cycle of the output. For example, a value of 8000 would indicate a 25% duty cycle, a value of
16,000 would indicate a 50% duty cycle. Zero (0) turns the output off, 32,000 turns the
output on.
Frequency - The Frequency is a 32-bit value indicating the output frequency in Hertz. One
over the frequency is the period.
Figures 9.6 & 9.7
–
PWM, Two parameters, Duty Cycle & Frequency
Duty Cycle
Period