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.
CPU module
CH1
CH2
CH3
SM5020
SM5021
SM5022
■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 OFF→ON
• Reset
• STOP/PAUSE→RUN
• RUN→STOP/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.
CPU module
CH1
CH2
CH3
SM5036
SM5037
SM5038
■Update timing
Devices are updated by the END instruction.
■Clear timing
The timing when the device is cleared is as follows.
• Power OFF→ON
• Reset
• STOP/PAUSE→RUN
• 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.
High-speed pulse input/output module
First module
CH4
CH5
CH6
SM5023
SM5024
SM5025
High-speed pulse input/output module
First module
CH4
CH5
CH6
SM5039
SM5040
SM5041
Second module
Third module
CH7
CH8
CH9
SM5026
SM5027
SM5028
Second module
Third module
CH7
CH8
CH9
SM5042
SM5043
SM5044
24 HIGH-SPEED INPUT/OUTPUT FUNCTION
24.3 Pulse Width Measurement Function
Fourth module
CH10
CH11
CH12
SM5029
SM5030
SM5031
Fourth module
CH10
CH11
CH12
SM5045
SM5046
SM5047
24
269