Mitsubishi Electric MELSEC iQ-F Series Manual
Mitsubishi Electric MELSEC iQ-F Series Manual

Mitsubishi Electric MELSEC iQ-F Series Manual

Hide thumbs Also See for MELSEC iQ-F Series:

Advertisement

Quick Links

MELSEC iQ-F
FX5 High-Speed Counter Module Function Block
Reference

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric MELSEC iQ-F Series

  • Page 1 MELSEC iQ-F FX5 High-Speed Counter Module Function Block Reference...
  • Page 3: Safety Precautions

    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].
  • Page 4: Introduction

    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.
  • Page 5: Table Of Contents

    CONTENTS SAFETY PRECAUTIONS ..............1 INTRODUCTION .
  • Page 6 M+FX5-2HC_DegreeToCountVal (Angle Conversion) ......... . 33 Overview .
  • Page 7: Relevant Manuals

    RELEVANT MANUALS Manual name Description MELSEC iQ-F FX5 High-Speed Counter Module User's Manual Describes the specifications of the high-speed counter module. <SH-082631ENG> MELSEC iQ-F FX5 High-Speed Counter Module Function Block Describes the specifications of the high-speed counter module FBs. Reference <SH-082652ENG>...
  • Page 8: Terms

    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.
  • Page 9: Chapter 1 Overview

    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.
  • Page 10: System Configuration

    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...
  • Page 11: Chapter 2 High-Speed Counter Module Fb

    HIGH-SPEED COUNTER MODULE FB M+FX5-2HC_CountEnable (Count Enable Operation) Overview This FB executes the count operation (Count start/stop) on a specified channel. M+FX5-2HC_CountEnable B:i_bEN o_bENO:B DUT:i_stModule o_bErr:B o_uErrId:UW UW:i_uCH o_bErr:B o_bCountStart:B Labels Input label Label Label name Data type Import Range Description i_bEN Execution...
  • Page 12: Fb Details

    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 13 Timing chart of I/O signals ■Normal completion i_bEN (Execution command) o_bENO (Execution status) CH1 count permit command Un\G4.0 CH1 in operation Un\G28.1 o_bOK (Normal completion) o_bCountStart (Count in operation flag) o_bErr (Error completion) o_uErrId (Error code) ■Error completion i_bEN (Execution command) o_bENO (Execution status) CH1 count permit command...
  • Page 14: Parameter Settings

    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...
  • Page 15: M+Fx5-2Hc_Pulsemeasure (Pulse Width Measurement)

    M+FX5-2HC_PulseMeasure (Pulse Width Measurement) Overview This FB starts the pulse measurement function and reads the measured pulse value. M+FX5-2HC_PulseMeasure B:i_bEN o_bENO:B DUT:i_stModule o_bOK:B UW:i_uCH o_bErr:B UW:i_uInputSignal o_uErrId:UW o_bMeasureStart:B o_bPulseUpdate:B (10) o_dPulseResult:D (11) o_bPeriodUpdate:B (12) o_dPeriodResult:D (13) Labels Input label Label Label name Data type Import...
  • Page 16: Fb Details

    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...
  • Page 19: Parameter Settings

    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).
  • Page 20: M+Fx5-2Hc_Pulsedensitymeasure (Pulse Density Measurement)

    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...
  • Page 21: Fb Details

    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)
  • Page 24: Parameter Settings

    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...
  • Page 25: M+Fx5-2Hc_Rotationspeedmeasure (Rotation Speed Measurement)

    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...
  • Page 26: Fb Details

    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...
  • Page 28 ■Error completion i_bEN (Execution command) o_bENO (Execution status) CH1 count permit command Un\G4.0 CH1 rotational speed Un\G302 to 303 CH1 pulse density/rotational speed being measured Un\G28.2 o_bUpdate (Rotation speed measurement value update flag) o_dRotationVal (Rotation speed measurement value) o_bMeasureStart (Rotation speed under-measurement flag) o_bOK (Normal completion)
  • Page 29: Parameter Settings

    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...
  • Page 30: M+Fx5-2Hc_Erroroperation (Error Operation)

    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.
  • Page 31: Fb Details

    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 32 Timing chart of I/O signals ■Normal completion i_bEN (Execution command) o_bENO (Execution status) i_bErrorReset (Error reset request) CH1 error reset command Un\G4.8 CH1 error flag Un\G28.F CH1 latest error code Error code Un\G33 o_bUnitErr (Module error flag) o_uUnitErrCode Error code (Module error code) o_bOK (Normal completion)
  • Page 33 ■Error completion i_bEN (Execution command) o_bENO (Execution status) i_bErrorReset (Error reset request) CH1 error reset command Un\G4.8 CH1 error flag Un\G28.F CH1 latest error code Un\G33 o_bUnitErr (Module error flag) o_uUnitErrCode (Module error code) o_bOK (Normal completion) o_bErr (Error completion) o_uErrId Error code (Error code)
  • Page 34: Parameter Settings

    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.
  • Page 35: M+Fx5-2Hc_Degreetocountval (Angle Conversion)

    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.
  • Page 36: Fb Details

    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...
  • Page 38: Parameter Settings

    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.
  • Page 39: Chapter 3 Precautions

    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...
  • Page 41: Chapter 4 Application Example

    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.
  • Page 42: Programming

    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...
  • Page 43: Instruction Index

    INSTRUCTION INDEX ....9 M+FX5-2HC_CountEnable ... . 33 M+FX5-2HC_DegreeToCountVal ....28 M+FX5-2HC_ErrorOperation .
  • Page 44 MEMO...
  • Page 45: Revisions

    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.
  • Page 46: Trademarks

    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.

Table of Contents