286
24 HIGH-SPEED INPUT/OUTPUT FUNCTION
24.7 PWM Function
24.7 PWM Function
This chapter explains the PWM function.
Outline of PWM output
The CPU module and the high-speed pulse input/output module allow PWM output on up to 12 channels.
For PWM output, the output channel assignment, pulse/cycle units, output pulse logic, pulse width, cycle, etc. are set using
parameters, and the HIOEN/DHIOEN instruction is used to start/stop pulse output.
Also, the regular PWM/DPWM instruction can be used.
PWM output specifications
The PWM output specifications are explained below.
Number of output channels
Up to 12 channels (CPU module 4CH + high-speed pulse input/output module 2CH × 4 units) can be used for PWM output.
The output device assignment is as follows.
*1 : Head output number for each high-speed pulse input/output module
Outputs (Y) assigned for PWM output in parameter settings cannot be used by the positioning function.
Setting range of period and pulse width
The setting values that can be set for cycle and pulse width are shown below.
*1 : Head output number for each high-speed pulse input/output module
The response time for actual output varies depending on the connected load. Check the output specifications of the module
that uses PWM outputs. For the output specifications, refer to the manual of each module.
CPU module High-speed pulse input/output module
*1
First module Second module Third module Fourth module
CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8 CH9 CH10 CH11 CH12
Y0 to Y7 (Any device can be set.) Y+1 Y+5 Y+1 Y+5 Y+1 Y+5 Y+1 Y+5
Output number Period Pulse width
CPU module High-speed pulse input/output
module
*1
Y0 to Y3 Y+1, Y+5 5 μs more 2 μs more
Y4 to Y7 400 μs more 200 μs more