Panasonic FP Series Programming Manual page 1068

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F173_PulseOutput_
PWM
This instruction delivers a pulse width modulated output signal according to the specified DUT.
Description
Pulses are output from the specified channel when the control flag for this channel is FALSE and
the execution condition is TRUE.
Use the following predefined DUT: F173_PulseOutput_PWM_DUT
The following parameters can be specified in the DUT:
Approximate frequency
Duty ratio (for pulse duration and period)
General programming information
!
The duty ratio, particularly when it is close to the minimum or maximum value,
may differ from the specified duty ratio, depending on the load voltage and the
load current.
The duty ratio can be changed for each scan.
The frequency constant K cannot be changed during execution of the instruction.
If it is changed, it will have no effect on the frequency but on the resolution of the
duty ratio.
If the duty ratio is changed to a value outside the permissible range while the
instruction is being executed, the duty ratio is adjusted to the maximum value.
When execution of the instruction begins, an operation error is displayed.
If the frequency is changed to a value outside the permissible range while the
instruction is being executed, the resolution is adjusted to 100. When execution
of the instruction begins, no operation error is displayed.
If the duty is changed to 100% or higher while the instruction is being executed,
the frequency is adjusted to the maximum value at the specified resolution. When
execution of the instruction begins, no operation error is displayed.
If both the main program and the interrupt program contain code for the same
channel, make sure both are not executed simultaneously.
FP-X, FP0R: When a pulse output instruction is executed and pulses are being
output, the pulse output control flag (e.g. sys_bIsPulseChannel0Active) of the
corresponding channel is TRUE. No other pulse output instruction can be
executed as long as this flag is TRUE.
FP: The high-speed counter control flag (e.g.
sys_bIsHscChannel0ControlActive) and the pulse output control flag (e.g.
sys_bIsPulseChannel0Active) are assigned to the same internal relay (e.g.
R903A). Therefore, when a high-speed counter instruction or a pulse output
PWM output
Warning!
As soon as you begin editing a program online (i.e., in
RUN mode) using this instruction, pulse output will
stop.
Pulse output instructions
1067

Advertisement

Table of Contents
loading

Table of Contents