SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety in order to handle the product correctly. This manual classifies the safety precautions into two categories: [ WARNING] and [ CAUTION].
If in doubt about the operation or use, please consult your local Mitsubishi Electric representative. • Mitsubishi Electric will not accept responsibility for actual use of the product based on these illustrative examples. Please use it after confirming the function and safety of the equipment and system.
TERMS Unless otherwise specified, this manual uses the following terms. Term Description Engineering tool A tool used for setting up programmable controllers, programming, debugging, and maintenance GENERIC TERMS AND ABBREVIATIONS Unless otherwise specified, this manual uses the following generic terms and abbreviations. Generic term/abbreviation Description Function Block.
OVERVIEW The FBs listed in this reference are module FBs (for GX Works3) to use the MELSEC iQ-F series high-speed counter module. Features This section describes the features of this function. Shortening programming time Programming time can be shortened by creating a configuration launch FB for each counter function.
System Configuration This shows the system configurations to use the FBs for this reference. (1) FX5UJ CPU module, FX5U CPU module, FX5UC CPU module (2) High-speed counter module (3) Sensor, controller, encoder 1 OVERVIEW 1.4 System Configuration...
FB details Available device Target module Firmware Version Engineering tool FX5UJ CPU module 1.060 or later GX Works3 Version 1.100E or later FX5U CPU module 1.300 or later GX Works3 Version 1.100E or later FX5UC CPU module 1.300 or later GX Works3 Version 1.100E or later High-speed counter module 1.000 or later...
Parameter settings For the parameter settings, refer to the following. MELSEC iQ-F FX5 High-Speed Counter Module User's Manual Performance value Module Processing time Maximum scan time Number of scans FX5UJ CPU module 0.773ms 0.651ms 2 scans *1*2 FX5U CPU module, FX5UC CPU module 0.599ms 0.549ms 2 scans...
FB details Available device Target module Firmware Version Engineering tool FX5UJ CPU module 1.060 or later GX Works3 Version 1.100E or later FX5U CPU module 1.300 or later GX Works3 Version 1.100E or later FX5UC CPU module 1.300 or later GX Works3 Version 1.100E or later High-speed counter module 1.000 or later...
Page 17
Timing chart of I/O signals ■Normal completion i_bEN (Execution command) o_bENO (Execution status) CH1 pulse width measurement start command (phase A) Un\G200.1 CH1 pulse width latest value (phase A) Measurement value Un\G328 to 329 CH1 period latest value (phase A) Measurement value Un\G346 to 347 CH1 pulse width measurement...
Page 18
■Error completion i_bEN (Execution command) o_bENO (Execution status) CH1 pulse width measurement start command (phase A) Un\G200.1 CH1 pulse width latest value (phase A) Un\G328 to 329 CH1 period latest value (phase A) Un\G346 to 347 CH1 pulse width measurement status flag (phase A) Un\G28.4 o_bPulseUpdate...
Precautions • When the measurement unit time for the measurement target is shorter than the scan time, the measurement may not be performed properly. Adjust the measurement unit time to twice the scan time or longer. • If a module error occurs after normal completion, this FB does not output error completion or module error. To check for module errors, use M+FX5-2HC_ErrorOperation (Error operation).
M+FX5-2HC_PulseDensityMeasure (Pulse Density Measurement) Overview This FB starts the pulse density measurement function and reads the calculated pulse density value. M+FX5-2HC_PulseDensityMeasure B:i_bEN o_bENO:B DUT:i_stModule o_bOK:B o_bErr:B UW:i_uCH o_uErrId:UW o_bMeasureStart:B o_bUpdate:B (10) o_udPulseDensity:UD Labels Input label Label Label name Data type Import Range Description...
FB details Available device Target module Firmware Version Engineering tool FX5UJ CPU module 1.060 or later GX Works3 Version 1.100E or later FX5U CPU module 1.300 or later GX Works3 Version 1.100E or later FX5UC CPU module 1.300 or later GX Works3 Version 1.100E or later High-speed counter module 1.000 or later...
Page 22
Timing chart of I/O signals ■Normal completion i_bEN (Execution command) o_bENO (Execution status) CH1 count permit command Un\G4.0 CH1 pulse density Measurement value Measurement value Measurement value Un\G300 to 301 CH1 pulse density/rotational speed being measured Un\G28.2 o_bUpdate (Pulse density update flag) o_udPulseDensity Measurement value Measurement value...
Page 23
■Error completion i_bEN (Execution command) o_bENO (Execution status) CH1 count permit command Un\G4.0 CH1 pulse density Un\G300 to 301 CH1 pulse density/rotational speed being measured Un\G28.2 o_bUpdate (Pulse density update flag) o_udPulseDensity (Pulse density) o_bMeasureStart (Pulse density under-measurement flag) o_bOK (Normal completion) o_bErr (Error completion)
Parameter settings For the parameter settings, refer to the following. MELSEC iQ-F FX5 High-Speed Counter Module User's Manual Performance value Module Processing time Maximum scan time Number of scans FX5UJ CPU module 1.09ms 1.01ms 2 scans *1*2 FX5U CPU module, FX5UC CPU module 0.910ms 0.809ms 2 scans...
M+FX5-2HC_RotationSpeedMeasure (Rotation Speed Measurement) Overview This FB starts the rotation speed measurement function and reads the calculated rotation speed measurement value. M+FX5-2HC_RotationSpeedMeasure B:i_bEN o_bENO:B DUT:i_stModule o_bOK:B UW:i_uCH o_bErr:B o_uErrId:UW o_bMeasureStart:B o_bUpdate:B o_dRotationVal:D (10) Labels Input label Label Label name Data type Import Range Description...
FB details Available device Target module Firmware Version Engineering tool FX5UJ CPU module 1.060 or later GX Works3 Version 1.100E or later FX5U CPU module 1.300 or later GX Works3 Version 1.100E or later FX5UC CPU module 1.300 or later GX Works3 Version 1.100E or later High-speed counter module 1.000 or later...
Page 27
Timing chart of I/O signals ■Normal completion i_bEN (Execution command) o_bENO (Execution status) CH1 count permit command Un\G4.0 CH1 rotational speed Measurement value Measurement value Measurement value Un\G302 to 303 CH1 pulse density/rotational speed being measured Un\G28.2 o_bUpdate (Rotation speed measurement value update flag) o_dRotationVal Measurement value...
Parameter settings For the parameter settings, refer to the following. MELSEC iQ-F FX5 High-Speed Counter Module User's Manual Performance value Module Processing time Maximum scan time Number of scans FX5UJ CPU module 1.02ms 0.923ms 2 scans *1*2 FX5U CPU module, FX5UC CPU module 0.768ms 0.676ms 2 scans...
M+FX5-2HC_ErrorOperation (Error Operation) Overview This FB monitors error codes and performs error resets. M+FX5-2HC_ErrorOperation B:i_bEN o_bENO:B DUT:i_stModule o_bOK:B UW:i_uCH o_bErr:B B:i_bErrorReset o_uErrId:UW o_bUnitErr:B o_uUnitErrCode:UW (10) o_bMonitorOK:B (11) Labels Input label Label Label name Data type Import Range Description i_bEN Execution Always On or off On: The FB is activated.
FB details Available device Target module Firmware Version Engineering tool FX5UJ CPU module 1.060 or later GX Works3 Version 1.100E or later FX5U CPU module 1.300 or later GX Works3 Version 1.100E or later FX5UC CPU module 1.300 or later GX Works3 Version 1.100E or later High-speed counter module 1.000 or later...
Parameter settings No parameter setting is required for this FB. Performance value Module Processing time Maximum scan time Number of scans FX5UJ CPU module 1.06ms 0.598ms 3 scans *1*2 FX5U CPU module, FX5UC CPU module 0.871ms 0.485ms 3 scans *1 When the program capacity is set to 128K steps, the processing speed may be reduced. *2 The labels in the standard area are used.
M+FX5-2HC_DegreeToCountVal (Angle Conversion) Overview This FB calculates count values from angles. M+FX5-2HC_DegreeToCountVal B:i_bEN o_bENO:B UW:i_uAngle o_bOK:B UD:i_udResolution o_bErr:B UW: i_uZeroValue o_uErrId:UW o_dCountVal:D Labels Input label Label Label name Data type Import Range Description i_bEN Execution Always On or off On: The FB is activated. command Off: The FB is not activated.
FB details Available device Target module Firmware Version Engineering tool FX5UJ CPU module 1.060 or later GX Works3 Version 1.100E or later FX5U CPU module 1.300 or later GX Works3 Version 1.100E or later FX5UC CPU module 1.300 or later GX Works3 Version 1.100E or later High-speed counter module 1.000 or later...
Page 37
Timing chart of I/O signals ■Normal completion i_bEN (Execution command) o_bENO (Execution status) Calculation Not executed Executing Not executed o_dCountVal Updated value (Count value) o_bOK (Normal completion) o_bErr (Error completion) o_uErrId (Error code) ■Error completion i_bEN (Execution command) o_bENO (Execution status) Calculation Not executed o_dCountVal...
Parameter settings No parameter setting is required for this FB. Performance value Module Processing time Maximum scan time Number of scans FX5UJ CPU module 0.025ms 0.532ms 1 scan *1*2 FX5U CPU module, FX5UC CPU module 0.029ms 0.451ms 1 scan *1 When the program capacity is set to 128K steps, the processing speed may be reduced. *2 The labels in the standard area are used.
PRECAUTIONS This chapter describes the common precautions related to the FBs listed in this reference. Precautions on FB Combinations The following describes the influences when using multiple FBs listed in this reference in combination. Influence matrix of the counter channel and target module : Simultaneous processing possible Counter Target module...
Page 40
MEMO 3 PRECAUTIONS 3.2 Precautions When Using FBs...
APPLICATION EXAMPLE Error Monitoring and Count Enable Operation This section describes the procedure for executing the count enable operation while monitoring for errors. The following FBs are used in this usage example. • M+FX5-2HC_CountEnable (Count enable operation) • M+FX5-2HC_ErrorOperation (Error operation) Overview Perform count enable operation while monitoring for module errors.
Programming After M0 (Execution command) is turned on, the error operation FB is executed. When M5 (Module error flag) is off, M10 (Execution command) is turned on and the count permit command is turned on. After M12 (Normal completion) is turned on, M14 (Count in operation) is turned on if the count operation is in progress. 4 APPLICATION EXAMPLE 4.1 Error Monitoring and Count Enable Operation...
Japanese manual number: SH-082651-A This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
TRADEMARKS The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies. In some cases, trademark symbols such as ' ' or ' ' are not specified in this manual. SH(NA)-082652ENG-A...
Page 48
Manual number: SH(NA)-082652ENG-A HEAD OFFICE: TOKYO BLDG., 2-7-3, MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS: 1-14, YADA-MINAMI 5-CHOME, HIGASHI-KU, NAGOYA 461-8670, JAPAN When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission. Specifications subject to change without notice.