Mitsubishi Electric MELSEC iQ-R Series Manual

Hide thumbs Also See for MELSEC iQ-R Series:

Advertisement

Quick Links

MELSEC iQ-R File Operation Function Block
Reference

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric MELSEC iQ-R Series

  • Page 1 MELSEC iQ-R File Operation Function Block Reference...
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly. The precautions given in this manual are concerned with this product only. For the safety precautions of the programmable controller system, refer to the MELSEC iQ-R Module Configuration Manual.
  • Page 4: Conditions Of Use For The Product

    Notwithstanding the above restrictions, Mitsubishi Electric may in its sole discretion, authorize use of the PRODUCT in one or more of the Prohibited Applications, provided that the usage of the PRODUCT is limited only for the specific applications agreed to by Mitsubishi Electric and provided further that no special quality assurance or fail-safe, redundant or other safety features which exceed the general specifications of the PRODUCTs are required.
  • Page 5: Table Of Contents

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

    System configuration, parameter settings, and online operations of e-manual [SH-081215ENG] GX Works3 e-Manual refers to the Mitsubishi Electric FA electronic book manuals that can be browsed using a dedicated tool. e-Manual has the following features: • Required information can be cross-searched in multiple manuals.
  • Page 7: 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 8: Chapter 1 Overview

    OVERVIEW FB described in this reference manual indicates the FB library for file operation. FB List The following table lists the FB library in this reference manual. Name Description M+FileOperation_SaveLoggingCSV_W_R Reads the signed word logging data stored in the file register (ZR), such as the analog data of multiple channels, and stores the data in CSV format in an SD memory card.
  • Page 9 MEMO 1 OVERVIEW 1.3 System Configuration...
  • Page 10: Chapter 2 File Operation Fb

    FILE OPERATION FB M+FileOperation_SaveLoggingCSV_W_R Overview This FB reads signed word logging data stored in a file register (ZR), such as analog data of multiple channels, and stores the data in CSV format in an SD memory card. M+FileOperation_SaveLoggingCSV_W_R B:i_bEN o_bENO:B UD:i_udDataAddr o_bOK:B o_udCompleteLogPoints:UD...
  • Page 11: Fb Details

    Relevant devices ■CPU module MELSEC iQ-R series programmable controller CPU of firmware version "31" or later • For the CPU modules classified as CPU module, refer to the MELSEC iQ-R Module Configuration Manual. • The R01CPU and R02CPU of firmware version "06" or later can be used.
  • Page 12 Functional description • When i_bEN (execution command) is turned on, this FB stores the logging data stored in the file register in CSV format in the SD memory card attached to the CPU module sequentially from the specified address of the file register (ZR) specified in i_udDataAddr (start address of the storage location of logging data).
  • Page 13 • Logging data can be stored into the file register using M+R60ADH_ReadContinuousLogging of the R60ADH4 and other FBs. When using M+R60ADH_ReadContinuousLogging, set the value as follows. For details on M+R60ADH_ReadContinuousLogging, refer to the following.  MELSEC iQ-R Analog-Digital Converter Module/Digital-Analog Converter Module Function Block Reference The following shows an example when the logging data of two channels is stored in an SD memory card.
  • Page 14 • When this FB creates a CSV file in an SD memory card, a file of the same name, if already exists in the SD memory card, is replaced with the newly created file. • If the set value of i_uCHNum (number of channels) is out of range, o_bErr (error completion) turns on and the processing of the FB is interrupted.
  • Page 15 Timing chart of I/O signals ■When the operation is completed successfully When 20000 is set to the number of read points i_bEN o_bENO Save processing for a CSV file Saving Unexecuted Unexecuted … 1000 19500 20000 o_udCompleteLogPoints o_bOK o_bErr o_uErrId ■When the operation is completed with an error When an error is detected before a CSV file is stored i_bEN...
  • Page 16: Performance Value

    Restrictions and precautions • This FB does not include the error recovery processing. Prepare the error recovery processing separately to suit the user's system and the expected operation. • The FB cannot be used in an interrupt program. • Using the FB in a program that is to be executed only once, such as a subroutine program or a FOR-NEXT loop, has a problem that i_bEN (execution command) can no longer be turned off and normal operation is not possible;...
  • Page 17: Error Code

    Error code Error code Description Action 0100H An out-of-range value is set in i_uCHNum (number of channels). Review and correct the settings and then execute the FB again. The number of channels is set out of the range of 1 to 4. 0101H An out-of-range value is set in i_udSavePoints (number of save Review and correct the settings and then execute the FB again.
  • Page 18: Appendix

    APPENDIX Appendix 1 CSV File Output Format The following table shows the format specifications of CSV files stored using M+FileOperation_SaveLoggingCSV_W_R. Item Description Delimiter Comma (,) Line feed code CRLF (0DH, 0AH) Character code ASCII File size 158888967 bytes at maximum *1 The file size is maximum when i_uCHNum (number of channels) is 1, i_udSavePoints (number of save points) is 10000000, and logging data is a negative 5-digit value.
  • Page 19 Header row ■File information row Information related to the CSV file is described. Column No. Item Output content Size (byte) Column 1 File type [LOGGING]  Column 2 (Blank) Column 3 Data type information 2 (row number of the data type information row from the beginning of the file) row number Column 4 Data name row number...
  • Page 20: Instruction Index

    INSTRUCTION INDEX ..8 M+FileOperation_SaveLoggingCSV_W_R...
  • Page 21 MEMO...
  • Page 22: Revisions

    Japanese manual number: BCN-P5999-1367-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 23: 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 24: Trademarks

    TRADEMARKS Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Unicode is either a registered trademark or a trademark of Unicode, Inc. in the United States and other countries. The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies.
  • Page 26 BCN-P5999-1368-A(2010)MEE 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.

Table of Contents