308
25 HIGH-SPEED INPUT/OUTPUT FUNCTION
25.3 Pulse Width Measurement Function
Details of special relays/special registers
Details of special relays/special registers used in pulse width measurement are explained below.
Pulse width measurement status flag
This flag is a device for monitoring the measurement in progress/measurement stopped status of pulse width measurement.
■Corresponding devices
The device numbers corresponding to each channel are as follows.
■Update timing
This device turns ON when the HIOEN/DHIOEN instruction is executed. It turns OFF at the END instruction when the
measurement mode is the 1 time measurement mode.
■Clear timing
The timing when the device is cleared is as follows.
•Power OFFON
• Reset
•STOP/PAUSERUN
• RUNSTOP/PAUSE
• When measurement is stopped by the HIOEN/DHIOEN instruction
Period measurement complete
This flag turns ON at the end of the 1st period measurement. During measurement in the always measurement mode, it stays
ON.
■Corresponding devices
The device numbers corresponding to each channel are as follows.
■Update timing
Devices are updated by the END instruction.
■Clear timing
The timing when the device is cleared is as follows.
•Power OFFON
• Reset
•STOP/PAUSERUN
• The first END instruction after measurement is started by the HIOEN/DHIOEN instruction
When the HCMOV/DHCMOV instruction is used, the latest value can be read.
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
SM5020 SM5021 SM5022 SM5023 SM5024 SM5025 SM5026 SM5027 SM5028 SM5029 SM5030 SM5031
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
SM5036 SM5037 SM5038 SM5039 SM5040 SM5041 SM5042 SM5043 SM5044 SM5045 SM5046 SM5047