Mitsubishi Electric MELSEC iQ-F FX5 Reference Manual page 36

Cpu module function block reference
Hide thumbs Also See for MELSEC iQ-F FX5:
Table of Contents

Advertisement

■Public label
No.
Variable name
(10)
pb_bPulseMeasuringIntervalSetting
FB details
Item
Available device
Language
Number of basic steps
Processing
FB compilation method
FB operation
Timing chart of I/O signals
5 HIGH-SPEED COUNTER FB
34
5.1 M+FX5UCPU-Counter_PulseMeasure
Name
Pulse measurement
interval
Description
CPU module
Engineering tool
Ladder diagram
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.
• 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).
Macro type
Always executed
[When the operation is completed successfully]
(Positive logic, pulse width measurement, consecutive measurement mode)
i_bEN
o_bENO
Pulse measurement
start/stop (HIOEN) instruction
Pulse width measurement
Stop
status flag (SM device)
o_bOK
Pulse input terminal (Xn)
Latest pulse width value
Indefinite
(SD device)
value
o_bUpdate
o_dResult
o_bErr
o_uErrId
[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
Stop
status flag (SM device)
o_bOK
Pulse input terminal (Xn)
Latest pulse period value
Indefinite
(SD device)
value
o_bUpdate
o_dResult
o_bErr
o_uErrId
Data type
Range
Bit
ON, OFF
FX5U CPU, FX5UC CPU
GX Works3 Version 1.025B or later
Measuring
0
Measured value
Measured value
Measured value
Measured
0
Measured value
value
0H
Measuring
0
Measured value
Measured value
Measured
0
value
0H
Description
ON: Pulse period measurement
OFF: Pulse width measurement
Stop
0
Stop
0

Advertisement

Table of Contents
loading

Table of Contents