Pulse output instructions
1033
Part III FP Instructions
F168_PulseOutput_
Trapezoidal
Trapezoidal control
See also:
PulseOutput_Trapezoidal_FB (see page 1194)
Use the following predefined DUT:
F168_PulseOutput_Trapezoidal_DUT
Control code
Initial and final speed
Target speed
Acceleration/deceleration time
Target value
Pulse stop (fixed)
Pulse output characteristics
t
f
6
1
2
3
4
5
3
1
Initial and final speed
4
Target value
2
Target speed
5
Pulse output control flag
3
Acceleration/deceleration time
6
Execution condition
The pulse output frequency changes according to the specified acceleration/deceleration time.
The difference between target and initial speed determines the slope of the ramps.
General programming information
Set any high-speed counter allocated to a pulse output channel to "Unused" in
the system registers.
When programs are being edited in RUN mode, pulse output stops but resumes
after the program changes have been downloaded.
If both the main program and the interrupt program contain code for the same
channel, make sure both are not executed simultaneously.
The high-speed counter control flag (e.g. sys_bIsHscChannel0ControlActive) and
Description
This instruction automatically performs trapezoidal control according to the parameters in the
specified DUT. Pulses are output from the specified channel when the control flag for this channel
is FALSE and the execution condition is TRUE.