Download  Print this page

Mitsubishi Electric MELSEC iQ-R C Programming Manual

Controller module/c intelligent function module.
Hide thumbs

Advertisement

MELSEC iQ-R C Controller Module/C Intelligent
Function Module
Programming Manual (Data Analysis)

Advertisement

Table of Contents

   Related Manuals for Mitsubishi Electric MELSEC iQ-R C

   Summary of Contents for Mitsubishi Electric MELSEC iQ-R C

  • Page 1 MELSEC iQ-R C Controller Module/C Intelligent Function Module Programming Manual (Data Analysis)
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using C Controller module and C intelligent function module, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly. CONDITIONS OF USE FOR THE PRODUCT (1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions;...
  • Page 4: Considerations For Use

    • Wind River Systems, Inc.: www.windriver.com INTRODUCTION Thank you for purchasing the Mitsubishi Electric MELSEC iQ-R series programmable controllers. This manual describes the functions required for programming. Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the MELSEC iQ-R series programmable controller to handle the product correctly.
  • Page 5: Table Of Contents

    CONTENTS SAFETY PRECAUTIONS ..............1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 6: Relevant Manuals

    RELEVANT MANUALS Manual name [manual number] Description Available form MELSEC iQ-R C Controller Module/C Intelligent Function Explains the programming specifications and dedicated e-Manual Module Programming Manual (Data Analysis) function libraries related to the data analysis functions of a C [SH-081756ENG] (this manual) Controller module and a C intelligent function module.
  • Page 7: Terms

    TERMS Unless otherwise specified, this manual uses the following terms. Term Description CW Workbench An abbreviation for C Controller module and C intelligent function module engineering tool, CW Workbench. C intelligent function module A generic term for MELSEC iQ-R series C intelligent function module. C intelligent function module A dedicated function library offered by C intelligent function module.
  • Page 8: Chapter 1 Common Items

    For the execution procedure of a user program, refer to the following manuals. • MELSEC iQ-R C Controller Module User's Manual (Startup) • MELSEC iQ-R C Intelligent Function Module User's Manual (Startup) For the development environment of a user program, refer to the following manual.
  • Page 9: Data Analysis Functions

    For information on specifying the VX_FP_TASK option in a script file, refer to the following section. • MELSEC iQ-R C Controller Module User's Manual (Startup) • MELSEC iQ-R C Intelligent Function Module User's Manual (Startup) For more details on the VX_FP_TASK option, refer to the manual for VxWorks.
  • Page 10: Considerations On Interrupt Service Routine (isr)

    Considerations on Interrupt Service Routine (ISR) Data analysis functions cannot be used in an interrupt service routine program (ISR). 1 COMMON ITEMS 1.3 Considerations on Interrupt Service Routine (ISR)
  • Page 11: Chapter 2 Function List

    FUNCTION LIST This chapter shows the functions used for data analysis. Data Analysis Functions The data analysis functions are as listed below. Data analysis functions Function name Description Reference Page 11 DANL_SetOpCondition DANL_SetOpCondition To set operating conditions for data analysis. DANL_GetOpCondition To acquire operating conditions for data analysis.
  • Page 12 MEMO 2 FUNCTION LIST 2.1 Data Analysis Functions...
  • Page 13: Chapter 3 Details Of Functions

    DETAILS OF FUNCTIONS This chapter shows the details of the data analysis functions. Data Analysis Functions DANL_SetOpCondition This function sets the operating conditions of a data analysis function. ■Format short DANL_SetOpCondition (long* plSet, long lSetNum) ■Argument Argument Name Description IN/OUT plSet Operating condition Specify operating conditions for data analysis.
  • Page 14 DANL_GetOpCondition This function acquires the operating conditions of a data analysis function. ■Format short DANL_GetOpCondition (long* plGet, long lGetNum) ■Argument Argument Name Description IN/OUT plGet Operating condition The operating conditions of the data analysis function which are set in the module is stored. storage array Prepare the array elements for the number of elements specified to the number of operating condition storage array elements (lGetNum).
  • Page 15 DANL_FFTSpectrum This function performs spectrum calculation using fast Fourier transform (FFT) for the specified wave. ■Format short DANL_FFTSpectrum (float* pfData, long lPoint, long lWindowType, long lSpectrumFormat, float* pfOutput) ■Argument Argument Name Description IN/OUT pfData Input data storage Specify the start address of wave data to be operated. destination lPoint Data size...
  • Page 16 DANL_DigitalFilter This function performs digital filter operation for the specified wave. ■Format short DANL_DigitalFilter (float* pfData, long lPoint, long lSamplingCycle, DIGITAL_FILTER_SETTINGS_STRUCT DigitalFilterSettings, float* pfOutput) ■Argument Argument Name Description IN/OUT pfData Input data storage destination Specify the start address of wave data to be operated. lPoint Data size Specify the number of the array elements of wave data to be operated.
  • Page 17 ■Operation example of the frequency response filter The following is an example when each filter is applied to the synthetic wave (2) which consists of three waves shown in the composed wave (1). In the following figure, the horizontal axis indicates time and the vertical axis indicates amplitude. *1 The following is an example of an operation.
  • Page 18 ●Band-pass filter A band-pass filter passes signals with frequencies higher than the frequency specified to the cutoff frequency 1 (fCutoffFreqHz1) and lower than the frequency specified to the cutoff frequency 2 (fCutoffFreqHz2). ●Band elimination filter A band elimination filter eliminates signals whose frequencies are higher than the frequency specified to the cutoff frequency 1 (fCutoffFreqHz1) and are lower than the frequency specified to the cutoff frequency 2 (fCutoffFreqHz2).
  • Page 19 DANL_FindCrossPoint This function calculates the number of cross points of the specified wave and a reference value for the number of cross points specified to the maximum number of cross points. ■Format short DANL_FindCrossPoint (float* pfData, long lPoint, float fReferenceValue, long lCrossPattern, long lMaxPoint, long* plCrossData,long* plCrossPoint) ■Argument Argument...
  • Page 20 ■Recognition pattern of a cross point The index of the next cross point is stored to the cross point index storage destination (plCrossData). When the specified wave and the reference value cross between pfData[k] and pfData[k+1] (integer within the range of k0), the index of the cross point to be stored to the cross point index storage destination (plCrossData) is (k+1).
  • Page 21 ● Both rise and fall The total of 4 cross points are detected when '2' or less is set to the number of times of reference value determinations with the DANL_SetOpCondition function. Number of cross points: 4 points Crossing positions: Data[3], Data[7], Data[12], Data[18] Indexes of cross points: 3, 7, 12, 18 Data[19] Data[18]...
  • Page 22 DANL_BoundCompareTest This function compares the specified wave and a check value to determine the upper/lower limit. ■Format short DANL_BoundCompareTest (float* pfData, long lPoint, float fLowerLimit, float fUpperLimit, long* plResult) ■Argument Argument Name Description IN/OUT pfData Input data storage Specify the start address of wave data to be determined. destination lPoint Data size...
  • Page 23 ■Effect of rounding error Setting the number of significant digits of a fractional value does not completely prevent the occurrence of rounding errors. For example, '1.1115' is expressed as '1.1114999...' in the module which handles three-digit significant digits. Therefore, if '1.1115' is rounded off to three decimal places, the result will be '1.111', not '1.112'.
  • Page 24 DANL_AryBoundCompareTest This function compares the specified wave and a check value to determine the upper/lower limit wave. ■Format short DANL_AryBoundCompareTest (float* pfData, long lPoint, float* pfLowerLimit, float* pfUpperLimit, long* plResult) ■Argument Argument Name Description IN/OUT pfData Input data storage Specify the start address of wave data to be determined. destination lPoint Data size...
  • Page 25 ■Effect of rounding error Setting the number of significant digits of a fractional value does not completely prevent the occurrence of rounding errors. For example, '1.1115' is expressed as '1.1114999...' in the module which handles three-digit significant digits. Therefore, if '1.1115' is rounded off to three decimal places, the result will be '1.111', not '1.112'.
  • Page 26: Chapter 4 Error Code List

    ERROR CODE LIST This chapter shows error descriptions and corrective actions for error codes. Data analysis functions The following table shows the codes of errors which occur in data analysis functions and their corrective actions. Error code Description Corrective action Relevant function Deci Hexa...
  • Page 27 Error code Description Corrective action Relevant function Deci Hexa decim 0132H ■Cutoff frequency 2 (fCutoffFreqHz2) out Check if the value within the settable range Page 14 DANL_DigitalFilter of range error is stored in the cutoff frequency 2. The value of the specified cutoff frequency 2 is out of the range.
  • Page 28: Index

    INDEX ..... 5,6 C Controller module ..5,6 C Controller module dedicated function .
  • Page 29 MEMO...
  • Page 30: Function Index

    FUNCTION INDEX ....22 DANL_AryBoundCompareTest ....20 DANL_BoundCompareTest ..... . 14 DANL_DigitalFilter .
  • Page 31 MEMO...
  • Page 32: Revisions

    Japanese manual number: SH-081755-A This manual confers no industrial property 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 33: Warranty

    WARRANTY Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company.
  • Page 34: Trademarks

    TRADEMARKS VxWorks and Wind River are either registered trademarks or trademarks of Wind River Systems, Inc. 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.
  • Page 36 SH(NA)-081756ENG-A(1704) MODEL: DATAANALYSIS-CPRG-E HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , 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.

Comments to this Manuals

Symbols: 0
Latest comments: