Table of Contents

Advertisement

Quick Links

FX
-CF-ADP
3U
USER'S MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi FX3U-CF-ADP

  • Page 1 -CF-ADP USER'S MANUAL...
  • Page 3 Safety Precautions (Read these precautions before using.) Before installation, operation, maintenance or inspection of this product, thoroughly read through and understand this manual and the associated manuals. Also, take care to handle the module properly and safely. This manual classifies the safety precautions into two categories: Indicates that incorrect handling may cause hazardous conditions, resulting in death or severe injury.
  • Page 4 Safety Precautions (Read these precautions before using.) 2. INSTALLATION PRECAUTIONS Reference • Make sure to shut down all phases of the power supply externally before installing the FX -CF-ADP. Failure to do so may cause electric shock or damage to the product. Reference •...
  • Page 5 • Do not disassemble or modify the PLC. Doing so may cause fire, equipment failures, or malfunctions. For repair, contact your local Mitsubishi Electric distributor. • Turn off the power to the PLC before attaching or detaching the following devices.
  • Page 7: Safety Precautions

    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 8 • Since the examples within this manual, technical bulletin, catalog, etc. are used as reference; please use it after confirming the function and safety of the equipment and system. Mitsubishi Electric will not accept responsibility for actual use of the product based on these illustrative examples.
  • Page 9: Table Of Contents

    -CF-ADP User's Manual Table of Contents Table of Contents SAFETY PRECAUTIONS ....................(1) Standards........................... 7 Certification of UL, cUL standards ....................... 7 Compliance with EC directive (CE Marking) ..................7 Associated Manuals........................9 Generic Names and Abbreviations Used in the Manual ............10 Reading the Manual ........................
  • Page 10 -CF-ADP User's Manual Table of Contents 5. Wiring 5.1 Which Power Supply Cable to Use ....................29 5.1.1 Power supply cable ........................29 5.1.2 Preparing the power cable by yourself ..................29 5.2 Power Supply Wiring........................30 5.2.1 Power supply wiring........................30 5.3 Grounding .............................
  • Page 11 -CF-ADP User's Manual Table of Contents 8.7 FNC 304 - FLCMD / FX -CF-ADP command ................74 8.7.1 Detailed explanation of setting data ....................75 8.8 FNC 305 - FLSTRD / FX -CF-ADP status read ................. 76 8.8.1 Detailed explanation of setting data ....................77 8.9 Contents of Related Devices......................
  • Page 12 -CF-ADP User's Manual Table of Contents Appendix B: Version Information Appendix B-1 Version information .................... 113 Appendix B-1-1 Version check method ....................113 Appendix B-1-2 Version upgrade history....................113 Warranty..........................115 Revised History ........................116...
  • Page 13: Standards

    Compliance to EMC directive and LVD directive for the entire mechanical module should be checked by the user / manufacturer. For more information please consult with your nearest Mitsubishi product provider. Regarding the standards that comply with the main unit, please refer to either the FX series product catalog or consult with your nearest Mitsubishi product provider.
  • Page 14 -CF-ADP User's Manual Standards Caution to conform with EC Directives • Installation in Enclosure Programmable logic controllers are open-type devices that must be installed and used within conductive control cabinets. Please use the programmable logic controller while installed within a conductive shielded control cabinet.
  • Page 15: Associated Manuals

    -CF-ADP User's Manual Associated Manuals Associated Manuals Only the installation manual is packed together with the FX -CF-ADP special adapter. For a detailed explanation of the FX -CF-ADP special adapter, refer to this manual. For the hardware information and instructions on the PLC main unit, refer to the respective manuals. Refer to these manuals Refer to the appropriate equipment manual For a detailed explanation, refer to an additional manual...
  • Page 16: Generic Names And Abbreviations Used In The Manual

    -CF-ADP User's Manual Generic Names and Abbreviations Used in the Manual Generic Names and Abbreviations Used in the Manual Generic name or abbreviation Description series Generic name for FX Series PLC PLC or main unit Generic name for FX Series PLC main unit series Generic name for FX Series PLC...
  • Page 17 -CF-ADP User's Manual Generic Names and Abbreviations Used in the Manual Generic name or abbreviation Description Manual Hardware Edition Series User's Manual - Hardware Edition Hardware Edition Series User's Manual - Hardware Edition Programming manual Series Programming Manual - Basic and Applied Instructions Edition Communication control Edition FX Series User's Manual - Data Communication Edition Analog control Edition...
  • Page 18: Reading The Manual

    -CF-ADP User's Manual Reading the Manual Reading the Manual In this manual, the following formats are used for describing the common items. Indexes the chapter number. Shows the title of the chapter and the title Shows the manual title. of the section. The right side of each page This area shows the indexes the chapter number...
  • Page 19: Introduction

    1 Introduction -CF-ADP User's Manual 1.1 Outline Introduction Outline The CF card special adapter FX -CF-ADP (hereinafter abbreviated as "CF-ADP") stores data to and reads data from the CompactFlash card in accordance with applied instructions for the CF-ADP sent from the PLC.
  • Page 20: Power And Status Leds

    1 Introduction -CF-ADP User's Manual 1.3 Power and status LEDs Power and status LEDs LED display Color Status Description Power is not being supplied from the external power supply (24V DC). POWER Green Power is being supplied from the external power supply (24V DC). Data is not stored in the internal buffer.
  • Page 21: Specification

    2 Specification -CF-ADP User's Manual Specification DESIGN PRECAUTIONS • Make sure to include the following safety circuits outside the PLC to ensure safe system operation even during external power supply problems or PLC failure. Otherwise, malfunctions may cause serious accidents. 1) Above all, the following components should be included: an emergency stop circuit, a protection circuit, an interlock circuit for opposite movements (such as normal vs.
  • Page 22: General Specifications

    2 Specification -CF-ADP User's Manual 2.1 General specifications General specifications For items not listed below, specifications are the same as the of the PLC main unit. For general specifications, refer to the manual of the PLC main unit. → Refer to the FX Hardware Edition →...
  • Page 23: Cf Card Access Switch Specification

    2 Specification -CF-ADP User's Manual 2.4 CF card ACCESS switch specification CF card ACCESS switch specification Setting item Description Access to the CompactFlash card enabled Access to the CompactFlash card disabled Turn OFF the CF card ACCESS switch, and then confirm that the BUFFER LED and ACCESS LED are completely OFF before removing the CompactFlash card or turning OFF the power of the CF- ADP.
  • Page 24: System Configuration

    3 System Configuration -CF-ADP User's Manual 3.1 General configuration System Configuration General configuration CompactFlash card Memory card CompactFlash adapter card *An expansion board Component list Part name Model name Remarks An expansion board is required to connect the CF-ADP with the CF card special adapter -CF-ADP -32MT-LT PLCs.
  • Page 25: Applicable Plc

    3 System Configuration -CF-ADP User's Manual 3.2 Applicable PLC Applicable PLC 3.2.1 Connectable PLC Model name Applicability Ver. 2.61 and later Series PLC Only one CF-ADP unit can be connected to a main unit. Ver. 2.61 and later *1*2 Series PLC Only one CF-ADP unit can be connected to a main unit.
  • Page 26: Assignment Of Channels

    3 System Configuration -CF-ADP User's Manual 3.4 Assignment of channels 2. FX (D, DSS) PLC Other special adapters Main unit -CF-ADP Assignment of channels The CF-ADP is handled in the same way as communication expansion boards and communication special adapters for PLCs. Its channel number ("ch1" or "ch2") is assigned automatically in the order of the position from the main unit.
  • Page 27 3 System Configuration -CF-ADP User's Manual 3.4 Assignment of channels 2. FX (D, DSS) PLC • When using channel 1 (ch1) (ch2) Communication Analog Analog (D, DSS) CF-ADP special adapter special adapter special adapter Main unit • When using channel 2 (ch2) (ch1) Analog Communication...
  • Page 28: Installation

    4 Installation -CF-ADP User's Manual Installation INSTALLATION PRECAUTIONS • Make sure to shut down all phases of the power supply externally before installing the FX -CF-ADP. Failure to do so may cause electric shock or damage to the product. INSTALLATION PRECAUTIONS •...
  • Page 29: Cf-Adp Connection

    4 Installation -CF-ADP User's Manual 4.1 CF-ADP Connection CF-ADP Connection An expansion board should be installed before connection of the CF-ADP. An expansion board is not required when the CF-ADP is connected to a FX (D, DSS) PLC. This section explains an example where the CF-ADP is connected to a FX PLC.
  • Page 30: Din Rail Mounting

    4 Installation -CF-ADP User's Manual 4.2 DIN rail mounting DIN rail mounting The CF-ADP may be mounted on a 35mm (1.38") wide DIN46277 (DIN rail). Connect the CF-ADP to the PLC main unit before attaching the CF-ADP to a DIN rail. This section explains an example where the CF-ADP is connected to a FX PLC.
  • Page 31: Direct Mounting

    4 Installation -CF-ADP User's Manual 4.3 Direct mounting Direct mounting When the CF-ADP is connected to a FX PLC, the CF-ADP may be mounted directly on a panel surface using screws. The direct mounting method is not available when the CF-ADP is connected to a FX PLC.
  • Page 32: Inserting And Removal Procedures

    4 Installation -CF-ADP User's Manual 4.4 Inserting and Removal Procedures Inserting and Removal Procedures 4.4.1 Inserting the CompactFlash card The CompactFlash card can be inserted when the CF-ADP is power off. When the power supply of CF-ADP is ON and it inserts the CompactFlash card, make sure to perform of the following procedures.
  • Page 33: Removing The Compactflash Tm Card

    4 Installation -CF-ADP User's Manual 4.4 Inserting and Removal Procedures 4.4.2 Removing the CompactFlash card The CompactFlash card can be removed when the CF-ADP is power off. When the power supply of CF-ADP is ON and it removes the CompactFlash card, make sure to perform of the following procedures.
  • Page 34: Wiring

    5 Wiring -CF-ADP User's Manual Wiring DESIGN PRECAUTIONS • Make sure to include the following safety circuits outside the PLC to ensure safe system operation even during external power supply problems or PLC failure. Otherwise, malfunctions may cause serious accidents. 1) Above all, the following components should be included: an emergency stop circuit, a protection circuit, an interlock circuit for opposite movements (such as normal vs.
  • Page 35: Which Power Supply Cable To Use

    • Do not disassemble or modify the PLC. Doing so may cause fire, equipment failures, or malfunctions. For repair, contact your local Mitsubishi Electric distributor. • Turn off the power to the PLC before attaching or detaching the following devices.
  • Page 36: Power Supply Wiring

    5 Wiring -CF-ADP User's Manual 5.2 Power Supply Wiring Power Supply Wiring 5.2.1 Power supply wiring Grounding CF-ADP CF-ADP Expansion Expansion [Main unit] [Main unit] board board Power connector Power connector Black Green Black Green Grounding Grounding Grounding Stabilized Stabilized power supply power supply 24V DC...
  • Page 37: Power Off Procedure

    5 Wiring -CF-ADP User's Manual 5.4 Power OFF procedure Power OFF procedure Make sure to perform either of the following procedures when turning OFF the power of the CF-ADP. • Power OFF procedure using the CF card ACCESS switch → Refer to Subsection 5.4.1 •...
  • Page 38: Connection Of The Power Supply Cable

    5 Wiring -CF-ADP User's Manual 5.5 Connection of the power supply cable Connection of the power supply cable The CF-ADP receives and supplies power through the built-in dedicated power connector. 5.5.1 Connection/removal of the power supply cable • Connection Connect the power supply cable after confirming the connector direction. •...
  • Page 39: Functions

    6 Functions -CF-ADP User's Manual 6.1 Details of functions Functions Details of functions The user can perform the following procedures for CompactFlash cards using applied instructions for the CF-ADP. • Creating FIFO function files inside the CompactFlash card. (Only one pattern is available for FIFO function files. Multiple FIFO function files are created automatically with a predetermined file name.
  • Page 40: Status Information

    6 Functions -CF-ADP User's Manual 6.2 Status information Status information The user can read the following status information using applied instructions for the CF-ADP. • Detecting that a CompactFlash card is mounted. • Detecting that the CompactFlash card is full. •...
  • Page 41: Before Programming

    7 Before Programming -CF-ADP User's Manual 7.1 File format available in the CF-ADP Before Programming This chapter describes several items that should be known before programming. • File format available in the CF-ADP • Files created by the user • Characters available in files •...
  • Page 42: Files Created By The User

    7 Before Programming -CF-ADP User's Manual 7.1 File format available in the CF-ADP Contents of files in the "csv" format Contents of data Description Remark When the file name is added, the Index, date and time are Index,DATE TIME, added automatically. Character string consisting of up to 32 half-width/full-width Data name Refer to Subsection 7.1.3.
  • Page 43: Characters Available In Files

    Use characters available in PLCs such as shift JIS characters (which are set by region). Mitsubishi recommends US-ASCII characters when files are used in an environment that caters to several languages. Use US-ASCII characters if UNICODE characters are set by region.
  • Page 44: Data Size Calculation

    7 Before Programming -CF-ADP User's Manual 7.1 File format available in the CF-ADP 7.1.4 Data size calculation When calculating the data size, use the following formula in accordance with the byte count shown in the table below. Number of Contents of data Used characters Symbol Remark...
  • Page 45: Data Writing Destination

    7 Before Programming -CF-ADP User's Manual 7.1 File format available in the CF-ADP 7.1.5 Data writing destination Data can be written to two destinations, the CompactFlash card and the internal buffer inside the CF-ADP. CF-ADP Main unit Writing destination Sequence Internal buffer program inside CF-ADP...
  • Page 46: File Id

    7 Before Programming -CF-ADP User's Manual 7.1 File format available in the CF-ADP 7.1.6 File ID Applied instructions for the CF-ADP use the file ID for specifying files. Accordingly, the file name saved in the CompactFlash card is associated with the file ID, and controlled by the ID table. When a file whose file ID is "1"...
  • Page 47: Fifo File

    7 Before Programming -CF-ADP User's Manual 7.1 File format available in the CF-ADP 7.1.7 FIFO file When the file ID is set to "K0", the CF-ADP creates FIFO files. The CF-ADP creates multiple FIFO files, and executes FIFO (first in, first out) in units of files for the CF-ADP. With the FIFO function, the CF-ADP keeps the latest data, and deletes old data so that the total capacity of FIFO files and other files do not exceed the specified CompactFlash card use ratio.
  • Page 48: Directory Structure

    7 Before Programming -CF-ADP User's Manual 7.2 Directory structure Directory structure The following directory is created inside the CompactFlash card. • In the case of a normal file The directory "\FX3U_CF\DATA\." is created inside the CompactFlash card. The following data is stored in the directory. Directory Root \FX3U_CF\DATA\.
  • Page 49: General Rules For Applied Instructions

    7 Before Programming -CF-ADP User's Manual 7.4 General Rules for Applied Instructions General Rules for Applied Instructions 7.4.1 Expression and operation type of applied instructions Instruction and operands - Function numbers (FNC00 - FNC ) and symbols (mnemonic codes) are assigned to the applied instructions of the PLC.
  • Page 50: Programming Using "Instruction Execution Complete" Flag And "Instruction Execution Abnormal End" Flag

    7 Before Programming -CF-ADP User's Manual 7.4 General Rules for Applied Instructions 7.4.2 Programming using "Instruction execution complete" flag and "Instruction execution abnormal end" flag 1) If two or more CF-ADP instructions are used in a program, the "Instruction execution complete" flag (M8029) or "Instruction execution abnormal end"...
  • Page 51 7 Before Programming -CF-ADP User's Manual 7.4 General Rules for Applied Instructions 2) To use at a position other than just below the CF-ADP instructions. If two or more CF-ADP instructions are used in a program, the "Instruction execution complete" flag (M8029) and "Instruction execution abnormal end"...
  • Page 52: Cf-Adp Applied Instructions Explanation

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.1 CF-ADP Instructions types CF-ADP Applied Instructions Explanation This chapter explains applied instructions for the CF-ADP. CF-ADP Instructions types The PLC and the CF-ADP transfer data to each other using applied instructions for the CF-ADP. Six applied instructions are provided for purpose including file creation, data writing and data reading.
  • Page 53: Cautions On Programming

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.2 Common Items in CF-ADP Instructions 4. Operation when an error occurrs When an error occurs, the instruction execution abnormal complete flag (M8329) turns ON, and execution of the instruction is aborted. After that, the error code is stored in the error code storage register, and the error flag turns ON.
  • Page 54: Fnc 300 - Flcrt / File Create•Check

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.3 FNC 300 - FLCRT / File create•check FNC 300 - FLCRT / File create•check Outline The FLCRT instruction creates a file inside the CompactFlash card mounted in the FX -CF-ADP. When executed after creation of a new file, the FLCRT instruction checks the association with the file ID, and evaluates it.
  • Page 55: Detailed Explanation Of Setting Data

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.3 FNC 300 - FLCRT / File create•check 8.3.1 Detailed explanation of setting data Details of the setting data in the FLCRT instruction are as shown below. Setting items Description Data Type File ID This ID number is associated with the file name.
  • Page 56 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.3 FNC 300 - FLCRT / File create•check Caution When the file ID is "K0" 1) The CF-ADP can create up to 1000 files (within the CompactFlash card capacity). 2) The file name is set to "FILE0000.CSV" to "FILE0999.CSV". When the file ID is "K1"...
  • Page 57: Fnc 301 - Fldel / File Delete•Cf Card Format

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.4 FNC 301 - FLDEL / File delete•CF card format FNC 301 - FLDEL / File delete•CF card format Outline The FLDEL instruction deletes files stored in the CompactFlash card, or formats the CompactFlash card.
  • Page 58: Detailed Explanation Of Setting Data

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.4 FNC 301 - FLDEL / File delete•CF card format 8.4.1 Detailed explanation of setting data Details of the setting data in the FLDEL instruction are as shown below. Setting items Description Data Type File ID K-1(H0FFFF) : The FLDEL instruction deletes all files.
  • Page 59 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.4 FNC 301 - FLDEL / File delete•CF card format 3) Program Example 3 This program formats the CompactFlash card in the FAT 16 format when X000 turns ON. Channel number 1 is used. X000 FNC301 H200...
  • Page 60: Fnc 302 - Flwr / Data Write

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write FNC 302 - FLWR / Data write Outline The FLWR instruction writes data to the CompactFlash card or to the buffer inside the FX -CF-ADP.
  • Page 61 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write The FLWR instruction writes data specified by the device to a file stored in the CompactFlash card specified by the file ID or to the buffer inside the CF-ADP. The FLWR instruction can overwrite data in the line position specified by the device +1, and can write additional data (K-1).
  • Page 62: Detailed Explanation Of Setting Data

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 8.5.1 Detailed explanation of setting data Details of the setting data in the FLWR instruction are as shown below. Setting items Description Data Type File ID 16-bit binary K0 to K63...
  • Page 63: Writing Data Of Same Type

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 8.5.2 Writing data of same type "m" data points of the same type in one line are written as follows. Additional writing or overwriting is available. Line position Used channel File ID...
  • Page 64 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write • Sequence program It is assumed that D10 to D14 store values. This program does not describe such values. X000 M8404 M8405 FNC 12 Specify the data writing type.
  • Page 65 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 2. When overwriting data in a previously written line • Set the data writing parameters (line position and column position of the writing destination) in accordance with the written points.
  • Page 66 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write • Sequence program It is assumed that D10 and D11 store values. This program does not describe such values. X000 M8404 M8405 Specify the data writing type. FNC 12 Decimal (16-bit) type is specified.
  • Page 67: Writing Data Of Different Types

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 8.5.3 Writing data of different types Data of different types existing in 1 line are written as follows. Additional writing or overwriting is available. Line position Used channel File ID...
  • Page 68 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 1. When writing additional data to a file • Set the data writing parameters as follows in all of a series of FLWR instructions. - Line position of writing destination : K-1 (Additional writing) - Column position : K-1 •...
  • Page 69 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write • Sequence program It is assumed that D101 and D100 store 32-bit hexadecimal data, Y010 stores bit data, Y011 stores bit data, R100 stores 16-bit decimal data, and R101 stores 16-bit decimal data respectively. This program does not describe such values.
  • Page 70 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write From previous page From previous page Specify the data writing type. FNC 12 The 16-bit decimal type is specified. Specify the line position of the FNC 12 writing destination.
  • Page 71 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 2. When overwriting data in a previously written area • Set the data writing parameters (line position and column position) in accordance with the written points. •...
  • Page 72 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write • Sequence program It is assumed that M15 stores bit data, M16 stores bit data, and R200 stores 16-bit decimal data. This program does not describe such values. X000 M8424 M8425...
  • Page 73 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write From previous page From previous page M8329 Abnormal FNC 12 D8438 D100 The error code is stored. The error code details are FNC 12 D8437 D101 stored.
  • Page 74: Fnc 303 - Flrd / Data Read

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.6 FNC 303 - FLRD / Data read FNC 303 - FLRD / Data read Outline The FLRD instruction reads data from the CompactFlash card. 1. Instruction format Mnemonic Operation Condition Mnemonic Operation Condition FNC 303 16-bit Instruction...
  • Page 75: Detailed Explanation Of Setting Data

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.6 FNC 303 - FLRD / Data read 8.6.1 Detailed explanation of setting data Details of the setting data in the FLRD instruction are as shown below. Setting items Description Data Type File ID 16-bit binary K0 to K63...
  • Page 76: Reading Data Of The Same Type From A File

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.6 FNC 303 - FLRD / Data read 8.6.2 Reading data of the same type from a file "m" data points of the same data type in one line are read as follows. Total number of Used channel File ID...
  • Page 77: Reading Data Of Different Types From A File

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.6 FNC 303 - FLRD / Data read 8.6.3 Reading data of different types from a file Data of different types in one line are read as follows. Total number of Used channel File ID Data read parameter Read data...
  • Page 78 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.6 FNC 303 - FLRD / Data read Program Example • Explanation of operation When X000 turns ON, 4 data points of different types are read from the 1st column in Index 2 in the following file.
  • Page 79 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.6 FNC 303 - FLRD / Data read From previous page From previous page FNC 12 Specify the data reading type. The bit type is specified. Line position from which data is FNC 12 read.
  • Page 80: Fnc 304 - Flcmd / Fx

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.7 FNC 304 - FLCMD / FX3U-CF-ADP command FNC 304 - FLCMD / FX -CF-ADP command Outline The FLCMD instruction gives instruction for operation to the FX -CF-ADP. 1. Instruction format Mnemonic...
  • Page 81: Detailed Explanation Of Setting Data

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.7 FNC 304 - FLCMD / FX3U-CF-ADP command 8.7.1 Detailed explanation of setting data Details of the setting data in the FLCMD instruction are as shown below. Setting items Description Data Type...
  • Page 82: Fnc 305 - Flstrd / Fx

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.8 FNC 305 - FLSTRD / FX3U-CF-ADP status read FNC 305 - FLSTRD / FX -CF-ADP status read Outline The FLSTRD instruction reads the status (including the error information and file information) of the FX -CF- ADP.
  • Page 83: Detailed Explanation Of Setting Data

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.8 FNC 305 - FLSTRD / FX3U-CF-ADP status read 8.8.1 Detailed explanation of setting data Details of the setting data in the FLSTRD instruction are as shown below. Setting items Description Data Type...
  • Page 84 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.8 FNC 305 - FLSTRD / FX3U-CF-ADP status read • When is "K768 (H300)" The FLSTRD instruction reads the version information of the CF-ADP. Setting items Description Stores the version of CF-ADP.
  • Page 85 8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.8 FNC 305 - FLSTRD / FX3U-CF-ADP status read 2) Program Example 2 When X000 turns ON, the FLSTRD instruction checks whether or not a file whose ID is "1" exists. M100 turns ON when a file whose ID is "1"...
  • Page 86: Contents Of Related Devices

    8 CF-ADP Applied Instructions Explanation -CF-ADP User's Manual 8.9 Contents of Related Devices Contents of Related Devices The tables below show special auxiliary relays and special data registers used in CF-ADP instructions (FNC300 (FLCRT) to FNC305 (FLSTRD)). For details on the related devices, refer to Appendix A-2. 1.
  • Page 87: Program Examples

    • Do not disassemble or modify the PLC. Doing so may cause fire, equipment failures, or malfunctions. For repair, contact your local Mitsubishi Electric distributor. • Turn off the power to the PLC before attaching or detaching the following devices.
  • Page 88: Program Example 1

    9 Program Examples -CF-ADP User's Manual 9.2 Program Example 1 Program Example 1 9.2.1 Operation details • When X000 turns ON, the following file is created. If a file whose file ID is "1" already exists in the CompactFlash card, file creation and data name writing are aborted.
  • Page 89: Device Assignments

    9 Program Examples -CF-ADP User's Manual 9.2 Program Example 1 9.2.3 Device Assignments Device No. Contents of operation X000 Creates a 32-bit decimal type file, and writes data names. X001 Writes data to the 32-bit decimal type file. X002 Reads data from the 32-bit decimal type file. X003 Deletes the 32-bit decimal type file.
  • Page 90: Sequence Program

    9 Program Examples -CF-ADP User's Manual 9.2 Program Example 1 9.2.4 Sequence Program This program example describes the sequence program for channel 1 (ch1). Rewrite the channel No. with the actual system configuration to be used. → For explanation of operations, refer to Subsection 9.2.1. →...
  • Page 91 9 Program Examples -CF-ADP User's Manual 9.2 Program Example 1 From previous page From previous page A 32-bit decimal type file is created M8404 M8405 FNC209 The file name is set to "DWORD_01" "DWORD_01". $MOV Remains CF-ADP CF card ON while a unit ready mounted FNC 12...
  • Page 92 9 Program Examples -CF-ADP User's Manual 9.2 Program Example 1 From previous page From previous page FNC 12 Specify the data writing type. Specify the line position of the FNC 12 writing destination. Specify the data column FNC 12 position in the writing destination.
  • Page 93 9 Program Examples -CF-ADP User's Manual 9.2 Program Example 1 From previous page From previous page Data is written to the buffer 10 times, and then forcibly written to the CompactFlash card. M8002 FNC 12 The buffered data forcible writing execution counter is set to "0".
  • Page 94 9 Program Examples -CF-ADP User's Manual 9.2 Program Example 1 From previous page From previous page The 32-bit decimal type file is deleted M8404 M8405 FNC301 File delete. FLDEL Remains ON CF-ADP CF card unit ready while the 32- Remains ON while the 32-bit M8329 mounted bit decimal...
  • Page 95: Program Example 2

    9 Program Examples -CF-ADP User's Manual 9.3 Program Example 2 Program Example 2 9.3.1 Operation details • When X004 turns ON, the following file is created inside the CompactFlash card. If a file whose file ID is "0" already exists in the CompactFlash card, file creation and data name writing are aborted.
  • Page 96 9 Program Examples -CF-ADP User's Manual 9.3 Program Example 2 Device No. Contents of operation X007 Deletes the mixed type file. Remains ON while a mixed type file is being created. Remains ON while data is being written to the mixed type file. Remains ON while data is being read from the mixed type file.
  • Page 97: Sequence Program

    9 Program Examples -CF-ADP User's Manual 9.3 Program Example 2 9.3.4 Sequence Program This program example describes the sequence program for channel 1 (ch1). Rewrite the channel No. with the actual system configuration to be used. → For explanation of operations, refer to Subsection 9.3.1. →...
  • Page 98 9 Program Examples -CF-ADP User's Manual 9.3 Program Example 2 From previous page From previous page A mixed type file is created M8404 M8405 FNC 12 Time stamp setting. Remains ON CF-ADP CF card unit ready while a new FNC 12 mounted Data type setting.
  • Page 99 9 Program Examples -CF-ADP User's Manual 9.3 Program Example 2 From previous page From previous page FNC 12 Specify the data writing type. Specify the line position of the FNC 12 writing destination. Specify the data column FNC 12 position in the writing destination.
  • Page 100 9 Program Examples -CF-ADP User's Manual 9.3 Program Example 2 From previous page From previous page FNC 12 Specify the data writing type. FNC 12 Number of written data points. FNC302 Data writing. FLWR FNC 12 Specify the data writing type. FNC 12 Number of written data points.
  • Page 101 9 Program Examples -CF-ADP User's Manual 9.3 Program Example 2 From previous page From previous page Mixed type data is read M8404 M8405 FNC 12 Specify the data reading type. CF-ADP CF card Remains ON unit ready while data is FNC 21 Specify the line position from mounted...
  • Page 102 9 Program Examples -CF-ADP User's Manual 9.3 Program Example 2 From previous page From previous page M8404 M8405 FNC 12 Specify the data reading type. CF-ADP CF card Remains ON unit ready while data is mounted FNC 12 being read Number of read data points.
  • Page 103: Program Example 3

    9 Program Examples -CF-ADP User's Manual 9.4 Program Example 3 Program Example 3 9.4.1 Operation details When X010 turns ON, error codes, error code details, and error code information (error flag) of the CF-ADP are read. 9.4.2 Device Assignments Device No. Contents of operation X010 Reads error codes, error code details, and error code information (error flag) of the CF-ADP.
  • Page 104: Sequence Program

    9 Program Examples -CF-ADP User's Manual 9.4 Program Example 3 9.4.3 Sequence Program This program example describes the sequence program for channel 1 (ch1). Rewrite the channel No. with the actual system configuration to be used. → For explanation of operations, refer to Subsection 9.4.1. →...
  • Page 105: 10. Troubleshooting

    10 Troubleshooting -CF-ADP User's Manual 10. Troubleshooting INSTALLATION PRECAUTIONS • Make sure to shut down all phases of the power supply externally before installing the FX CF-ADP. Failure to do so may cause electric shock or damage to the product. INSTALLATION PRECAUTIONS •...
  • Page 106 • Do not disassemble or modify the PLC. Doing so may cause fire, equipment failures, or malfunctions. For repair, contact your local Mitsubishi Electric distributor. • Turn off the power to the PLC before attaching or detaching the following devices.
  • Page 107: Troubleshooting Procedure

    10 Troubleshooting -CF-ADP User's Manual 10.1 Troubleshooting procedure 10.1 Troubleshooting procedure 10.1.1 LED status check The table below describes details for LED statuses. Color Status Description Error corrective action display • Correctly connect the power cable. • Correctly connect the wiring to the external Power is not being supplied from the external power supply.
  • Page 108: 10.1.3 Error Code List And Action

    10 Troubleshooting -CF-ADP User's Manual 10.1 Troubleshooting procedure 10.1.3 Error Code List and Action The list below shows error codes and corrective actions. 1. Error code list Error Error definition Error corrective action code Parity, Framing, Overrun error Communication character error Communication SUM error Check the connection to the CF-ADP.
  • Page 109 Too many characters name exceeds 32 full-width characters. Something may be wrong with the hardware. System error Contact your local Mitsubishi Electric distributor. Power shutdown history reading error Check whether a CompactFlash card having sufficient free space is Power shutdown history writing error mounted correctly.
  • Page 110 Time check error Check the version of the main unit. Something may be wrong with the hardware. Address error inside adapter Contact your local Mitsubishi Electric distributor. Consecutive execution serial number error Consecutive execution serial number error (serial number) The data type specified during file creation is different from the data Outside data type range type to be written.
  • Page 111 10 Troubleshooting -CF-ADP User's Manual 10.1 Troubleshooting procedure Error Error definition Error corrective action code Data cannot be written to the line position specified in the file writing instruction. Outside data line position range Specify line position smaller than "Index value existing in the file +1" or "Maximum line position specified in the file creation instruction".
  • Page 112 10 Troubleshooting -CF-ADP User's Manual 10.1 Troubleshooting procedure Error Error definition Error corrective action code Buffered data was not able to be written to the CompactFlash card. Check whether the CompactFlash card is mounted correctly, and Buffered data writing error to CompactFlash card whether it has sufficient free space.
  • Page 113: Diagnostics On The Plc Main Unit

    If the power is not OFF, check the power supply and the power supply occurred. route. • The power supply is OFF. If power is being supplied correctly, consult a Mitsubishi Electric • Incorrect external wiring. distributor. • Power of the specified voltage is not •...
  • Page 114: Error(Err) Led [On/Flashing/Off]

    Fit a noise filter onto the power supply line. 3) If the ERROR(ERR) LED does not go out even after measures in 1) and 2) are adopted, consult a Mitsubishi Electric distributor. One of the following errors has occurred on...
  • Page 115: Appendix A: Related Devices

    Appendix A: Related Devices -CF-ADP User's Manual Appendix A-1 Related Device List Appendix A: Related Devices Appendix A-1 Related Device List The tables below show special auxiliary relays and special data registers used in CF-ADP instructions (FNC300 (FLCRT) to FNC305 (FLSTRD)). 1.
  • Page 116: Appendix A-2 Details Of Related Devices

    Appendix A: Related Devices -CF-ADP User's Manual Appendix A-2 Details of related devices Appendix A-2 Details of related devices This section explains devices used during CF-ADP. Appendix A-2-1 Instruction execution complete [M8029] When execution of CF-ADP instructions is completed, this device turns ON. 1.
  • Page 117: Appendix A-2-5 Cf Card Mount Status [M8405, M8425]

    Appendix A: Related Devices -CF-ADP User's Manual Appendix A-2 Details of related devices Appendix A-2-5 CF card mount status [M8405, M8425] These devices indicate the CompactFlash card status. 1. Detailed contents When the CompactFlash card is mounted, one of these devices turns ON. When communication port ch1 is used, M8405 turns ON.
  • Page 118: Appendix A-2-10 Step Number Of An Instruction For The Cf-Adp Where An Error Has Occurred [D8415, D8414][D8435, D8434]

    Appendix A: Related Devices -CF-ADP User's Manual Appendix A-2 Details of related devices Appendix A-2-10 Step number of an instruction for the CF-ADP where an error has occurred [D8415, D8414][D8435, D8434] These devices store the step number of an instruction for the CF-ADP where an error has occurred. 1.
  • Page 119: Appendix B: Version Information

    CONTROLLER -CF-ADP MODEL DC24V 130mA Left side SERIAL 940001 V1.00 MITSUBISHI ELECTRIC CORPORATION MADE IN JAPAN 1 . 0 Version 2. Checking the CF-ADP instruction In CF-ADP, users can obtain the CF-ADP version information by FLSTRD instruction. Program Example FNC305 H300 The version information of the CF-ADP (ch1) is stored in D0.
  • Page 120 Appendix B: Version Information -CF-ADP User's Manual Appendix B-1 Version information MEMO...
  • Page 121: Warranty

    Any other failure found not to be the responsibility controller range of applications. of Mitsubishi or that admitted not to be so by the However, in certain cases, some applications may be user.
  • Page 122: Revised History

    -CF-ADP User's Manual Revised History Revised History Date Revision Description 6/2009 First Edition...
  • Page 124 -CF-ADP USER'S MANUAL HEAD OFFICE: TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPAN MODEL FX3U-CF-ADP-U-E 09R720 MODEL CODE JY997D35401A Effective June 2009 (MEE) Specifications are subject to change without notice.

Table of Contents