336
25 HIGH-SPEED INPUT/OUTPUT FUNCTION
25.7 PWM Function
PWM output abnormal end flag
This device is for monitoring the end status (abnormal end) of PWM output.
■Corresponding devices
The device numbers corresponding to each channel are as follows.
■Update timing
The timing of device update is as follows.
The ON timing of the PWM output abnormal end flag includes startup of the PWM/DPWM, HIOEN/ DHIOEN
instruction.
Number of output pulses
The number of output pulses of PWM output is stored.
When "0" is set, output is continued without any limitation.
■Corresponding devices
The device numbers corresponding to each channel are as follows.
■Update timing
The timing to reflect the device in operation is as follows.
• When the HCMOV/DHCMOV instruction is executed (values updated immediately)
• When the PWM/DPWM instruction is executed
• END processing
■Clear timing
The timing when the device is cleared is as follows.
•STOP/PAUSERUN
• If the number of output pulses written is equal to or smaller than the number of pulses that have already
been output, pulse output is stopped after the pulses being currently output are completed.
• If the number of output pulses written is greater than the number of pulses that have already been output,
pulse output is stopped after the specified number of pulses are output.
• If the number of output pulses is set to "0" (output without any limitation), the value cannot be changed while
pulses are being output.
• The number of output pulses cannot be changed to "0" (output without any limitation) while pulses are being
output.
CPU module High-speed pulse input/output module
First module Second module Third module Fourth module
CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8 CH9 CH10 CH11 CH12
SM5332 SM5333 SM5334 SM5335 SM5336 SM5337 SM5338 SM5339 SM5340 SM5341 SM5342 SM5343
ON OFF
• At stop of pulse output due to an error in the setting value of the pulse width,
period, or output pulse count
• At stop of pulse output due to the relation of pulse width > period
• In the case of forced stop with SM8034 (all output disable) or output cannot
be started
•Power OFFON, reset, STOP/PAUSERUN
• When pulse output starts
• When turned OFF by the user
• After forced stop by SM8034 (all output disable), SM8034 is turned off, and
PWM output resumes (only when unlimited output)
CPU module High-speed pulse input/output module
First module Second module Third module Fourth module
CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8 CH9 CH10 CH11 CH12
SD5301,
SD5300
SD5317,
SD5316
SD5333,
SD5332
SD5349,
SD5348
SD5365,
SD5364
SD5381,
SD5380
SD5397,
SD5396
SD5413,
SD5412
SD5429,
SD5428
SD5445,
SD5444
SD5461,
SD5460
SD5477,
SD5476