302
25 HIGH-SPEED INPUT/OUTPUT FUNCTION
25.3 Pulse Width Measurement Function
25.3 Pulse Width Measurement Function
This section describes the pulse width measurement function.
Pulse width measurement function overview
Pulse width/period measurement of up to 12 channels is possible from the CPU module and the high-speed pulse input/output
module. The pulse width/period measurement function stores the values of 0.5 s ring counters at the input signal rising edge
and falling edge to special data registers. This function also stores the difference in the counter values (pulse width) between
the rising edge and the falling edge or stores the difference in the counter values (cycle) between the previous rising edge and
the current rising edge to special data registers in units of 0.5 s.
For the pulse width measurement function, input channel assignments, logical switch, and measurement mode settings are
configured with parameters, and measurements are started/stopped using the HIOEN/DHIOEN instruction.
High-speed pulse input/output module is supported only for FX5UJ and FX5U/FX5UC CPU modules.
To use the pulse width measurement function, parameter settings and the HIOEN/DHIOEN instruction are
always required.
Pulse width measurement specifications
This section describes the pulse width measurement function specifications.
Pulse input signals
■FX5S CPU module
Pulse width measurements can be used for a maximum of 4 channels.
The input device assignment is as follows. (fixed)
The table below shows the measurement frequencies.
The table below shows the measurement precision.
CPU module
CH1 CH2 CH3 CH4
X0 X1 X3 X4
CPU module Measurement frequencies
X0, X1, X3, X4 100 kHz
Item Description
Possible measurement range Cycle 10 s
Pulse width 10 s
Maximum measurable signal width 1073s741ms823s
Resolution 0.5 s