MITSUBISHI ELECTRIC MELSEC-L Series Programmable Controllers Quick Start Guide 15032011 Version A MITSUBISHI ELECTRIC INDUSTRIAL AUTOMATION
About this manual The texts, illustrations, diagrams and examples in this manual are provided for information purposes only. They are intended as aids to help explain the installation, operation, programming and use of the programmable controller of MELSEC L series. If you have any questions about the installation and operation of any of the products described in this manual please contact your local sales office or distributor (see back cover).
Quick Start Guide MELSEC-L Series Programmable Controllers Version A 03/2011 Revisions / Additions / Corrections akl —
Safety guidelines Safety guidelines For use by qualified staff only This manual is only intended for use by properly trained and qualified electrical technicians who are fully acquainted with the relevant automation technology safety standards.
Safety guidelines Safety warnings in this manual In this manual special warnings that are important for the proper and safe use of the products are clearly identified as follows: II m DANGER: b CAUTION: Personnel health and injury warnings. Failure to observe the safety warnings identified with this symbol can result in health and injury hazards for the user. Equipment and property damage warnings.
Safety guidelines General safety information and precautions The following safety precautions are intended as a general guideline for using PLC systems together with other equipment. These precautions must always be observed in the design, installation and operation of all control systems. m DANGER: ● Observe all safety and accident prevention regulations applicable to your specific application.
Safety guidelines Precautions to prevent damages by electrostatic discharge Electronic devices and modules can be damaged by electrostatic charge, which is conducted from the human body to components of the controller. Always take the following precautions, when handling the controller: b CAUTION: ● Before touching a module of the controller, always touch grounded metal, etc. to discharge static electricity from human body. ● Wear isolating gloves when touching the powered controller, e. g.
Safety guidelines MELSEC-L Series Quick start guide V
Symbols used in the manual Symbols used in the manual Use of instructions Instructions concerning important information are marked separately and are displayed as follows: NOTE Text of instruction Use of numbering in the figures Numbering within the figures is displayed by white numbers within black circles and is explained in a table following it using the same number, e.g.
Contents Contents 1 Introduction 1.1 Using the Quick start guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-1 1.2 Operations that can be performed using MELSEC-L series. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-2 1.2.1 Programmable controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-2 1.2.2 Features of CPU module . . . . . . . . . .
Contents 3 Frequently-used functions 3.1 Clarifying programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-1 3.2 3.3 Creating device comments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-2 3.1.2 Creating statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-5 3.1.3 Creating notes. . . . .
Using the Quick start guide Introduction 1 Introduction 1.1 Using the Quick start guide This Quick start guide explains the basic procedures for the first-time use of the Mitsubishi programmable controller of MELSEC-L series. You can easily understand how to use the programmable controller with this guide. Fig.
Introduction Operations that can be performed using MELSEC-L series 1.2 Operations that can be performed using MELSEC-L series 1.2.1 Programmable controllers The programmable controllers perform sequence control and logical operations by switching the output of output equipment ON/OFF according to the command signal from the input equipment.
Operations that can be performed using MELSEC-L series TERMINOLOGY Sequence control Logical operations Introduction Consecutively processes each control step based on the fixed order or procedure. One of the basic operation methods in programming. Logical operations consist of three basic operations: logical AND, logical OR, and logical NOT. Limit switch A switch to stop the movement of mobile objects on both sides of a moving apparatus for safety reasons.
Introduction Operations that can be performed using MELSEC-L series 1.2.2 Features of CPU module MELSEC-L series programmable controllers are all-in-one programmable controllers that have the following functions built into the CPU module. The use of these built-in functions enables you to design a smaller-scale system.
Operations that can be performed using MELSEC-L series No. Introduction Built-in function Description Ethernet function A maximum of 16 external devices can be connected via a hub. The reading/writing of the device data of the CPU module and the sending/receiving of the data of the other connected devices can be performed to/from a personal computer and GOT. I/O function Single function exclusive modules become unnecessary, and a smallerscale system can be configured using only LCPU.
Introduction 1.2.3 Operations that can be performed using MELSEC-L series System enhancement according to application By connecting various types of modules, the system can be enhanced according to the application. As a baseless structure is employed, the space of the control panel can be used effectively without being limited by the size of the base. USB connection I00005a Fig. 1-6: No.
Preparing for operation Using programmable controllers 2 Using programmable controllers 2.1 Preparing for operation Install * LS20001 Fig. 2-1: Prepare necessary equipment Refer to the following table for an overview of the necessary equipment to prepare operation. No. Description Programmable controller: Explanations for each module see next page Windows® personal computer GX Works2, Version 1.
Using programmable controllers System configuration 2.2 System configuration 2.2.1 System configuration example The following system configuration is explained as an example. Inputs and outputs are configured as switches and lamps respectively. Switch (input) Programmable controller Lamp (output) LS30001 Fig. 2-2: NOTE Example of a system configuration Wires to the power supply module and the power of the external I/O devices are omitted. No.
Mounting modules 2.3 b Using programmable controllers Mounting modules CAUTION: The power supply must be disconnected when mounting modules. Mount the prepared modules. A battery connector must be connected when using the CPU module for the first time. Mounting modules LS40001 Fig. 2-3: Mounting modules procedure Release the module joint levers located on the top and bottom of the CPU module. (Slide them towards the front of the module.
Using programmable controllers NOTE Mounting modules Connect a battery in the CPU module by the following procedure. Open the cover at the bottom of the CPU module. CPU module side connector Battery side connector Confirm the directions of the connectors, and insert the battery side connector into the CPU module side connector. Close the cover at the bottom of the CPU module. Battery CPU module 2-4 Procedure complete.
Mounting modules Using programmable controllers Mounting modules to DIN rail Pull down all the DIN rail hooks on the back of the modules. (Pull them down until they click.) Engage the claws at the top of the modules with the top of the DIN rail, and then insert the DIN rail to install. Lock the DIN rail hooks of the modules to engage them with the DIN rail. (Push them up until they click. If your finger does not reach the DIN rail hook, use a screwdriver, etc.
Using programmable controllers 2.4 Wiring modules Wiring modules This section explains the wiring of the power supply modules and the external I/O devices. b 2.4.1 CAUTION: The power supply must be disconnected when wiring modules. Wiring the power supply module The following shows an example of wiring the power line and the ground wire. Grounding is performed to prevent electric shocks and malfunctions.
Wiring modules 2.4.2 Using programmable controllers Wiring connector for external devices The following shows an example of wiring the connectors for external devices. A6CON1 External power supply Output common Switch 1 Signal: X6 The flat cable arrangement and section to be connected are as shown on the right.
Using programmable controllers NOTE Wiring modules Wire the power supply lines for the I/O equipment and the programmable controller separately as shown below. Main power supply Relay terminal block Programmable controller power supply Isolation transformer Programmable controller 100-240 V AC T1 I/O power supply I/O equipment Inside of control panel LS50003 TERMINOLOGY Isolation transformer Control panel A two-winding transformer.
Checking power supply 2.5 Using programmable controllers Checking power supply Check that the power supply runs normally after configuring the system, mounting modules, and wiring. Operating procedure ● Check before turning on the power supply. – Wiring of the power supply – Power supply voltage ● Set the CPU module to STOP. Open the cover on the front of the CPU module and set the switch to STOP. RESET/STOP/RUN Fig. 2-6: RESET/STOP/RUN switch I04001 ● Turn on the power supply module.
Using programmable controllers NOTES Checking power supply If the "POWER" LED of the power supply module is off, even though the power is turned on, check the wiring and installation statuses to confirm whether or not they are correct. If the "BAT." LED of the CPU module is flashing, check whether the battery has been correctly connected. TERMINOLOGY Parameter 2 - 10 Setup information necessary to operate the programmable controller system.
Programming 2.6 Using programmable controllers Programming This section explains how to create a program (sequence program) for sequence control. 2.6.1 "Devices" and "Instruction symbols" in programming Combine "Devices" and "Instruction symbols" to create a sequence program. Devices Devices include bit devices and word devices. ● Bit device: Handles one-bit information such as the ON/OFF of a switch or a lamp. ON/OFF of a switch ON/OFF of a lamp Fig.
Using programmable controllers Programming Instruction symbols The following shows the basic instructions of sequence control. Instruction symbol Description Open contact: Conducts when an input signal is set to ON. Closed contact: Conducts when an input signal is set to OFF. Coil output: Outputs data to a specified device. Tab. 2-5: Basic instructions of sequence control TERMINOLOGY Coil 2.6.2 An output used when creating a sequence program.
Programming 2.6.3 Using programmable controllers Starting GX Works2 Operating procedure Select Start All Programs MELSOFT Application GX Works2 GX Works2. Fig. 2-11: Selecting program GX Works2 000001a After starting, the "GX Works2" main screen is displayed. Fig.
Using programmable controllers 2.6.4 Programming Creating a new project A project consists of programs, device comments, and parameters. Operating procedure Select Project New… Fig. 2-13: Select "New…" menu 000003a Select LCPU. Select the LCPU to be used (L02 in this guide). Click the OK button. Fig. 2-14: "New project" screen 000004a A project tree and a ladder screen are displayed. Fig.
Programming 2.6.5 Using programmable controllers Creating a sequence program Operating procedure ● Enter input device X6. Click the area to enter, and then enter "X". Enter "6" on the ladder input screen, and then click the OK button. Fig. 2-16: Enter input device X6 000006a ● Enter input device X7. Click the area to enter, and then enter "X". Enter "7" on the ladder input screen, and then click the OK button. Fig. 2-17: Enter input device X7 000007a ● Enter output device Y0. Enter "Y".
Using programmable controllers Programming Coil Y0 is displayed. Fig. 2-19: Coil Y0 000009a ● Enter input device X8. Click . Enter device "X8", and then click the OK button. Fig. 2-20: Enter input device X8 0000010a ● Enter output device Y6. Enter "Y". Enter "6" on the ladder input screen, and then click the OK button. Fig.
Programming Using programmable controllers Coil Y6 is displayed. Fig. 2-22: Coil Y6 0000012a ● Draw a line. Click the area to enter, and then enter [Ctrl] + [ ] and [Ctrl] + [ ]. Fig. 2-23: Drawing a line 0000013a ● Enter output device Y7. Enter "Y". Enter "7" on the ladder input screen, and then click the OK button. Fig. 2-24: Enter output device Y7 0000014a Coil Y7 is displayed. Fig.
Using programmable controllers 2.6.6 Programming Converting a program Define the contents of the entered ladder block. Operating procedure Select Compile Build. Fig. 2-26: Select Compile, then Build 000016a Perform the conversion to align entered ladders. When completed, the gray display turns to white. Fig. 2-27: Before conversion: gray display 000017a Fig. 2-28: After conversion: white display The ladder is left-aligned. 000018a The programming is completed.
Programming 2.6.7 Using programmable controllers Saving a project A program is saved in unit of project. Save the created project with a name. Operating procedure Select Project Save As… Fig. 2-29: Select Project, then Save As… 000019a The "Save As" screen is displayed. Specify the save location. Enter the work space name, project name, and title. Click the Save button. Fig. 2-30: Steps to follow in the "Save As" screen ④ 000020a Click the Yes button. Fig.
Using programmable controllers 2.7 Writing programs Writing programs This section explains hot to write the program to the CPU module. 2.7.1 Connecting the CPU module and the personal computer Connect the CPU module and the USB port of the personal computer with a USB cable. Personal computer CPU module Fig. 2-32: Connection with USB cable I060001 2.7.2 Turning on the programmable controller Turn on the power supply module. Then turn on the power of the external power supply. 2.7.
Writing programs Using programmable controllers The "Transfer Setup Connection" screen is displayed. Fig. 2-34: "Transfer Setup Connection" screen C60001 Double-click Serial USB. Fig. 2-35: PC side I/F part of "Transfer Setup Connection" screen 000023a The "PC side I/F Serial Setting" screen is displayed. Select USB. Click the OK button. Fig. 2-36: "PC side I/F Serial Setting" screen 000024a Click PLC module. Click No Specification. Fig.
Using programmable controllers Writing programs Click the Connection Test button Fig. 2-38: Starting the connection test 000026a When properly connected, the connection completion message is displayed. Click the OK button. Fig. 2-39: Connection completion message 000027a Click the OK button. ⑩ Fig. 2-40: Click the OK button to close the "Transfer Setup Connection" screen 000029a The connection setting is completed.
Writing programs 2.7.4 Using programmable controllers Formatting the CPU module Before writing the program, format the CPU module to set it to the initial status. Select Online PLC Memory Operation Format PLC Memory. Fig. 2-41: Select the "Format PLC Memory" menu 000030a The "Format PLC Memory" screen is displayed. Select Program Memory/Device Memory from Target Memory. Click the Execute button. Fig.
Using programmable controllers 2.7.5 Writing programs Writing programs to the CPU module Select Online Write to PLC… Fig. 2-45: Select the "Write to PLC…" menu 000034a The "Online Data Operation" screen is displayed. Click Parameter + Program. "Program" and "Parameter" are checked. Click the Execute button. Fig. 2-46: "Online Data Operation" screen 000035a When the "Write to PLC" function is properly executed, the following message is displayed. Click the Close button. Fig.
Checking operation 2.8 Using programmable controllers Checking operation Execute the program written to the CPU module to check the operation. Check the program operation with the switches and lamps or the monitor function of GX Works2. 2.8.1 Executing the program written to the CPU module Use the "RESET/STOP/RUN" switch on the front of the CPU module for the operation. – RUN: Executes the sequence program operation. – STOP: Stops the sequence program operation.
Using programmable controllers Checking operation ● Executing the program LED display during the STOP status MODE: Green (ON) RUN: OFF LED display during the RUN status MODE: Green (ON) RUN: Green (ON) LS90012 Fig. 2-49: Executing the program Tilt the "RESET/STOP/RUN" switch on the front of the CPU module towards "RUN". If the "RUN" LED turns on green, the program is running normally. NOTE 2.8.2 Do not use pointed tools such as a screwdriver when operating the switch.
Checking operation 2.8.3 Using programmable controllers Checking the operation in GX Works2 Check the program operation by using the monitor mode on the GX Works2 screen, where switches and lamps can be operated and their statuses can be checked. ● Set the operating program display screen to the monitor mode. Select Online Monitor Start Monitoring. Fig. 2-50: Select the "Start monitoring" menu 000037a Execute the monitor to display the "Monitor status" screen. Fig.
Using programmable controllers Checking operation ● Operation check 3 Double-click X8 while pressing the [Shift] key. X8 turns off and Y6 and Y7 turn off. Fig. 2-55: Operation check step 3 Turns off Turns off 000042a NOTE 2 - 28 While pressing the [Shift] key, double-click devices set to ON in Operation checks 1 and 2 to turn them off.
Clarifying programs 3 Frequently-used functions Frequently-used functions This section explains functions frequently used in GX Works2. 3.1 Clarifying programs Use comments to clarify the contents of a program. Statement Statement Device comment Note 000046a Fig. 3-1: Use of comments The following are the three types of comment. Type Description Device comment Describes roles and usage of each device. 32 Statement Describes roles and usage of ladder blocks.
Frequently-used functions 3.1.1 Clarifying programs Creating device comments Device comments can be entered from the list or on the ladder diagram. Input operation from the list Double-click Global Device Comment in the project list. Fig. 3-2: Select "Global Device Comment" 000047a Enter the start device number in "Device Name" and press the [Enter] key. Enter a comment in the "Comment" column. When entering comments for other devices, repeat Steps and . Fig.
Clarifying programs Frequently-used functions Input operation on the ladder diagram Select Edit Documentation Device Comment. Fig. 3-4: Select "Device Comment" menu 000049a Double-click the ladder symbol to enter a comment. Enter a comment on the "Input Device Comment" screen. Click the OK button. Fig. 3-5: "Input Device Comment" screen 000050a Select the Device Comment menu in Step again to finish the operation.
Frequently-used functions Clarifying programs Entering comments when creating ladders Select Tool Options… Fig. 3-6: Select "Options" menu 000051a Select Program Editor Ladder Device. Activate "Enter label comment and device comment". Click the OK button. Fig. 3-7: "Options" screen 000052a After the ladder entry operation, the "Input Device Comment" screen is displayed and a comment can be entered. Fig.
Clarifying programs 3.1.2 Frequently-used functions Creating statements Operating procedure Select Edit Documentation Statement. Fig. 3-9: Select "Statement" menu 000054a Double-click the ladder symbol to enter a statement. Select In PLC . Fig. 3-10: "Enter Line Statement" screen 000055a Enter a statement. Click the OK button. Fig.
Frequently-used functions 3.1.3 Clarifying programs Creating notes Operating procedure Select Edit Documentation Note. Fig. 3-12: Select "Note" menu 000057a Double-click an output instruction to enter a note. Select In PLC . Fig. 3-13: "Enter Note" screen 000058a Enter a note. Click the OK button. Fig. 3-14: Close the "Enter Note" screen after entering a statement 000059a Select the Note menu in Step again to finish the operation.
Monitoring device values and status 3.2 Frequently-used functions Monitoring device values and status The following are the two types of device monitor. Type Purpose Device batch monitor Used to monitor consecutive devices of one type. Entry data monitor Used to simultaneously monitor separately-located devices in the ladder or various devices on one screen. Tab.
Frequently-used functions 3.2.1 Monitoring device values and status Device batch monitor Monitors consecutive devices by specifying the start device number. Operating procedure Select Online Monitor Device/Buffer Memory Batch. Fig. 3-15: Select "Device/Buffer Memory Batch" menu 000061a Enter the start device number to be monitored and press the [Enter] key. Fig.
Monitoring device values and status 3.2.2 Frequently-used functions Entry data monitor The device registration methods used to perform the Entry data monitoring are the specified device registration and the device registration with ladder monitor display. The device statuses can be displayed in watch windows 1 to 4. Specified device registration Register specified devices in Watch window 1. Select Online Monitor Start Monitoring. Fig.
Frequently-used functions Monitoring device values and status Select Online Monitor Start Watching. Fig. 3-22: Select "Start Watching" menu 000067a The values of devices and the ON/OFF status of contacts/coils are displayed.
Monitoring device values and status Frequently-used functions Device registration with ladder monitor display Specify the range of the ladder diagram on the ladder monitor screen and register the devices in a batch. Select Online Monitor Start Monitoring. Fig. 3-23: Select "Start Monitoring" menu 000060a Select View Docking Window Watch1. Fig. 3-24: Select "Watch1" menu 000064a Click the start point of the ladder.
Frequently-used functions Monitoring device values and status Drag and drop the selected range to the watch window 1. Fig. 3-26: Register devices to the Watch window ⑤ 000069a Fig. 3-27: The values of the selected devices are monitored. 000070a Select Online Monitor Start Watching. Fig.
Monitoring device values and status NOTE Frequently-used functions Installing the display unit allows you to monitor specified device memory values without using GX Works2. Operating procedure The following is an example of monitoring the Y6 value. 앫 Select function selection screen, then CPU MON/TEST, and then click the button. 앫 Select DEV MON/TEST, and then click the OK button. 앫 Click the button on the screen shown below.
Frequently-used functions 3.3 Changing device values Changing device values This function forcibly turns on/off the bit devices (X and Y) or changes the current value of the word device (such as T, C, and D). 3.3.1 Forced ON/OFF of bit device Turn on/off forcibly the bit device (X and Y) of the CPU module. Operating procedure Select Online Monitor Start Monitoring. Fig.
Changing device values 3.3.2 Frequently-used functions Word device current value change Changes the current value of the word device (such as T, C, and D) in the CPU module to the specified value. Operating procedure Select Online Monitor Start Monitoring. Fig. 3-32: Select "Start Monitoring" menu 000083a Select Debug Modify Value. Fig. 3-33: Select "Modify Value" menu 000084a Enter the device number to be changed. Enter the value to be changed. Click the Set button.
Frequently-used functions NOTE Changing device values Installing the display unit allows the forced ON/OFF of X/Y device with the operation of the display unit. Operating procedure The following is an example of operating the forced ON/OFF of X7. 앫 Select function selection screen, then CPU MON/TEST, and then click the button. 앫 Select FORCED ON/OFF, and then click the button. 앫 Select SET ON/OFF, and then click the OK button. 앫 Select X/Y using or .
Changing running programs 3.4 Frequently-used functions Changing running programs This function writes only the modified ladder block to the CPU module while the CPU module is in the "RUN" status. A program can be written in a short time since this function does not transfer the whole program. The following is an example of adding a contact to the ladder. Operating procedure Display the ladder. Fig.
Frequently-used functions 3.5 Checking errors Checking errors If an error occurs, it can be checked with PLC diagnostics. By using the Error jump, you can jump to the step number of the sequence program corresponding to the error. 3.5.1 PLC diagnostics The details of errors occurring can be checked from the PLC diagnostics. Operating procedure Select Diagnostics PLC Diagnostics. Fig.
Checking errors 3.5.2 Frequently-used functions Error jump Errors can be checked easily with the error jump function of PLC diagnostics. Operating procedure Select Diagnostics PLC Diagnostics. Fig. 3-42: Select "PLC Diagnostics" menu 000079a Click the Error Jump button. Fig. 3-43: "PLC diagnostics" screen (example) ② 000080a The cursor jumps to the step number of the sequence program corresponding to the selected error. Fig.
Frequently-used functions NOTES Checking errors Installing the display unit allows you to confirm the errors occurring and errors which have occurred in the past with the display unit. Operating procedure The following is an example of the operating procedure to check the latest errors occurring in the CPU module. 앫 Select function selection screen, then CPU MON/TEST, and then click the button. 앫 Select ERROR MONITOR, and then click the button.
Monitoring system status 3.6 Frequently-used functions Monitoring system status This function monitors the system status of the CPU module and other modules. Operating procedure Select Diagnostics System Monitor. Fig. 3-45: Select "System monitor" screen 000081a The "System monitor" screen is displayed. Fig. 3-46: "System monitor" screen Explanations see table below. 000082a No.
Frequently-used functions NOTE Monitoring system status The details of each module can be checked from the "System Monitor" screen. Double-click the CPU module. The "PLC Diagnostics" screen is displayed and the operation status of the CPU module can be checked. Double-click each module (excluding CPU and power supply). The "Module Detailed Information" screen is displayed and the operation status of each module can be checked. The built-in I/O can also be checked. 000086a Fig.
Index INDEX B G Built-in functions CC-Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 Data logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 GX Works2 Checking operation . . . . . . . . . . . . . . . . . . . . . . . . . . 2-27 Starting . . . . . . .
Index II
MITSUBISHI ELECTRIC HEADQUARTERS EUROPEAN REPRESENTATIVES EUROPEAN REPRESENTATIVES MITSUBISHI ELECTRIC EUROPE B.V. EUROPE German Branch Gothaer Straße 8 D-40880 Ratingen Phone: +49 (0)2102 / 486-0 Fax: +49 (0)2102 / 486-1120 MITSUBISHIELECTRICEUROPEB.V.-org.sl. CZECH REP. Czech Branch Avenir Business Park, Radlická 714/113a CZ-158 00 Praha 5 Phone: +420 - 251 551 470 Fax: +420 - 251-551-471 MITSUBISHI ELECTRIC EUROPE B.V.