FX3U-CF-ADP USER'S MANUAL
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: and . Indicates that incorrect handling may cause hazardous conditions, resulting in death or severe injury.
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 FX3U-CF-ADP. Failure to do so may cause electric shock or damage to the product. 22 99 Reference • • • • • • • • Use the product within the generic environment specifications described in PLC main unit manual (Hardware Edition).
Safety Precautions (Read these precautions before using.) 4. STARTUP AND MAINTENANCE PRECAUTIONS Reference • • • Make sure to connect the battery correctly. Do not charge, disassemble, heat, short-circuit, or expose the battery to fire. Doing so may rupture or ignite it. Do not touch any terminal while the PLC's power is on. Doing so may cause electric shock or malfunctions.
(4)
FX3U-CF-ADP User's Manual FX3U-CF-ADP User's Manual Manual number JY997D35401 Manual revision A Date 6/2009 Foreword This manual describes the FX3U-CF-ADP CF card special adapter and should be read and understood before attempting to install the hardware. Store this manual in a safe place so that you can take it out and read it whenever necessary. Always forward it to the end user.
FX3U-CF-ADP User's Manual Outline Precautions • This manual provides information for the use of the FX3U-CF-ADP CF card special adapter. The manual has been written to be used by trained and competent personnel.
FX3U-CF-ADP User's Manual Table of Contents Table of Contents SAFETY PRECAUTIONS .................................................................................................. (1) Standards................................................................................................................................... 7 Certification of UL, cUL standards .......................................................................................................
FX3U-CF-ADP User's Manual 5. Wiring Table of Contents 28 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......
FX3U-CF-ADP User's Manual Table of Contents 8.7 FNC 304 - FLCMD / FX3U-CF-ADP command ............................................................................. 74 8.7.1 Detailed explanation of setting data .............................................................................................. 75 8.8 FNC 305 - FLSTRD / FX3U-CF-ADP status read ......................................................................... 76 8.8.1 Detailed explanation of setting data ..................................
FX3U-CF-ADP User's Manual Appendix B: Version Information Table of Contents 113 Appendix B-1 Version information ............................................................................................ 113 Appendix B-1-1 Version check method ................................................................................................ 113 Appendix B-1-2 Version upgrade history.............................................................................................. 113 Warranty...............
FX3U-CF-ADP User's Manual Standards Standards Certification of UL, cUL standards FX3U-CF-ADP units comply with the UL standards (UL, cUL). UL, cUL File number :E95239 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. Compliance with EC directive (CE Marking) This document does not guarantee that a mechanical system including this product will comply with the following standards.
FX3U-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. Please secure the cabinet door to the control cabinet (for conduction).
FX3U-CF-ADP User's Manual Associated Manuals Associated Manuals Only the installation manual is packed together with the FX3U-CF-ADP special adapter. For a detailed explanation of the FX3U-CF-ADP special adapter, refer to this manual. For the hardware information and instructions on the PLC main unit, refer to the respective manuals.
FX3U-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 PLC FX3U series FX3U PLC or main unit FX3UC series FX3UC PLC or main unit Generic name for FX3U Series PLC Generic name for FX3U Series PLC main unit Generic name for FX3UC Series PLC Generic name for FX3UC Series PLC main unit Expansion board Expansion board Generic name for expansion board The number of connectable units, however,
FX3U-CF-ADP User's Manual Generic name or abbreviation Generic Names and Abbreviations Used in the Manual Description Manual FX3U Hardware Edition FX3U Series User's Manual - Hardware Edition FX3UC Hardware Edition FX3UC Series User's Manual - Hardware Edition Programming manual FX3G/FX3U/FX3UC Series Programming Manual - Basic and Applied Instructions Edition Communication control Edition FX Series User's Manual - Data Communication Edition Analog control Edition FX3G/FX3U/FX3UC Series User's
FX3U-CF-ADP User's Manual Reading the Manual Reading the Manual In this manual, the following formats are used for describing the common items. Shows the manual title. Shows the title of the chapter and the title Indexes the chapter number. This area shows the manual title for the current page. of the section. This area shows the title of the chapter and the title of the section for the current page. The right side of each page indexes the chapter number for the page currently opened.
1 Introduction FX3U-CF-ADP User's Manual 1.1 Outline 1 Introduction 2 Outline • Data can be saved in the CompactFlashTM card in files with the FIFO (first in, first out) function. • Data can be saved in a specified file stored in the CompactFlashTM card. • Data can be read from the CompactFlashTM card. 4 → For details on the functions, refer to Chapter 6. External Dimensions and Part Names [2] [3] [4] [5] [6] 5 [7] [8] Wiring 90(3.55") 98(3.86") (mounting hole pitch) 106(4.
1 Introduction FX3U-CF-ADP User's Manual 1.3 Power and status LEDs LED display Color POWER Green BUFFER Green ERR. FULL Red Red Status ACCESS SLOT Description OFF Power is not being supplied from the external power supply (24V DC). ON Power is being supplied from the external power supply (24V DC). OFF Data is not stored in the internal buffer. ON Data is stored in the internal buffer. OFF No errors. ON CF write error, CompactFlashTM card error, etc. has occurred.
2 Specification FX3U-CF-ADP User's Manual 1 Introduction 2. Specification 2 • 4 During access (ACCESS LED is lit or flickering) to CF-ADP. CompactFlashTM card, do not remove the CompactFlashTM card or power off the 5 Wiring • Observe the following items. Failure to do so may cause incorrect data-writing through noise to the PLC and result in PLC failure, machine damage or other accident. 1) Do not bundle the control line together with or lay it close to the main circuit or power line.
2 Specification FX3U-CF-ADP User's Manual 2.1 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 FX3U Hardware Edition → Refer to the FX3UC Hardware Edition Item Specification Ambient temperature*1 Dielectric withstand voltage Insulation resistance *1. 2.
2 Specification FX3U-CF-ADP User's Manual 2.4 CF card ACCESS switch specification 1 CF card ACCESS switch specification Setting item Description ON Access to the OFF*1 2.5 CompactFlashTM 2 Turn OFF the CF card ACCESS switch, and then confirm that the BUFFER LED and ACCESS LED are completely OFF before removing the CompactFlashTM card or turning OFF the power of the CFADP.
3 System Configuration FX3U-CF-ADP User's Manual 3. 3.1 3.1 General configuration System Configuration General configuration CompactFlashTM card CompactFlashTM card Memory card adapter *An expansion board Component list Part name Model name Remarks An expansion board is required to connect the CF-ADP with the FX3U/FX3UC-32MT-LT PLCs.
3 System Configuration FX3U-CF-ADP User's Manual 3.2 Applicable PLC 1 Applicable PLC 3.2.1 Connectable PLC Introduction 3.2 2 Applicability FX3U Series PLC*1 Ver. 2.61 and later Only one CF-ADP unit can be connected to a main unit. FX3UC Series PLC*1*2 Ver. 2.61 and later Only one CF-ADP unit can be connected to a main unit. Specification Model name The version number can be checked by reading the last three digits of device D8001.
3 System Configuration FX3U-CF-ADP User's Manual 3.4 Assignment of channels 2. FX3UC(D, DSS) PLC Other special adapters Main unit FX3U-CF-ADP 3.4 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. This channel number is used in applied instructions for the CF-ADP.
3 System Configuration FX3U-CF-ADP User's Manual 3.4 Assignment of channels 1 Introduction 2.
4 Installation FX3U-CF-ADP User's Manual 4. Installation INSTALLATION PRECAUTIONS • Make sure to shut down all phases of the power supply externally before installing the FX3U-CF-ADP. Failure to do so may cause electric shock or damage to the product. INSTALLATION PRECAUTIONS • • • • • • • • Use the product within the generic environment specifications described in PLC main unit manual (Hardware Edition).
4 Installation FX3U-CF-ADP User's Manual 4.1 CF-ADP Connection 1 CF-ADP Connection 1 Remove the special adapter connector cover (A in the figure on the right) from the expansion board. 3 Slide the special adapter connecting hooks (B in the figure on the right) of the main unit upwards. 2 4 1 B Installation 2 System Configuration It is assumed that an expansion board has been installed in advance. For the expansion board installation method, refer to the respective PLC manual.
4 Installation FX3U-CF-ADP User's Manual 4.2 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 FX3U PLC. For the DIN rail mounting method for other PLCs, refer to the respective PLC manual.
4 Installation FX3U-CF-ADP User's Manual 4.3 Direct mounting 1 Direct mounting 1 Create mounting holes in the mounting surface according to the external dimensions diagram. 3 A System Configuration 2 Fit the CF-ADP to the mounting holes and tighten with M4 screws (A in the figure on the right). 4 Installation Also fit the main unit to the mounting holes and tighten with M4 screws. For the main unit connection method, refer to the following.
4 Installation FX3U-CF-ADP User's Manual 4.4 Inserting and Removal Procedures 4.4.1 Inserting the CompactFlashTM card 4.4 Inserting and Removal Procedures The CompactFlashTM card can be inserted when the CF-ADP is power off. When the power supply of CF-ADP is ON and it inserts the CompactFlashTM card, make sure to perform of the following procedures. 1 2 Set the CF card ACCESS switch to OFF (A in the figure on the right) in the CF-ADP. Confirm that the POWER LED is lit. Open the CF card cover.
4 Installation FX3U-CF-ADP User's Manual 4.4 Inserting and Removal Procedures 1 Removing the CompactFlash card The CompactFlashTM card can be removed when the CF-ADP is power off. When the power supply of CF-ADP is ON and it removes the CompactFlashTM card, make sure to perform of the following procedures. Set the CF card ACCESS switch of the CFADP to OFF (A in the figure on the right), and make sure that the CF card ACCESS LED and BUFFER LED (B in the figure on the right) both turn off.
5 Wiring FX3U-CF-ADP User's Manual 5. 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.
5 Wiring FX3U-CF-ADP User's Manual 5.1 Which Power Supply Cable to Use 1 Introduction STARTUP AND MAINTENANCE PRECAUTIONS • • 2 Specification 5.1 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. Failure to do so may cause device failures or malfunctions.
5 Wiring FX3U-CF-ADP User's Manual 5.2 Power Supply Wiring 5.2 Power Supply Wiring 5.2.1 Power supply wiring Grounding CF-ADP FX3U PLC [Main unit] Expansion board CF-ADP Expansion board*1 Power connector Power connector Black Red Green Black Red Green 24- 24+ 24- 24+ Grounding Grounding Grounding Stabilized power supply 24V DC Stabilized power supply 24V DC *1. FX3UC PLC [Main unit] The expansion board is required when connecting with the FX3UC-32MT-LT PLC.
5 Wiring FX3U-CF-ADP User's Manual 5.4 Power OFF procedure 1 Power OFF procedure Introduction 5.4 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 5.4.1 2 Set the main unit to the STOP mode, or set the applied instruction for the CF-ADP to the unactuated status.
5 Wiring FX3U-CF-ADP User's Manual 5.5 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. • Removal Squeeze the power cable connector at "a" and disconnect it in the direction of the arrow.
6 Functions FX3U-CF-ADP User's Manual 6.1 Details of functions 1 Functions 2 Details of functions The user can perform the following procedures for CompactFlashTM cards using applied instructions for the CF-ADP. • Creating files inside the CompactFlashTM card. (Up to 63 files can be created.) 3 System Configuration • Creating FIFO function files inside the CompactFlashTM card. (Only one pattern is available for FIFO function files.
6 Functions FX3U-CF-ADP User's Manual 6.2 6.2 Status information Status information The user can read the following status information using applied instructions for the CF-ADP. • Detecting that a CompactFlashTM card is mounted. • Detecting that the CompactFlashTM card is full. • Detecting errors that have occurred in the CF-ADP. • Reading error codes and details of error codes of the CF-ADP. • Data capacity of the CompactFlashTM card.
7 Before Programming FX3U-CF-ADP User's Manual 7.1 File format available in the CF-ADP 1 Introduction 7. Before Programming 2 This chapter describes several items that should be known before programming. Specification • File format available in the CF-ADP • Files created by the user • Characters available in files • Data size calculation 3 • Data writing destination System Configuration • File ID • FIFO file • Directory structure • Date/time setting 4 7.
7 Before Programming FX3U-CF-ADP User's Manual 7.1 File format available in the CF-ADP Contents of files in the "csv" format No. 7.1.2 Contents of data Description Remark (1) Index,DATE TIME, When the file name is added, the Index, date and time are added automatically. - (2) Data name (3) Index (4) , (5) year/Month/Day Hour:Minute:Seconds (6) , (7) data (8) CR+LF Character string consisting of up to 32 half-width/full-width Refer to Subsection 7.1.3.
7 Before Programming FX3U-CF-ADP User's Manual 7.1 File format available in the CF-ADP 1 Characters available in files Introduction 7.1.3 Following characters are available in files.
7 Before Programming FX3U-CF-ADP User's Manual 7.1.4 7.1 File format available in the CF-ADP Data size calculation When calculating the data size, use the following formula in accordance with the byte count shown in the table below. Contents of data Index , year/Month/Day Hour:Minute:Seconds , data CR+LF Used characters Number of bytes Symbol Remark 6 digits (expressed in a decimal number from "1" to "32767") 6 bytes Space is put in for unused digits. Plus signs (+) are used in some systems.
7 Before Programming FX3U-CF-ADP User's Manual 7.1 File format available in the CF-ADP 1 Data writing destination Data can be written to two destinations, the CompactFlashTM card and the internal buffer inside the CF-ADP. Main unit CF-ADP Sequence program 3 Writing destination System Configuration 1) CompactFlashTM card 2 Writing destination Specification 2) Internal buffer inside CF-ADP Introduction 7.1.5 1.
7 Before Programming FX3U-CF-ADP User's Manual 7.1.6 7.1 File format available in the CF-ADP File ID Applied instructions for the CF-ADP use the file ID for specifying files. Accordingly, the file name saved in the CompactFlashTM card is associated with the file ID, and controlled by the ID table. When a file whose file ID is "1" and file name is "TEST_01.
7 Before Programming FX3U-CF-ADP User's Manual 7.1 File format available in the CF-ADP 1 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 CompactFlashTM card use ratio.
7 Before Programming FX3U-CF-ADP User's Manual 7.2 7.2 Directory structure Directory structure The following directory is created inside the CompactFlashTM card. • In the case of a normal file The directory "\FX3U_CF\DATA\." is created inside the CompactFlashTM card. The following data is stored in the directory. Root Directory \FX3U_CF\DATA\. User data.CSV(Normal data file created by the user) IDTABLE.SYS Various log M_PF.log POWD.cnt EPOWD.log CF_UM.log BPD.cnt System files created automatically.
7 Before Programming FX3U-CF-ADP User's Manual 7.4 General Rules for Applied Instructions 1 General Rules for Applied Instructions 7.4.1 Expression and operation type of applied instructions Introduction 7.4 2 - Function numbers (FNC00 - FNC ) and symbols (mnemonic codes) are assigned to the applied instructions of the PLC. For example, a symbol of "FLWR" (Data write) is assigned to FNC302.
7 Before Programming FX3U-CF-ADP User's Manual 7.4.2 7.4 General Rules for Applied Instructions 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)*1 or "Instruction execution abnormal end" flag (M8329) will be turned on or off after execution of each instruction.
7 Before Programming FX3U-CF-ADP User's Manual 7.4 General Rules for Applied Instructions 1 Y10 D0 K1 3 M8029 M100 Completion of instruction execution M0 FNC300 FLCRT K1 D0 D10 M8029 RST Completion of instruction execution 4 K1 Installation Switches the "instruction execution complete" flag of the FLCRT instruction from M8029 to M200. X10 System Configuration Switches "instruction execution complete" flag of the DSW instruction from M8029 to M100.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8. 8.1 CF-ADP Instructions types CF-ADP Applied Instructions Explanation This chapter explains applied instructions for the CF-ADP. 8.1 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. • List of applied instructions for the CF-ADP FNC No.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.2 Common Items in CF-ADP Instructions 1 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. The user can check the error code, error code details, and error detected step number using the following data registers.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.3 8.3 FNC 300 - FLCRT / File create•check FNC 300 - FLCRT / File create•check Outline The FLCRT instruction creates a file inside the CompactFlashTM card mounted in the FX3U-CF-ADP. When executed after creation of a new file, the FLCRT instruction checks the association with the file ID, and evaluates it. 1.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.3 FNC 300 - FLCRT / File create•check 1 Detailed explanation of setting data Introduction Details of the setting data in the FLCRT instruction are as shown below. Description Data Type S1 File ID This ID number is associated with the file name. The FLCRT instruction creates a file, and associates the file name with the file ID at the same time. The user should use the file ID for specifying a file after that.
8 CF-ADP Applied Instructions Explanation FX3U-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 CompactFlashTM card capacity). 2) The file name is set to "FILE0000.CSV" to "FILE0999.CSV". When the file ID is "K1" to "K63" 1) The user can create up to 63 files (within the CompactFlashTM card capacity).
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.4 FNC 301 - FLDEL / File delete•CF card format 1 FNC 301 - FLDEL / File delete•CF card format Introduction 8.4 Outline 1. Instruction format FNC 301 FLDEL 16-bit Instruction 7 steps Mnemonic Operation Condition FLDEL 32-bit Instruction Mnemonic Operation Condition Continuous Operation 3 System Configuration 2. Set data Operand Type S1 S2 Description Data Type File ID (Refer to Subsection 8.4.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.4.1 8.4 FNC 301 - FLDEL / File delete•CF card format Detailed explanation of setting data Details of the setting data in the FLDEL instruction are as shown below. Setting items S1 Description Data Type File ID K-1(H0FFFF) : The FLDEL instruction deletes all files. K0 to K63 : The FLDEL instruction deletes a file associated with the specified file ID.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.4 FNC 301 - FLDEL / File delete•CF card format 1 Introduction 3) Program Example 3 This program formats the CompactFlashTM card in the FAT 16 format when X000 turns ON. Channel number 1 is used.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.5 8.5 FNC 302 - FLWR / Data write FNC 302 - FLWR / Data write Outline The FLWR instruction writes data to the CompactFlashTM card or to the buffer inside the FX3U-CF-ADP. 1. Instruction format FNC 302 FLWR 16-bit Instruction 11 steps Mnemonic Operation Condition FLWR 32-bit Instruction Mnemonic Operation Condition Continuous Operation 2. Set data Operand Type Description Data Type S1 File ID (Refer to Subsection 8.5.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 1 The FLWR instruction writes data specified by the device S2 to a file stored in the 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 S3 +1, and can write additional data (K-1). When the writing destination is the buffer inside the CF-ADP, the FLWR instruction can only execute additional writing.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.5.1 8.5 FNC 302 - FLWR / Data write Detailed explanation of setting data Details of the setting data in the FLWR instruction are as shown below. Setting items Description File ID K0 to K63 S1 Data Type 16-bit binary Head of devices which store data to be written. Specify the head of devices which store the data to be written to the CompactFlashTM card.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 1 Writing data of same type Introduction 8.5.2 "m" data points of the same type in one line are written as follows. Additional writing or overwriting is available.
8 CF-ADP Applied Instructions Explanation FX3U-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 M0 M8404 M8405 CF-ADP CF card is unit ready mounted FNC302 FLWR K10 SET M0 FNC 12 MOV K2 D20 FNC 12 MOV K-1 D21 FNC 12 MOV K1 D22 FNC 12 MOV K5 D23 Number of written points. "5 points" is specified. FNC 12 MOV K0 D24 Writing destination.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 1 • Set the data writing parameters (line position and column position of the writing destination) in accordance with the written points. • Only data the same type as the original data can be used for overwriting. When the data type is a character string, only a character string not longer than the original character string can be used for overwriting.
8 CF-ADP Applied Instructions Explanation FX3U-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 M0 M8404 M8405 SET M0 K2 D20 FNC 12 MOV CF-ADP CF card is unit ready mounted FNC302 FLWR K10 Specify the data writing type. Decimal (16-bit) type is specified. Specify the line position of the writing destination. Index 2 is specified as the target of overwriting.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 1 Writing data of different types Introduction 8.5.3 Data of different types existing in 1 line are written as follows. Additional writing or overwriting is available.
8 CF-ADP Applied Instructions Explanation FX3U-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 • A series of FLWR instructions is executed, and data in one line is added. It is not possible to write the same line data additionally to a previously written line.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 1 X000 M8424 M8425 CF-ADP CF card is unit mounted ready K5 FNC 12 MOV K-1 D31 Specify the line position of the writing destination. Additional writing is specified. FNC 12 MOV K-1 D32 Specify the data column position in the writing destination. Additional writing is specified. FNC 12 MOV K5 D33 Total number of written points. "5 points" is specified.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write From previous page From previous page The data stored in the 3rd data type is written. FNC302 FLWR K5 FNC 12 MOV K2 D60 Specify the data writing type. The 16-bit decimal type is specified. FNC 12 MOV K-1 D61 Specify the line position of the writing destination. Additional writing is specified.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 1 • Set the data writing parameters (line position and column position) in accordance with the written points. • Use matching settings in a series of FLWR instructions. However, even if matching settings are used, data is written to a column position continuing from the final data of the previous instruction. Introduction 2.
8 CF-ADP Applied Instructions Explanation FX3U-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 M0 M8424 M8425 Only "mixed type" data is specified FNC302 FLWR K5 The data stored in the 1st data type is written. FNC302 FLWR K5 The data stored in the 2nd data type is written.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.5 FNC 302 - FLWR / Data write 1 Introduction From previous page From previous page M8329 2 M0 FNC 12 MOV D8438 D100 The error code is stored. FNC 12 MOV D8437 D101 The error code details are stored.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.6 8.6 FNC 303 - FLRD / Data read FNC 303 - FLRD / Data read Outline The FLRD instruction reads data from the CompactFlashTM card. 1. Instruction format FNC 303 FLRD 16-bit Instruction 11 steps Mnemonic Operation Condition FLRD 32-bit Instruction Mnemonic Operation Condition Continuous Operation 2. Set data Operand Type Description Data Type S1 File ID (Refer to Subsection 8.6.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.6 FNC 303 - FLRD / Data read 1 Detailed explanation of setting data Introduction Details of the setting data in the FLRD instruction are as shown below.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.6.2 8.6 FNC 303 - FLRD / Data read Reading data of the same type from a file "m" data points of the same data type in one line are read as follows.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.6 FNC 303 - FLRD / Data read 1 Reading data of different types from a file Introduction 8.6.3 Data of different types in one line are read as follows.
8 CF-ADP Applied Instructions Explanation FX3U-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. Each device shown below stores the read data, and D10 stores the total number of data points. Channel 2 is used in this program. • Content of file File ID=K5,The data name is already written.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.6 FNC 303 - FLRD / Data read 1 Introduction From previous page From previous page D40 Specify the data reading type. The bit type is specified. FNC 12 MOV K2 D41 Line position from which data is read. The 1st column is specified. FNC 12 MOV K1 D42 Column position from which data is read. The 1st column is specified. D43 Number of read data points. "2 points" is specified. FNC 12 MOV FNC303 FLRD K5 K5 K2 Data reading.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.7 8.7 FNC 304 - FLCMD / FX3U-CF-ADP command FNC 304 - FLCMD / FX3U-CF-ADP command Outline The FLCMD instruction gives instruction for operation to the FX3U-CF-ADP. 1. Instruction format FNC 304 FLCMD 16-bit Instruction Mnemonic Operation Condition FLCMD 5 steps 32-bit Instruction Mnemonic Operation Condition Continuous Operation 2.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.7 FNC 304 - FLCMD / FX3U-CF-ADP command 1 Detailed explanation of setting data Introduction 8.7.1 Details of the setting data in the FLCMD instruction are as shown below. Setting items Description Data Type Contents of instruction for operation 2 K-1 : Forcibly writes all buffered data to the CompactFlashTM card. 16-bit binary K256(H100) : Sets the CompactFlashTM card to the mounted status*1.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.8 8.8 FNC 305 - FLSTRD / FX3U-CF-ADP status read FNC 305 - FLSTRD / FX3U-CF-ADP status read Outline The FLSTRD instruction reads the status (including the error information and file information) of the FX3U-CFADP. 1. Instruction format FNC 305 FLSTRD 16-bit Instruction Mnemonic Operation Condition FLSTRD 7 steps 32-bit Instruction Mnemonic Operation Condition Continuous Operation 2.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.8 FNC 305 - FLSTRD / FX3U-CF-ADP status read 1 Detailed explanation of setting data Introduction 8.8.1 Details of the setting data in the FLSTRD instruction are as shown below.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.8 FNC 305 - FLSTRD / FX3U-CF-ADP status read • When S is "K768 (H300)" The FLSTRD instruction reads the version information of the CF-ADP. Setting items Description Stores the version of CF-ADP. (Example) K100 = Ver.1.00 D • When S is "K1024 (H400)" The FLSTRD instruction reads the error information (error flag). Setting items Description Error detection signal b0 : The CompactFlashTM card is not mounted.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.8 FNC 305 - FLSTRD / FX3U-CF-ADP status read 1 2 X000 H100 M8329 M0 D0 K1 RST M0 3 RST M0 System Configuration FNC305 FLSTRD SET SET M100 SET M200 Specification M0 Abnormal end M8029 Execution completion D0.1 4 Installation D0.1 Introduction 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" exists.
8 CF-ADP Applied Instructions Explanation FX3U-CF-ADP User's Manual 8.9 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.
9 Program Examples FX3U-CF-ADP User's Manual 9.1 System Configuration 1 Introduction 9. Program Examples 2 • • • STARTUP AND MAINTENANCE PRECAUTIONS • 5 Wiring 9.1 4 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. Failure to do so may cause device failures or malfunctions.
9 Program Examples FX3U-CF-ADP User's Manual 9.2 Program Example 1 9.2 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 CompactFlashTM card, file creation and data name writing are aborted.
9 Program Examples FX3U-CF-ADP User's Manual 9.2 Program Example 1 1 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. Reads data from the 32-bit decimal type file. X003 Deletes the 32-bit decimal type file. Remains ON while the 32-bit decimal type file is being created. M1 Remains ON while data is being written to the 32-bit decimal type file.
9 Program Examples FX3U-CF-ADP User's Manual 9.2.4 9.2 Program Example 1 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. → For an example of a 32-bit decimal type file in "csv" format after writing, refer to Subsection 9.2.2. → For device assignments, refer to Subsection 9.2.3.
9 Program Examples FX3U-CF-ADP User's Manual 9.2 Program Example 1 1 Introduction From previous page From previous page A 32-bit decimal type file is created M60 M8404 M8405 FNC209 $MOV K1 2 K1 D10 Time stamp setting. FNC 12 MOV K3 D11 Data type setting. FNC 12 MOV K1000 D12 Maximum line value setting. FNC 12 MOV K0 D13 Processing when the maximum line value is reached. D10 K1 D0 3 File create. 4 RST M60 Remains ON while a new 32-bit decimal type file is being created.
9 Program Examples FX3U-CF-ADP User's Manual 9.2 Program Example 1 From previous page From previous page FNC302 FLWR K1 FNC 12 MOV K8 D20 Specify the data writing type. FNC 12 MOV K1 D21 Specify the line position of the writing destination. FNC 12 MOV K1 D22 Specify the data column position in the writing destination. FNC 12 MOV K10 D23 Number of written data points. FNC 12 MOV K0 D24 Writing destination. D200 D30 K1 Data writing.
9 Program Examples FX3U-CF-ADP User's Manual 9.2 Program Example 1 1 Introduction From previous page From previous page Data is written to the buffer 10 times, and then forcibly written to the CompactFlash TM card. M8002 FNC 12 MOV The buffered data forcible writing execution counter is set to "0". FNC 24 INC D28 Buffered data forcible writing execution counter. RST M28 Turns ON when forcible writing of buffered data to the CF card is completed successfully.
9 Program Examples FX3U-CF-ADP User's Manual 9.2 Program Example 1 From previous page From previous page The 32-bit decimal type file is deleted M3 M8404 M8405 Remains ON CF-ADP CF card is while the 32- unit ready mounted M8329 bit decimal type file is Abnormal end being deleted M8029 FNC301 FLDEL K0 K1 File delete. RST M3 Remains ON while the 32-bit decimal type file is being deleted. FNC 12 MOV D8418 D112 The error code is stored.
9 Program Examples FX3U-CF-ADP User's Manual 9.3 Program Example 2 1 Program Example 2 9.3.1 Operation details Introduction 9.3 • When X006 turns ON, 7 data points of different types are read from the final line in the file "FILE0000". Data reading should be executed after data writing. Example of a mixed type file in "csv" format after writing When a "csv" file is created and then data is written to the file 20 times, its contents are as shown below. Numeric values are stored in shaded areas.
9 Program Examples FX3U-CF-ADP User's Manual Device No. X007 Contents of operation Deletes the mixed type file. M4 Remains ON while a mixed type file is being created. M5 Remains ON while data is being written to the mixed type file. M6 Remains ON while data is being read from the mixed type file. M7 Remains ON while the mixed type file is being deleted. M24 Turns ON when a mixed type file is created successfully or already exists.
9 Program Examples FX3U-CF-ADP User's Manual 9.
9 Program Examples FX3U-CF-ADP User's Manual 9.3 Program Example 2 From previous page From previous page A mixed type file is created M62 M8404 M8405 Remains ON CF-ADP CF card is while a new unit ready mounted mixed type file is being created FNC305 FLCRT K0 FNC 12 MOV K1 D10 Time stamp setting. FNC 12 MOV K0 D11 Data type setting. FNC 12 MOV K1000 D12 Maximum line value setting. FNC 12 MOV K80 D13 Set the CF card use ratio.
9 Program Examples FX3U-CF-ADP User's Manual 9.3 Program Example 2 1 Introduction From previous page From previous page FNC 12 MOV 2 FNC 12 MOV K1 D21 Specify the line position of the writing destination. FNC 12 MOV K1 D22 Specify the data column position in the writing destination. FNC 12 MOV K7 D23 Number of written data points. FNC 12 MOV K0 D24 Writing destination. D300 M8329 D20 D30 K1 Data writing. RST M63 Remains ON while data names of the mixed type are being written.
9 Program Examples FX3U-CF-ADP User's Manual 9.3 Program Example 2 From previous page From previous page FNC302 FLWR FNC302 FLWR FNC302 FLWR M5 M8404 K0 K0 K0 M8405 Remains ON CF-ADP CF card is while data is unit ready mounted being written to the mixed type file FNC302 FLWR FNC302 FLWR FNC302 FLWR K0 K0 K0 FNC 12 MOV K2 D20 Specify the data writing type. FNC 12 MOV K1 D23 Number of written data points. R0 M8029 D30 K1 K3 D20 Specify the data writing type.
9 Program Examples FX3U-CF-ADP User's Manual 9.3 Program Example 2 1 Introduction From previous page From previous page Mixed type data is read M6 M8404 M8405 FNC 12 MOV FNC 21 SUB K1 D42 Column position from which data is read. FNC 12 MOV K7 D43 Number of read data points. D40 M400 D50 K1 3 Mixed type data is read FNC 12 MOV K1 D40 Specify the data reading type. FNC 12 MOV K1 D43 Number of read data points. D40 M400 D50 K1 4 Data reading.
9 Program Examples FX3U-CF-ADP User's Manual 9.3 Program Example 2 From previous page M6 From previous page M8404 M8405 Remains ON CF-ADP CF card is while data is unit ready mounted being read from the mixed type file FNC303 FLRD FNC303 FLRD K0 K0 FNC 12 MOV K6 D40 Specify the data reading type. FNC 12 MOV K1 D43 Number of read data points. D40 D50 K1 Data reading. FNC 12 MOV K7 D40 Specify the data reading type. FNC 12 MOV K1 D43 Number of read data points.
9 Program Examples FX3U-CF-ADP User's Manual 9.4 Program Example 3 1 Program Example 3 9.4.1 Operation details Introduction 9.4 9.4.2 Device Assignments Device No. Contents of operation Remains ON while the error information (error flag) of the CF-ADP is being read. M30 Turns ON when the error information (error flag) of the CF-ADP is read successfully. M40 Turns ON when the CompactFlashTM card is unmounted. M41 Turns ON when the CompactFlashTM card is full.
9 Program Examples FX3U-CF-ADP User's Manual 9.4.3 9.4 Program Example 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. → For device assignments, refer to Subsection 9.4.2. X010 M10 RST M30 D130 K1 Error information of the CF-ADP are read.
10 Troubleshooting FX3U-CF-ADP User's Manual 1 Introduction 10. Troubleshooting 2 • Specification INSTALLATION PRECAUTIONS Make sure to shut down all phases of the power supply externally before installing the FX3U-CF-ADP. Failure to do so may cause electric shock or damage to the product. 3 • • • • • • When inserting a CompactFlashTM card into the FX3U-CF-ADP, push it into the CF card slot until the EJECT button pops out. Loose connections may cause malfunctions.
10 Troubleshooting FX3U-CF-ADP User's Manual STARTUP AND MAINTENANCE PRECAUTIONS • • • Make sure to connect the battery correctly. Do not charge, disassemble, heat, short-circuit, or expose the battery to fire. Doing so may rupture or ignite it. Do not touch any terminal while the PLC's power is on. Doing so may cause electric shock or malfunctions.
10 Troubleshooting FX3U-CF-ADP User's Manual 10.1 Troubleshooting procedure 1 Troubleshooting procedure Introduction 10.1 10.1.1 LED status check 2 The table below describes details for LED statuses. Color Status Description Error corrective action • • Power is not being supplied from the external power supply (24V DC). • OFF POWER Green Green Red Data is not stored in the internal buffer. - ON Data is stored in the internal buffer. - OFF No errors.
10 Troubleshooting FX3U-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 code Error definition Error corrective action 1 Parity, Framing, Overrun error 2 Communication character error 3 Communication SUM error 4 Data format error 5 Timeout error 7 Frame format error 8 Response error Something may be wrong with mixed type instructions.
10 Troubleshooting FX3U-CF-ADP User's Manual 10.1 Troubleshooting procedure 1 Error definition Error corrective action Mixed type instruction execution error 42 Response device type error 43 Frame number error 46 Too many characters The character string exceeds 512 full-width characters, or the data name exceeds 32 full-width characters. 200 System error Something may be wrong with the hardware. Contact your local Mitsubishi Electric distributor.
10 Troubleshooting FX3U-CF-ADP User's Manual Error code 10.1 Troubleshooting procedure Error definition Error corrective action The file management information was not able to be read from the 503 ID table read error CompactFlashTM card. When reading or deleting a file, confirm that the target file exists. 504 ID table corruption error The file management information is corrupt.
10 Troubleshooting FX3U-CF-ADP User's Manual 10.1 Troubleshooting procedure 1 Error definition Error corrective action CF file name duplication error The file specified in the file creation instruction already exists. Specify another file name. 808 CF file name length error In the file creation instruction, specify the file name within 8 characters. 809 CF file name character error The file name specified in the file creation instruction contains unavailable characters. Review the file name.
10 Troubleshooting FX3U-CF-ADP User's Manual Error code Error definition 10.1 Troubleshooting procedure Error corrective action Buffered data was not able to be written to the CompactFlashTM card. 909 Buffered data writing error to CompactFlashTM card Check whether the CompactFlashTM card is mounted correctly, and whether it has sufficient free space. In the case of FIFO file, check whether the CompactFlashTM card utilization specified in the file creation instruction is not exceeded.
10 Troubleshooting FX3U-CF-ADP User's Manual 10.2 Diagnostics on the PLC Main Unit 1 Diagnostics on the PLC Main Unit 10.2.1 POWER(POW) LED [on/flashing/off] 2 Specification The following describes some of the PLC errors from the LED lights on the PLC. For details related to the PLC main unit wiring, special auxiliary relays, and special data registers, refer to the following respective manuals. → Refer to the FX3U Hardware Edition → Refer to the FX3UC Hardware Edition Introduction 10.
10 Troubleshooting FX3U-CF-ADP User's Manual 10.2 Diagnostics on the PLC Main Unit 10.2.3 ERROR(ERR) LED [on/flashing/off] The table below describes details for the LED statuses. Status PLC Status Error corrective action 1) ON Flicker OFF 108 Stop the PLC, and turn the power ON again. If the ERROR(ERR) LED goes out, a watchdog timer error may have occurred. Adopt any of the following measures: - Review the program. Set the maximum value (D8012) lower than the watchdog timer value.
Appendix A: Related Devices FX3U-CF-ADP User's Manual Appendix A-1 Related Device List A Related Devices Appendix A: Related Devices B The tables below show special auxiliary relays and special data registers used in CF-ADP instructions (FNC300 (FLCRT) to FNC305 (FLSTRD)). 1.
Appendix A: Related Devices FX3U-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. Detailed contents When execution of CF-ADP instructions is completed, M8029 turns ON, and remains ON for 1 scan. 2.
Appendix A: Related Devices FX3U-CF-ADP User's Manual Appendix A-2 Details of related devices A Related Devices Appendix A-2-5 CF card mount status [M8405, M8425] These devices indicate the CompactFlashTM card status. 1. Detailed contents B Version Information When the CompactFlashTM card is mounted, one of these devices turns ON. When communication port ch1 is used, M8405 turns ON. When communication port ch2 is used, M8425 turns ON.
Appendix A: Related Devices FX3U-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. Detailed contents These devices store the step number of an instruction for the CF-ADP where an error has occurred. When communication port ch1 is used, (D8415, D8414) stores the value.
Appendix B: Version Information FX3U-CF-ADP User's Manual Appendix B-1 Version information A Related Devices Appendix B: Version Information B Version Information Appendix B-1 Version information Appendix B-1-1 Version check method 1. Checking the nameplate The CF-ADP version is indicated by "SERIAL" on the label attached to the left side of the module when viewed from the front. MITSUBISHI MODEL PROGRAMMABLE CONTROLLER FX3U-CF-ADP DC24V 130mA SERIAL Left side 940001 V1.
Appendix B: Version Information FX3U-CF-ADP User's Manual Appendix B-1 Version information MEMO 114
FX3U-CF-ADP User's Manual 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.
FX3U-CF-ADP User's Manual Revised History Revised History 116 Date Revision 6/2009 A Description First Edition
FX3U-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 MODEL CODE 09R720 JY997D35401A (MEE) Effective June 2009 Specifications are subject to change without notice.