Mitsubishi Electric MELSEC-L Series User Manual

Mitsubishi Electric MELSEC-L Series User Manual

Hide thumbs Also See for MELSEC-L Series:
Table of Contents

Advertisement

Quick Links

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric MELSEC-L Series

  • 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. In this manual, the safety precautions are classified into two levels: " WARNING"...
  • Page 4 [Design Precautions] WARNING ● Configure safety circuits external to the programmable controller to ensure that the entire system operates safely even when a fault occurs in the external power supply or the programmable controller. Failure to do so may result in an accident due to an incorrect output or malfunction. (1) Emergency stop circuits, protection circuits, and protective interlock circuits for conflicting operations (such as forward/reverse rotations or upper/lower limit positioning) must be configured external to the programmable controller.
  • Page 5 [Design Precautions] WARNING ● For the operating status of each station after a communication failure, refer to relevant manuals for each network. Incorrect output or malfunction due to a communication failure may result in an accident. ● When changing data from a peripheral device connected to the CPU module during operation, configure an interlock circuit in the program to ensure that the entire system will always operate safely.
  • Page 6 [Wiring Precautions] WARNING ● Shut off the external power supply for the system in all phases before wiring. Failure to do so may result in electric shock or cause the module to fail or malfunction. ● After installation and wiring, attach the included terminal cover to the module before turning it on for operation.
  • Page 7 [Startup and Maintenance Precautions] WARNING ● Do not touch any terminal while power is on. Doing so will cause electric shock or malfunction. ● Correctly connect the battery connector. Do not charge, disassemble, heat, short-circuit, solder, or throw the battery into the fire. Also, do not expose it to liquid or strong shock. Doing so will cause the battery to produce heat, explode, ignite, or leak, resulting in injury and fire.
  • Page 8 [Disposal Precautions] CAUTION ● When disposing of this product, treat it as industrial waste. When disposing of batteries, separate them from other wastes according to the local regulations. (For details on battery regulations in EU member states, refer to the MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection).) [Transportation Precautions] CAUTION...
  • Page 9: Conditions Of Use For The Product

    CONDITIONS OF USE FOR THE PRODUCT (1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions; i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident; and ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
  • Page 10: Introduction

    Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the MELSEC-L series programmable controller to handle the product correctly. When applying the program examples introduced in this manual to the actual system, ensure the applicability and confirm that it will not cause system control problems.
  • Page 11: Relevant Manuals

    RELEVANT MANUALS (1) CPU module user's manual Manual name Description <manual number (model code)> MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance Specifications of the CPU modules, power supply modules, display unit, SD and Inspection) memory cards, and batteries, information on how to establish a system, <SH-080890ENG, 13JZ36>...
  • Page 12: Table Of Contents

    CONTENTS CONTENTS SAFETY PRECAUTIONS ............. 1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 13 Data Logging File ............6.5.1 Saving format of the data logging file.
  • Page 14 Transfer Setup ............8.6.1 Connection with a USB or Ethernet cable .
  • Page 15 13.2.4 Troubleshooting on the data logging status ........APPENDICES Appendix 1 Installing a USB Driver .
  • Page 16: Manual Page Organizattion

    MANUAL PAGE ORGANIZATTION In this manual, pages are organized and the symbols are used as shown below. The following page illustration is for explanation purpose only, and is different from the actual pages. "" is used for screen names and items. The chapter of the current page is shown.
  • Page 17 Pages describing instructions are organized as shown below. The following page illustrations are for explanation purpose only, and are different from the actual pages. Instruction name Execution condition of the instruction Structure of the instruction in the ladder mode shows the devices applicable to the instruction Setting side Descriptions of...
  • Page 18 • Instructions can be executed under the following conditions. Execution condition Any time During on On the rising edge During off On the falling edge Symbol No symbol • The following devices can be used. Internal device (system, user) Intelligent function File Index register Setting data...
  • Page 19: Terms

    Power supply module Abbreviation for the MELSEC-L series power supply module END cover A cover to be attached to the right side of the rightmost MELSEC-L series module Display unit A liquid crystal display to be attached to the CPU module...
  • Page 20: Chapter 1 Data Logging

    CHAPTER 1 DATA LOGGING The data logging function contained in the CPU module allows collected device data to be stored on an SD memory card in CSV format, with just a simple setting. Features The following explains the features of the data logging function. (1) Logging of device data is easy.
  • Page 21 CHAPTER 1 DATA LOGGING (2) Control data can be logged without missing a change. Data logging is available every scan or on the millisecond time scale. Since changes in the specified control data can be logged, the data logging function is effective to identify the cause of a problem. Also, logging is performed at a high speed so that equipment can be analyzed with high accuracy.
  • Page 22 (4) Configuration for logging is simple. Logging settings can be configured easily by following the wizard. Completed!! (5) A large volume of logging files can be stored. Use of an SD memory card of up to 4GB enables a long-term logging. (6) Data sampling for troubleshooting can be instructed easily.
  • Page 23: Processing Outline

    CHAPTER 1 DATA LOGGING Processing Outline Device values collected from the CPU module are stored in a data logging file in the SD memory card. All of the data collected over the specified period can be stored, and these data can be analyzed in detail. CPU module Collects device values of the CPU module.
  • Page 24: Chapter 2 System Configuration

    CHAPTER 2 SYSTEM CONFIGURATION A system configuration in the case of using data logging is shown below. Overall System Configuration An overall system configuration in the case of using data logging is shown below. Connection from USB or serial port Page 24, Section 2.1.2 Connection from interface board Page 27, Section 2.1.3...
  • Page 25: Software

    CHAPTER 2 SYSTEM CONFIGURATION 2.1.1 Software The following software can be used for data logging. For information on how to get and start it, refer to Page 41, CHAPTER 5. Name Description LCPU Logging Configuration Tool Software designed for data logging configuration and maintenance GX LogViewer Software used for displaying the data collected by data logging GX LogViewer is not indispensable for the data logging function.
  • Page 26: Connection From A Usb Or Serial Port

    2.1.2 Connection from a USB or serial port The figure below shows configurations of the systems that are connectable through the USB or serial port of a personal computer. LCPU USB communication USB cable LCPU QC30R2 Direct connection to serial port Converter/cable RS-232 adapter Serial...
  • Page 27 LOAS CO., LTD. USB-M53 ELECOM Co., Ltd. USB cable (USB A type - USB miniB type) MR-J3USBCBL3M Mitsubishi Electric Corporation Mitsubishi Electric System & Service GT09-C30USB-5P Co., Ltd. AUXUBM5 Kokuyo Supply Inc. USB adapter (USB B type - USB miniB type) AD-USBBFTM5M ELECOM Co., Ltd.
  • Page 28 Manufacturer QC30R2 (for D-sub 9-pin connector on personal computer) Mitsubishi Electric Corporation For high-speed communication (transmission speed: 115.2/57.6kbps), use a personal computer that supports high-speed communication. If a communication error has occurred, lower the transmission speed setting and retry the communication.
  • Page 29: Connection From An Interface Board

    CHAPTER 2 SYSTEM CONFIGURATION 2.1.3 Connection from an interface board The following figure shows configurations of the systems, in each of which the personal computer is connected to a CPU module using an interface board installed in the personal computer. For applications and installation methods of the interface boards, and driver installation, refer to the relevant interface board manual.
  • Page 30: Connection Precautions

    Connection Precautions The following describes precautions for connecting the CPU module to a personal computer. (1) When the Windows Firewall setting is enabled Disable the Windows Firewall setting. (2) When multiple IP addresses are valid at the same time Do not select direct connection setting when two or more IP addresses are valid at the same time as follows: •...
  • Page 31: Operating Environment For The Configuration Tool

    CHAPTER 2 SYSTEM CONFIGURATION Operating Environment for the Configuration Tool The following describes the operating environment for the configuration tool used for data logging. (1) Operating environment for the personal computer Item Description Computer PC/AT compatible machine supporting the following operating systems Refer to (2).
  • Page 32: Chapter 3 Specifications

    CHAPTER 3 SPECIFICATIONS This chapter describes the specifications of the data logging function. Function Specifications The following shows the specifications of the data logging function. Item Specification Reference Number of data logging settings Page 49, CHAPTER 6 Standard ROM (configuration files only), SD memory Data storage location card •...
  • Page 33 CHAPTER 3 SPECIFICATIONS Item Specification Reference • No. of records File switching timing Handling of output • File size File switching Page 64, Section 6.5 files Number of saved files 1 to 65535 Specify the operation at the time of status change, from power Data logging operation at transition to RUN on to RUN, from reset to RUN, or from STOP to RUN, after Page 74, Section 7.1...
  • Page 34: Folder Structure

    Folder Structure The following is the folder structure of an SD memory card that is installed in the CPU module. When an access is made by the FTP function, " / " denotes that it is the root folder (directory) of the SD memory card. 18:55:16 65,725,36,1 18:55:17 66,756,36,0 18:55:18 67,723,36,0...
  • Page 35: Csv File Output Format

    CHAPTER 3 SPECIFICATIONS CSV File Output Format This section describes the CSV format specifications and lines and columns output. 3.3.1 CSV format specifications The CSV file format is specified as shown below. Item Description Delimiter Comma (,) Line feed code CRLF (0x0D, 0x0A) Character code ASCII or Shift JIS...
  • Page 36 Output of the following information can be disabled. ( Page 107, Section 8.4.9) • Date and time column • Trigger information column (selectable only for trigger logging) • Index column • Data sampling interval column • Execution program name column •...
  • Page 37 CHAPTER 3 SPECIFICATIONS (3) Data type information line The data type of each column is displayed. Data are output in the format of (data type)[(additional information)]. Item "Data type" output "Additional information" output Size Size A format is output. 3 to 34 Date and time column DATETIME 8 bytes...
  • Page 38 (4) Data name line The data name of each column is displayed. Item Description Size Date and time column TIME is output. 4 bytes Data sampling interval INTERVAL [us] is output. 12 bytes column Execution step No. column STEP NO. is output. 8 bytes Execution program name PROGRAM NAME is output.
  • Page 39 CHAPTER 3 SPECIFICATIONS (5) Data line Sampled data values are displayed. One line contains the data sampled at one time. Item Description Size Date and time column 1 to 32 bytes Date and time information is output. Data sampling interval A time interval between the previous and current sampling events is output.
  • Page 40: Value Ranges By Output Format

    3.3.3 Value ranges by output format The value ranges available for output are shown by output format as shown below. (1) Integer type The value range available for each integer type is shown below. Output format Lower limit Upper limit Word (unsigned) 65535 Word (signed)
  • Page 41: Chapter 4 Preparation And Setup

    CHAPTER 4 PREPARATION AND SETUP CHAPTER 4 PREPARATION AND SETUP The following flowchart shows the steps to be performed before data logging operation. Start CPU module Personal computer Page 42, Section 5.2.1 Insert an SD memory card into the slot of the CPU module. Install the configuration tool.
  • Page 42 Memo...
  • Page 43: Chapter 5 Start-Up Of The Configuration Tool

    CHAPTER 5 START-UP OF THE CONFIGURATION TOOL CHAPTER 5 START-UP OF THE CONFIGURATION TOOL This chapter describes the start-up of the configuration tool. Getting the Configuration Tool There are two ways to get the configuration tool. (1) Included in the programming tool The configuration tool is included in the CD-ROM of the following programming tools.
  • Page 44: Installation Method

    Installation Method This section explains how to install and uninstall the configuration tool. By installing an installation file, the configuration tool can be used. ● Before installation, terminate all other applications running on Windows. ● The installer may not function properly due to automatic start of an update program of the operating system or any other software, such as Windows or Java Update.
  • Page 45 CHAPTER 5 START-UP OF THE CONFIGURATION TOOL ↓ If the MELSOFT or any other software required has not been installed properly, the left screen is displayed, and the installation cannot continue until Windows is restarted. In this case, restart Windows and then start the installation again. (Go back to step 1.) ↓...
  • Page 46 Select the destination folder, and click the button. Confirm the "Current Settings", and click the button. ↓ When the first time a MELSOFT product is installed, the left screen may be displayed during installation. To continue, click the button. (Operation check has been done, and no problem will arise after installation.
  • Page 47 CHAPTER 5 START-UP OF THE CONFIGURATION TOOL ↓ Installation is completed. Click the button. ↓ If the left screen is displayed, Windows must be restarted.
  • Page 48 For Windows Vista , the following dialog box may appear after completion of installation. Select "This program installed correctly". Then, restart Windows . If "Reinstall using recommended settings" is selected by mistake, "Windows XP SP2 compatibility mode" is automatically set. According to the following procedure, cancel the "Windows XP SP2 compatibility mode" and reinstall the program. 1) From Explorer, right-click the Setup.exe to open the properties dialog box.
  • Page 49: Uninstallation Procedure

    CHAPTER 5 START-UP OF THE CONFIGURATION TOOL 5.2.2 Uninstallation procedure The uninstallation procedure is shown below. Click the button for LCPU Logging Configuration Tool. [Start] [Control Panel] [Add or Remove Programs] ↓ The uninstallation dialog box is displayed. Click the button.
  • Page 50: Starting The Configuration Tool

    Starting the Configuration Tool The configuration tool can be started by the following three methods. • Start from the Start menu • Start from the programming tool • Start from the viewer tool (GX LogViewer) (1) Start from the Start menu After installing the configuration tool, follow the procedure below.
  • Page 51: Chapter 6 Data Logging Function

    CHAPTER 6 DATA LOGGING FUNCTION CHAPTER 6 DATA LOGGING FUNCTION The data logging function allows logging of CPU module device values at the specified sampling intervals. The logged data are stored on an SD memory card. CPU module SD memory card Word device Data logging file...
  • Page 52: Target Data

    Target Data The target data is device memory data in the CPU module, which is saved on an SD memory card with time stamp. (1) Data type The following data types can be specified for data logging of the device memory. Data type Number of device points Data type...
  • Page 53: Sampling Of Target Data

    CHAPTER 6 DATA LOGGING FUNCTION Sampling of Target Data Select a sampling interval and timing from the following items. ( Page 99, Section 8.4.4) Setting item Description Data are collected in the END processing of each Each scanning cycle scan. Specify the time of sampling interval.
  • Page 54 (a) Sample data at the first END processing after the specified time has elapsed Select this when data are to be collected at relatively long intervals and at the timing of END processing, not during any other program execution. When 100 milliseconds are specified 100 ms 100 ms 100 ms...
  • Page 55 CHAPTER 6 DATA LOGGING FUNCTION (3) Condition specification Data are collected when the state of the specified device or step meets the specified condition. Furthermore, if both of (a) and (b) are selected, an AND condition can be created. (a) Device specification Data are collected when the specified device condition is met in the END processing of each scan.
  • Page 56 The following devices can be specified as device data conditions. Type Description X, Y, M, L, F, SM, V, B, SB, T (contact) , ST (contact) , C (contact) , FX, FY, BL \S Bit device Bit specification of word device: D, D (extended data register), SD, W, W (extended link register), SW, R, ZR, FD, U \G T (current value), ST (current value), C (current value), D, D (extended data register), SD, W, W (extended link register), SW, R, Z, ZR, FD, U \G...
  • Page 57 CHAPTER 6 DATA LOGGING FUNCTION (b) Step No. specification Data are collected when the specified condition is met immediately before execution of the specified step. In addition to "Step No.", set "Program name" and "Execution condition". <Data are continuously collected while the condition is satisfied.> Select an execution condition from the following.
  • Page 58: Logging Type

    Logging Type There are the following two logging types: • Continuous logging • Trigger logging 6.3.1 Continuous logging When continuous logging is selected, device values of the CPU module are continuously logged at the specified intervals. The flow of the continuous logging is shown below. <Preparation for continuous logging>...
  • Page 59: Trigger Logging

    CHAPTER 6 DATA LOGGING FUNCTION 6.3.2 Trigger logging When trigger logging is selected, device values of the CPU module before and after a trigger (satisfaction of the specified condition) are logged for the specified number of records. The flow of the trigger logging is shown below. <Preparation for trigger logging>...
  • Page 60 Specify the numbers of records before and after trigger in the following setting. ( Page 107, Section 8.4.9) Setting item Description No. of records (before trigger) Specify the volume of the data sampled before trigger as the number of records. Specify the volume of the data sampled after trigger (including at the time of trigger) as the No.
  • Page 61: Trigger Condition

    CHAPTER 6 DATA LOGGING FUNCTION 6.3.3 Trigger condition Specify a trigger condition by selecting appropriate items from the following. Setting item Description When the bit of the bit device A trigger occurs when the status of the specified device is changed rises from off to on.
  • Page 62 (1) Condition specification A trigger occurs when the state of the specified device or step meets the specified condition. (a) Condition change specification A trigger occurs when the specified device condition is met. Select one from the following. • When the bit of the bit device rises: When the specified device is turned on •...
  • Page 63 CHAPTER 6 DATA LOGGING FUNCTION (b) Step No. specification A trigger occurs when the specified condition is met immediately before execution of the specified step. In addition to "Step No.", set "Program name" and "Execution condition". Select an execution condition from the following.
  • Page 64: Data Logging Status

    Data Logging Status There are the following data logging states. • Start • Pause • Stop • Completion (1) Start By a data logging start request, register a data logging and start it. Data logging start can be requested by the following: •...
  • Page 65 CHAPTER 6 DATA LOGGING FUNCTION (4) Completion Data logging is completed with the data logging setting registered. Perform the following. (a) For Continuous logging In the "Save" setting of the data logging setting, when "Stop" is selected for "Operation occurring when number of saved files is exceeded", the data logging is completed at the time the number of saved files reaches the specified value.
  • Page 66: Data Logging File

    Data Logging File The target data of the data logging are saved in the data logging file. 6.5.1 Saving format of the data logging file Data logging files are saved in the CSV format (the extension is ".CSV"). The CSV file format is a format of the files that can be opened by general applications, such as Excel and Notepad.
  • Page 67: File Switching Setting

    CHAPTER 6 DATA LOGGING FUNCTION 6.5.3 File switching setting The sampled target data of data logging are temporarily saved in a stack file in the SD memory card. The stack file can be switched to the saved file so that the size of the stack file will not be too large. By renaming the stack file, it can be switched to a saved file.
  • Page 68 (2) File after switching In renaming a file, an eight-digit serial number (hexadecimal) is appended to the original file name. The following information can be also added if the number of characters is 48 or less (including an extension and periods). Type of information Information added Folder name...
  • Page 69 CHAPTER 6 DATA LOGGING FUNCTION (3) Storage location of saved files A folder is created under the destination folder, and saved files are stored in the folder. Up to 256 files can be stored in each folder. (When the maximum number of files has been reached, a new folder is created in the next file switching, and the file storage location after file switching is changed.) The number of files that can be stored in a destination folder is set within the range of 1 to 65535.
  • Page 70: Buffer Capacity

    Buffer Capacity Buffer capacity means the size of the buffer that is used to temporarily store collected data. CPU module SD memory card Buffer Specified <Setting 1> <Setting 1> device data Buffer capacity for setting 1 Device sampling 1st sampling data 1st sampling data area 2nd sampling data...
  • Page 71: Data Missing

    CHAPTER 6 DATA LOGGING FUNCTION Data Missing When some of the data to be sampled is not obtained and data are not successively collected, this state is called missing. (1) Cases of data missing Data missing occurs in the following cases. Item Description Processing overflow...
  • Page 72 ● Once missing occurs, it tends to recur afterward. The following settings can reduce frequency of missing. • Increase the sampling interval. ( Page 99, Section 8.4.4) • Decrease the number of sampled data. ( Page 101, Section 8.4.5) • Increase the buffer capacity. ( Page 115, Section 8.5.2) •...
  • Page 73: Precautions For The Data Logging Function

    CHAPTER 6 DATA LOGGING FUNCTION Precautions for the data logging function The following describes precautions for using the data logging function. (1) Exclusive processing (a) Sampling trace during data logging execution Sampling trace is not executable during data logging execution. (b) Data logging during sampling trace execution Sampling trace continues normally, and an error is detected in data logging.
  • Page 74 (4) Availability of data logging Data logging can be executed through another station or a serial communication module on the network. For the same setting number, however, simultaneous execution by multiple routes is not allowed. (5) Execution of data logging Once data logging is started, it can be executed only with the memory where the setting file of the currently executing data logging is stored.
  • Page 75 CHAPTER 6 DATA LOGGING FUNCTION (12)Changing clock data Do not change clock data of the CPU module during execution of data logging. Doing so will cause incorrect "Date" column information to be output to the CSV file. (Even if clock data are changed, data are collected at the specified intervals or timing.
  • Page 76: Chapter 7 Other Functions

    CHAPTER 7 OTHER FUNCTIONS This chapter describes the functions other than the data logging function. Data Logging Operation at Transition to RUN After registration of a data logging setting, logging operation for the following transition to RUN can be specified. Setting is available for each of setting No.1 to No.10.
  • Page 77: Auto Logging By Inserting An Sd Memory Card

    CHAPTER 7 OTHER FUNCTIONS Auto Logging by Inserting an SD Memory Card Writing auto logging settings to an SD memory card and inserting it into a running CPU module will automatically start logging. Both of continuous logging and trigger logging are executable. Individual setting is not available for each of setting No.1 to No.10.
  • Page 78 (3) Conditions for auto logging completion When one of the following conditions is met, the auto logging is terminated. The following conditions can be set in combination. In that case, the auto logging is terminated when either of the conditions is met first. Condition Setting Select one from the following.
  • Page 79 CHAPTER 7 OTHER FUNCTIONS (4) Conditions for auto logging inactivation After completion of auto logging, the following operation does not start another auto logging. • Power OFF → ON • Reset • STOP → RUN Also, auto logging does not start even if the following operation is performed with an SD memory card (with the auto logging setting) inserted.
  • Page 80: File Access

    File Access The FTP server function allows saving and deletion of data logging files from the SD memory card installed in the CPU module to the personal computer. The following commands can be used for access. When a file is to be specified, use a command for which a folder name can be included.
  • Page 81: Chapter 8 How To Use The Configuration Tool

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL This chapter describes the setting procedure and operations for data logging. Setting Flow Chart Follow the flow chart below to configure the settings. Start Configure the settings required for data logging.
  • Page 82: Screen Structure

    Screen Structure This section describes the screen structure of the configuration tool. 8.2.1 Main screen The main screen of the configuration tool is as shown below. (1) Displayed screen (2) Displayed items Name Description Reference Menu Menu items used for executing respective functions are displayed. Page 81, Section 8.2.2 Toolbar Tool buttons used for executing respective functions are displayed.
  • Page 83: Menu Structure

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.2.2 Menu structure The menu structure of the configuration tool is as listed below. Project Reference Creates a new project, discarding the currently editing project. Page 87, Section 8.3.1 Open Opens a project file that is stored in the local disk. Page 87, Section 8.3.2 Save Saves the current project data to the current file.
  • Page 84: Toolbar Structure

    8.2.3 Toolbar structure The toolbar structure of the configuration tool is as listed below. Icon Equivalent menu item Reference [Project] → [New] Page 87, Section 8.3.1 [Project] → [Open] Page 87, Section 8.3.2 [Project] → [Save] Page 89, Section 8.3.3 [Edit] →...
  • Page 85: Edit Item Tree

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.2.4 Edit item tree The edit item tree is a tree that presents an overall view of the project setting. Project root Setting type Item The following operations can be performed with the edit item tree. (1) Editing a setting item Double-clicking "Data logging setting"...
  • Page 86: Status Bar

    8.2.5 Status bar The following items are displayed on the status bar. (1) Displayed screen (2) Displayed items Name Description The route for connecting to the CPU module is displayed. (The route set in the "Transfer Setup" dialog box is displayed.) Connection route The route will be displayed during operation of the configuration tool until another route is specified.
  • Page 87: Common Operations

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.2.6 Common operations (1) Adjusting a column width In a table in the advanced settings area of the configuration tool, drag the right boundary of the column as illustrated below. (2) Displaying a tooltip In a table in the advanced settings area of the configuration tool, when the mouse pointer is placed on a cell, a tooltip appears and displays the entire information in the cell.
  • Page 88: Device Batch Replacement

    8.2.7 Device batch replacement Devices can be replaced with others all at once in the entire project in the data logging setting. (1) Operating procedure Display the "Device Batch Replacement" dialog box. [Edit] [Device Batch Replacement] Enter data. Click the button.
  • Page 89: Project Management

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL Project Management This section describes the project management. 8.3.1 Creating a new project A new project can be created by the following operation. The currently editing project is discarded. [Project] [New] 8.3.2 Opening a project A saved project can be read.
  • Page 90 (3) Setting items Item Description Look in Select a folder in which the project file is stored. File name Specify the project file name. Files of type Select a project file type (extension).
  • Page 91: Saving A Project

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.3.3 Saving a project Save the currently editing settings to a project file. (1) When saving the file (a) Operating procedure Perform the following. [Project] [Save] (2) When saving the file with a new name (a) Operating procedure Open the "Save as"...
  • Page 92: Reading The Logging Setting From The Sd Memory Card

    8.3.4 Reading the logging setting from the SD memory card Read the data logging setting written on the SD memory card in the personal computer. (1) Operating procedure Install the SD memory card in the personal computer. Open the "Read Logging Setting from SD Memory Card" dialog box. [Project] [Read Logging Setting from SD Memory Card] Select a drive to read from.
  • Page 93 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (2) Setting screen (3) Setting items Item Description Drive to read from A list of the drives recognized by the personal computer is displayed. A list of the data that have been written to the SD memory card is displayed. (Data logging setting and Common Target logging setting data setting are listed.)
  • Page 94: Writing The Logging Setting Into The Sd Memory Card

    8.3.5 Writing the logging setting into the SD memory card Write the currently editing data in a form available for CPU module operation. Data are written directly to the SD memory card in the personal computer. When the SD memory card is installed into the CPU module, logging is started. (1) Operating procedure Install an SD memory card in the personal computer.
  • Page 95 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (2) Setting screen (3) Setting items Item Description Drive to write into A list of the drives in the personal computer is displayed. Target logging setting data A list of the data that are currently set is displayed. (Data logging setting and Common setting are listed.)
  • Page 96: Data Logging Setting

    Data Logging Setting Configure the settings that are required for the data logging function. For the specifications of data logging, refer to Page 30, CHAPTER 3. 8.4.1 Data logging setting list This section describes the items in the data logging setting list. (1) Operating procedure Perform the following.
  • Page 97 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (3) Displayed items and button Item Description Setting Reference The data logging setting No. is displayed. 01 to 10 Any name (32 one-byte or 16 Data logging name The data logging name is displayed. two-byte characters) Page 98, Logging type...
  • Page 98: Change Of The Data Logging Setting Screen

    8.4.2 Change of the data logging setting screen The data logging setting can be performed by following the wizard. The title of each wizard screen is displayed on the bar located on the top of the advanced settings area. Configure the settings, moving in order from the left tab to the right tab on the bar.
  • Page 99 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (3) Display and operation of the wizard (a) Edit item status Each wizard setting status can be confirmed by the color on the edit item bar. Status Already set Editing Not set Font color Blue White...
  • Page 100: Logging Type

    8.4.3 Logging type Select a logging type. ( Page 56, Section 6.3) (1) Setting screen (2) Setting items Item Description Setting range Logging type Continuous logging Select this when performing continuous logging. Trigger logging Select this when performing trigger logging.
  • Page 101: Sampling

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.4.4 Sampling Select a sampling method and specify the sampling interval. ( Page 51, Section 6.2) (1) Setting screen (2) Setting items Item Description Setting range Sampling interval Each scanning cycle Select this when data are to be sampled at each scanning cycle. Time specification Select this when data are to be sampled at the specified intervals.
  • Page 102 Description Setting range Item Condition specification Select this when data are to be sampled based on the device or step No. specification. Device Select this when device data is specified. specification Device Any of the devices listed in Section 6.2 (3) can be set. •...
  • Page 103: Data

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.4.5 Data Set sampled device data, such as data type. ( Page 50, Section 6.1) (1) Setting screen (2) Setting items Item Description Setting range Data setting numbers, 001 to 128 are displayed. Device Set devices from which data are sampled.
  • Page 104 Item Description Setting range • Bit • Word [signed] • Double word [signed] • Word [unsigned] Data type Select a data type of the target data. • Double word [unsigned] • FLOAT [single precision] • FLOAT [double precision] • String •...
  • Page 105: Batch Data Insertion

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.4.6 Batch data insertion In the data list, a block of data can be inserted all at once. Data are entered in order from the highest numbered blank line on the "Data" setting screen. (1) Operating procedure In the right-click menu on the "Data"...
  • Page 106: Trigger

    8.4.7 Trigger If "Trigger logging" is selected for Logging type, specify the trigger condition. ( Page 59, Section 6.3.3) (1) Setting screen (2) Setting items Item Description Setting range Condition specification Select a trigger condition with a device data value or a step No. (To the next page)
  • Page 107 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL Item Description Setting range Condition change Select this to set a trigger to occur when the condition of the specified device is met. specification Device Any of the devices listed in Section 6.3.3 (1) can be set. •...
  • Page 108: Number Of Logging Lines

    8.4.8 Number of logging lines When "Trigger logging" is selected for Logging type, set the number of records to be output before and after occurrence of a trigger. ( Page 57, Section 6.3.2) (1) Setting screen (2) Setting items Item Description Setting range No.
  • Page 109: Csv Output

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.4.9 CSV output Set the details of CSV file output. ( Page 33, Section 3.3) (1) Setting screen (2) Setting items Item Description Setting range Date column Output date column Information in the date column is output to CSV files. The "Date line output format"...
  • Page 110 Item Description Setting range Data sampling interval Output data sampling interval column Information in the data sampling interval column is output to files. Execution program name Output execution program name Information in the execution program name column is output to files. Execution step No.
  • Page 111: Save

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.4.10 Save Set where to save the data logging files and when saved files are to be switched. Page 64, Section 6.5.2) (1) Setting screen (2) Setting items Item Description Setting range Specify the folder to which the data logging file is saved (file name).
  • Page 112 Item Description Setting range Number of saved files Specify the maximum number of files that can be saved in one folder. Number of saved files Specify the maximum number of saved files. 1 to 65535 Operation occurring when number of saved files is Set the operation to be performed when the number of saved files is exceeded.
  • Page 113: Movement

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.4.11 Movement Specify the operation after the status is switched to RUN in the following cases. ( Page 74, Section 7.1) • Power OFF → • Reset → • STOP → (1) Setting screen (2) Setting items Item Description...
  • Page 114: Finish

    8.4.12 Finish Name the data logging and finish the setting. (1) Setting screen (2) Setting items Item Description Setting range 32 one-byte or 16 two-byte characters Data logging name Specify a name for the current setting. or less The total size of the logging files output for the setting is displayed. The total size can be adjusted with the items output to CSV files.
  • Page 115: Common Setting

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL Common setting Initial settings for using the data logging function are configured. Clicking "Common setting" on the edit item tree will display the area for the common setting. Common setting consists of the following settings. Item Description Reference...
  • Page 116: Auto Logging Setting

    8.5.1 Auto logging setting Configure the settings to perform the auto logging ( Page 75, Section 7.2) by inserting an SD memory card. (1) Operating procedure Perform the following. [LCPU] on the edit item tree [Common setting] [Auto logging setting] (2) Setting screen (3) Setting items Item...
  • Page 117: Buffer Capacity Setting

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.5.2 Buffer Capacity Setting Set buffer capacity that can be used for each setting number. ( Page 68, Section 6.6) (1) Operating procedure Perform the following. [LCPU] on the edit item tree [Common setting] [Buffer Capacity Setting] (2) Setting screen...
  • Page 118: Transfer Setup

    Transfer Setup After starting the configuration tool, set a communication route for the CPU module and personal computer. Open the "Transfer Setup" dialog box. [Online] [Transfer Setup] There are the following two connection methods: • Direct connection with a USB or Ethernet cable •...
  • Page 119 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (b) "Transfer Setup" dialog box (3) Operation buttons Item Description Reference Displays a list of routes. Since a route selected from the list is automatically set in the "Transfer Setup" dialog box, the setting is Page 121, Section 8.6.4 button easy even in the case of a complex system.
  • Page 120: Connection Via A Network

    8.6.2 Connection via a network The following explains the screen operation. (1) Operating procedure In the "PC side I/F" area, select and double-click an interface on the personal computer where the configuration tool is installed. In the "PLC side I/F" area, select and double-click an interface on the CPU module side. In the "Other Station Setting"...
  • Page 121 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (3) Setting items and buttons Item Description Reference PC side I/F Set the interface of the personal computer. PLC side I/F Set the interface on the CPU module side. Other Station Setting Select this when accessing the LCPU that is directly connected to No Specification the personal computer.
  • Page 122: Connection Test

    8.6.3 Connection test Check whether connection is available or not on the route set in the "Transfer Setup" dialog box. (1) Operating procedure Set a route in the "Transfer Setup" dialog box, and click the button. When the connection is successfully established, the following message is displayed.
  • Page 123: Connection Channel List

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.6.4 Connection channel list In the "Connection Channel List" dialog box, a graphic image of each route in the list can be viewed and then a desired one can be selected. The route selected in the "Connection Channel List" dialog box is set in the "Transfer Setup" dialog box. Set any network number and station number according to the access target.
  • Page 124: Searching Cpu Modules On The Network

    8.6.5 Searching CPU modules on the network CPU modules on the Ethernet network can be searched and the search results are displayed as a list if they are connected to the hub to which the configuration tool is also connected. (1) Operating procedure In the "Transfer Setup"...
  • Page 125 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (3) Setting items and buttons Item Description PLC Mode Select a mode of the CPU module that is connected to the personal computer. Select this when directly connecting a personal computer to the Ethernet port of Ethernet Port Direct Connection the CPU module with a cable.
  • Page 126: Read Logging Setting

    Read Logging Setting Data logging setting data can be read out from the target memory of the CPU module. (1) Operating procedure Display the "Online Operation (Read out Logging Setting)" screen. [Online] [Read Logging Setting] From the "Target memory" list, select the memory where the data to be read are stored. Select the target data in the "Target logging setting data"...
  • Page 127 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (2) Setting screen (3) Setting items (a) Data logging setting Each data logging setting is represented as "setting number, [data logging name][logging type]". (b) Display of Common setting Display of Common setting differs depending on the target memory. •...
  • Page 128: Write Logging Setting

    Write Logging Setting Data logging setting data can be written to the target memory of the CPU module. Stop the target data logging before writing the data logging setting. Also, all of the data loggings must be stopped when writing the common settings. (1) Operating procedure Display the "Online Operation (Write Logging Setting)"...
  • Page 129 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (2) Setting screen (3) Setting items (a) Data logging setting Each data logging setting is represented as "setting number, [data logging name][logging type]". (b) Display of Common setting Display of Common setting differs depending on the target memory. •...
  • Page 130: Delete Logging Setting

    Delete Logging Setting Data logging setting data in the target memory of the CPU module can be deleted. (1) Operating procedure Display the "Online Operation (Delete Logging Setting)" screen. [Online] [Delete Logging Setting] From the "Target memory" list, select the memory where the data to be deleted are stored. Select the target data in the "Target logging setting data"...
  • Page 131 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (2) Setting screen (3) Setting items (a) Data logging setting Each data logging setting is represented as "setting number, [data logging name][logging type]". (b) Display of Common setting Display of Common setting differs depending on the target memory. •...
  • Page 132: Logging Status And Operation

    8.10 Logging Status and Operation Data logging is executed or stopped, and the status can be confirmed. (1) Operating procedure Open the "Logging status and operation" dialog box. [Online] [Logging Status and Operation] Select the target setting number(s). (Multiple choice available) With the button, start the data logging.
  • Page 133 CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL (2) Setting screen (3) Setting items and buttons Item Description Start (Stop) Monitoring starts when it is stopped. Or, monitoring stops when monitoring is in execution. SD memory card data Free space in the SD memory card is displayed. Selects all of the setting data.
  • Page 134 (4) Error screens (a) Error details screen The following is an example of the error details screen, "Details", which appears when the button is clicked in the event of an error. Displays a value that will be stored in the special register or an error response No.
  • Page 135: Logging File Operation

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.11 Logging File Operation Data logging files in the SD memory card can be saved in or deleted from the personal computer. (1) Operating procedure Configure the Transfer Setup settings. ( Page 116, Section 8.6) Open the "Logging file operation"...
  • Page 136 (2) Setting screen (3) Setting item and buttons Item Description The path for the current folder (directory) is displayed. Or, the path for the destination folder (directory) is Directory specified. Moves to the specified folder (directory). button Moves to the parent folder (directory). button Updates the information.
  • Page 137: Checking The Product Information

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.12 Checking the Product Information The Help function of the configuration tool contains the following. • Checking the version information • Opening the user's manual 8.12.1 Checking the version information Information on the version of the configuration tool is displayed. (1) Operating procedure Display the "About Configuration tool"...
  • Page 138: Available Characters

    8.13 Available Characters This section explains characters available for the setting items. 8.13.1 Available ASCII characters Characters in the shaded area can be used. Entry of an invalid character is not possible, or causes an error. The table below shows the other characters available for respective settings. ASCII character Setting Part...
  • Page 139: Characters Available For File And Folder (Directory) Names

    CHAPTER 8 HOW TO USE THE CONFIGURATION TOOL 8.13.2 Characters available for file and folder (directory) names Characters in the shaded area can be used.
  • Page 140: Chapter 9 Sd Memory Card

    CHAPTER 9 SD MEMORY CARD For the specifications and part names of SD memory cards, refer to the following. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) Precautions for Using SD Memory Cards This section describes the precautions for using SD memory cards. (1) Power-off or reset of the CPU module while accessing the SD memory card If the CPU module is powered off or reset while the data in the buffer is being stored to the SD memory card, the file system of the SD memory card may corrupt.
  • Page 141 CHAPTER 9 SD MEMORY CARD Memo...
  • Page 142: Chapter 10 Processing Time

    CHAPTER 10 PROCESSING TIME This chapter describes the processing time required for data logging. 10.1 Data Logging Processing Time This section describes the data logging processing time, which was measured under the specified conditions. Note that the processing time may increase depending on any of the following factors. •...
  • Page 143: Continuous Logging

    CHAPTER 10 PROCESSING TIME 10.1.1 Continuous logging The values shown were measured with the minimum allowable sampling time specified and without missing any data during continuous logging. (1) Measurement condition Item Description Scan time 1.0 ms Buffer capacity 128 bytes per setting (default) Sampling Time specification (Data are sampled at the specified time intervals.) Data...
  • Page 144: Trigger Logging

    10.1.2 Trigger logging The following shows values of the time required for outputting a total of 200 records before and after a trigger (100 records for each) to a file when trigger logging is performed. (1) Measurement condition Item Description Scan time 1.0 ms Buffer capacity...
  • Page 145: Checking The Processing Time

    CHAPTER 10 PROCESSING TIME 10.2 Checking the Processing Time Data logging is the best-effort type function. The concept of obtaining the maximum performance from the condition at the time Logging may not be performed at the specified sampling intervals because processing time may vary depending on the configuration or other connected devices.
  • Page 146: Effect On The Scan Time

    10.3 Effect on the Scan Time Use the following formula to calculate the increase in scan time in data logging. [Increase in the scan time] KM1 + (N1 × KM2) + (N2 × Km3) [µs] • N1: Number of settings •...
  • Page 147: Chapter 11 Data Logging Instructions

    CHAPTER 11 DATA LOGGING INSTRUCTIONS CHAPTER 11 DATA LOGGING INSTRUCTIONS The following instructions are used for trigger logging. Instruction Description Reference Causes a trigger to occur in trigger logging. Data sampled for the LOGTRG Trigger logging set number of records (specified in the trigger logging setting of the Page 59, Section 6.3.3, programming tool) are stored in a data logging file.
  • Page 148 (b) LOGTRGR • This instruction resets the LOGTRG instruction of the specified data logging setting No. Execution of the LOGTRGR instruction enables the LOGTRG instruction of the specified trigger logging setting No. • When this instruction is executed, the special relay (Data logging end, Data logging trigger, and After data logging trigger) of the data logging setting No.n turns off.
  • Page 149: Chapter 12 Special Relay And Special Register Lists

    CHAPTER 12 SPECIAL RELAY AND SPECIAL REGISTER LISTS CHAPTER 12 SPECIAL RELAY AND SPECIAL REGISTER LISTS This chapter provides the lists of the special relay and special register that are used for data logging. 12.1 Special Relay List The special relay list for data logging is shown below. For details on each special relay area, refer to the special relay list in the following manual.
  • Page 150: Special Register List

    12.2 Special Register List The special register list for data logging is shown below. For details on each special register area, refer to the special register list in the following manual. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) Number Name Number...
  • Page 151: Chapter 13 Troubleshooting

    CHAPTER 13 TROUBLESHOOTING CHAPTER 13 TROUBLESHOOTING For data logging error codes, SM, SD, and troubleshooting by symptom, refer to the following. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) This chapter provides only the list of the errors that may occur in data logging. 13.1 List of the Errors That May Occur in Data Logging If an error occurs in data logging, a diagnostic error will not be reported.
  • Page 152 Value in special register Timing of Error response Error cause (Data logging error cause occurrence information) 4021 Data logging registration was attempted to a failed memory. In registration of the data logging, a nonexistent program name was 4022 specified. A program name (which exists in the CPU module but is not registered to the 4083 program setting in PLC Parameter) was specified in registration of the data logging.
  • Page 153 CHAPTER 13 TROUBLESHOOTING Value in special register Timing of Error response Error cause (Data logging error cause occurrence information) Data logging operation was performed during execution of the CPU module • Registration 4332 change function with SD memory card (backup and restoration). •...
  • Page 154: Troubleshooting By Symptom

    13.2 Troubleshooting by Symptom 13.2.1 Troubleshooting on CSV file output The following are examples of incorrect display of CSV file outputs and how to troubleshoot the problems. Symptom Cause Action Do not change clock data of the CPU module during execution of the data Time data in the Date column are Clock data setting was changed incorrect.
  • Page 155: Troubleshooting On The Entire System During Operation Of The Data Logging Function

    CHAPTER 13 TROUBLESHOOTING 13.2.3 Troubleshooting on the entire system during operation of the data logging function The following are examples of the system problems that may occur during operation of the data logging function and corrective actions. Symptom Cause Action If the data logging is executed with the "short sampling interval"...
  • Page 156: Troubleshooting On The Data Logging Status

    Symptom Cause Action During execution of the data logging function, when monitoring the logging status is attempted through Starting multiple data loggings will temporarily increase the load on the service USB or Ethernet connection, the processing. This may slow down the communication response, causing a timeout communication is disconnected and error.
  • Page 157: Appendices

    APPENDICES APPENDICES Appendix 1 Installing a USB Driver For USB communication with the CPU module, installation of a USB driver is required. The following explains how to install a USB driver for Windows XP or Windows Vista. (1) Operating procedure Select "Install from a list or specific location (Advanced)", and click the button.
  • Page 158 ↓ Specify the folder where the configuration tool is installed, select [MELSOFT], [Easysocket], and [USBDriver] in this order, and click the button. ↓ Select MITSUBISHI Easysocket Driver, and click the button. ↓ Click the button. ↓ To the next page...
  • Page 159 APPENDICES The left screen appears, indicating that USB driver installation is completed. Click the button to close the dialog box. APPEN ● If the USB driver cannot be installed, check the following settings. • Select [Control Panel] → [System] → [Hardware] → [Driver Signing]. If "Block-Prevent installation of unsigned files"...
  • Page 160 Memo...
  • Page 161: Index

    INDEX Auto Logging by Inserting an SD Memory Card ..75 File Access ....... . 78 Auto logging setting .
  • Page 162 Read Logging Setting ..... . . 124 Reading the logging setting from the SD memory card ......... 90 Sampling of Target Data.
  • Page 163: Instruction Index

    INSTRUCTION INDEX LOGTRG(R) ......145 INDEX...
  • Page 164: Revisions

    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 165: 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 166 Microsoft, Windows, Windows NT, and Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries. Pentium is a trademark of Intel Corporation in the United States and other countries. Ethernet is a trademark of Xerox Corporation. The SD logo and SDHC logo are trademarks.

This manual is also suitable for:

Melsec-l02cpuMelsec-l26cpu-bt

Table of Contents