Specifications
Hardware Configuration Configuring a High-speed Output (PWM)
VisiLogic: Getting Started 47
If, for example, the constant 750 is stored into the Duty Cycle operand,
the duty cycle is equal to 75.0% This means that the pulse will hold a
positive state during 75.0% of the total cycle.
• Frequency (F)
Note that F=1/T, where T is the duration time of a complete cycle.
Frequency settings differ from npn to pnp output type.
npn: You can use a value of 0, or a value from 8-50000Hz (
50kHz).
pnp: You can use a value of 0, or a value from 8-2000HZ.
Other frequency values are not supported.
Run
Changes the operating mode of the output from normal output mode to
HSO mode:
0 (SET)=Normal Mode, 1 (RESET): HSO Mode.
In the figure below, MI 22 Duty Cycle Value is equal to 250. This results in
the duty cycle being 25% of the total cycle time.
Note
•
If values out of range enter the Duty Cycle and Frequency operands,
the output turns OFF and remains OFF until the values re-enter the
range.
Configuring the HSO