34
5 HIGH-SPEED COUNTER FB
5.1 M+FX5UCPU-Counter_PulseMeasure
■Public label
FB details
No. Variable name Name Data type Range Description
(10) pb_bPulseMeasuringIntervalSetting Pulse measurement
interval
Bit ON, OFF ON: Pulse period measurement
OFF: Pulse width measurement
Item Description
Available device CPU module FX5U CPU, FX5UC CPU
Engineering tool GX Works3 Version 1.025B or later
Language Ladder diagram
Number of basic steps 250 steps
The number of FB steps integrated in the program varies depending on the CPU module used, the input/output definition, and
the setting options of GX Works3. For the setting options of GX Works3, refer to GX Works3 Operating Manual.
Processing • Starts pulse measurement by turning i_bEN (Execution command) on.
• If the set value of the target channel is outside the setting range, o_bErr (Error completion) turns on and the processing of
this FB is aborted. In addition, the error code 100 (hexadecimal) is stored in o_uErrId (Error code). For the error code, refer
to Page 36 Error code.
• If an error occurs when starting pulse measurement, o_bErr (Error completion) turns on and the processing of this FB is
aborted. In addition, the error code is stored in o_uErrId (Error code). For the error codes, refer to MELSEC iQ-F FX5
User's Manual (Application).
FB compilation method Macro type
FB operation Always executed
Timing chart of I/O signals [When the operation is completed successfully]
(Positive logic, pulse width measurement, consecutive measurement mode)
[When the operation is completed successfully]
(Negative logic, pulse period measurement, consecutive measurement mode)
i_bEN
o_bENO
Pulse measurement
start/stop (HIOEN) instruction
Pulse width measurement
status flag (SM device)
o_bOK
Pulse input terminal (Xn)
Latest pulse width value
(SD device)
o_bUpdate
o_dResult
o_bErr
o_uErrId
0H
MeasuringStop
Indefinite
value
00
Measured value
Measured
value
0
Measured value
Measured valueMeasured value
Stop
i_bEN
o_bENO
Pulse measurement
start/stop (HIOEN) instruction
Pulse width measurement
status flag (SM device)
o_bOK
Pulse input terminal (Xn)
Latest pulse period value
(SD device)
o_bUpdate
o_dResult
o_bErr
o_uErrId
0H
MeasuringStop
Indefinite
value
00
Measured
value
0 Measured valueMeasured value
Stop