Publication 1762-RM001C-EN-P
6-24 Using High-Speed Outputs
PWM Output Frequency (OF)
The PWM OF (Output Frequency) variable defines the frequency of the
PWM function. This frequency can be changed at any time.
PWM Operating Frequency Status (OFS)
The PWM OFS (Output Frequency Status) is generated by the PWM
sub-system and can be used in the control program to monitor the actual
frequency produced by the PWM sub-system.
PWM Duty Cycle (DC)
The PWM DC (Duty Cycle) variable controls the output signal produced
by the PWM sub-system. Changing this variable in the control program
changes the output waveform. Typical values and output waveform:
•
DC = 1000: 100% Output ON (constant, no waveform)
•
DC = 750: 75% Output ON, 25% output OFF
•
DC = 500: 50% Output ON, 50% output OFF
•
DC = 250: 25% Output ON, 75% output OFF
•
DC = 0: 0% Output OFF (constant, no waveform)
PWM Duty Cycle Status (DCS)
The PWM DCS (Duty Cycle Status) provides feedback from the PWM
sub-system. The Duty Cycle Status variable can be used within an input
instruction on a rung of logic to provide PWM system status to the
remaining control program.
Element Description Address Data
Format
Range Type User Program
Access
OF - PWM Output Frequency PWM:0.OF word (INT) 0 to 20,000 control read/write
Element Description Address Data
Format
Range Type User Program
Access
OFS - PWM Operating
Frequency Status
PWM:0.OFS word (INT) 0 to 20,000 status read only
Element Description Address Data Format Range Type User Program
Access
DC - PWM Duty Cycle PWM:0.DC word (INT) 1 to 1000 control read/write
Element Description Address Data
Format
Range Type User Program
Access
DCS - PWM Duty Cycle Status PWM:0.DCS word (INT) 1 to 1000 status read only