How to read this guide The following shows the symbols used in this Quick start guide with descriptions and examples. Symbol Description Example This symbol explains information Select [View] → [Comment] ( key + key). The Ctrl oint you need to know. comment display/hide setting can be switched.
Page 4
Introduction This Quick start guide explains the basic procedures for the first-time use of the Mitsubishi programmable controller MELSEC-L series CPU module (CPU module). You can easily understand how to use the programmable controller with this guide. Mounting and wiring modules...
Page 5
Operations that can be performed using MELSEC-L series ■ 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. <Input equipment> <Programmable controller> <Output equipment>...
Page 6
■ 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. Built-in Ethernet function Built-in I/O function...
Page 7
(Function Explanation, Program I/O modules effectively using FB (Function Block). Fundamentals) : SH-080889ENG Analog I/O modules Mitsubishi integrated FA software MELSEC-L CPU Module User's Serial communication modules MELSOFT GX Works2 FB Quick Manual (Data logging functions) Manual for each module...
Related manuals This Quick start guide explains the basic procedures for introducing programmable controllers. Read the following manuals to use each module with a full understanding according to your purpose. ■ Learning about programmable controllers ● MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) . . . SH-080890ENG This manual explains specifications, installation, and maintenance methods for the CPU module and the power supply module.
Page 9
Using programmable controllers The programmable controllers are installed with procedures as shown below. " Preparing for Operation" (P.8) Preparing the necessary equipment " System Configuration" (P.9) Introducing equipment used for operations in this Quick start guide " Mounting Modules" (P.10) Mounting the prepared modules "...
Preparing for Operation ■ Preparing the necessary equipment Programmable controller Personal computer GX Works2 Version1.20W Install* Explanations for each Windows personal computer module are on the next page USB cable Lamp Switch USB mini B type A6CON1 External power supply DIN rail (Including DIN rail stopper)
System Configuration ■ System configuration example This Quick start guide explains the following system configuration as an example. Inputs and outputs are configured as switches and lamps respectively. Switch (input) Programmable controller Lamp (output) * Wires to the power supply module and the power of the external I/O devices are omitted. Name Model Description...
Mounting Modules Mount the prepared modules. A battery connector must be connected when using the CPU module for the first time. Caution The power supply must be disconnected when mounting modules. ■ Mounting modules Release the module joint levers located on the top and bottom of the CPU module.
Page 13
■ 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.
Page 14
Wiring Modules Wire the power supply module and the external I/O devices. Caution The power supply must be disconnected when wiring modules. Reference For details of wiring precautions, refer to the following manual. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) : SH-080890ENG ■...
Page 15
■ 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 below. (Viewed from the insertion point of the connector) Switch 2 Input...
Page 16
oint Wire the power supply lines for the I/O equipment and the programmable controller separately as shown below. Main Programmable Isolation Relay power controller transformer terminal power supply supply block Programmable 100/200VAC controller I/O power supply I/O equipment Inside of control panel Terminology Isolation transformer : A two-winding transformer.
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 RESET/STOP/RUN Set the CPU module to STOP. Open the cover on the front of the CPU module and set the switch to STOP.
Page 18
Programming Create a program (sequence program) for sequence control. ■ "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. ①...
Page 19
Instruction symbols The following shows the basic instructions of sequence control. Instruction Description symbol 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. Terminology Coil : An output used when creating a sequence program.
Page 20
■ Starting GX Works2 Operating procedure After starting, the GX Works2 main screen is Select [Start] → [All Programs] → [MELSOFT displayed. Application] → [GX Works2] → [GX Works2]. ■ Creating a new project A project consists of programs, device comments, and parameters. Operating procedure A project tree and a ladder screen are displayed.
Page 21
■ Creating a sequence program Operating procedure Coil Y0 is displayed. Enter Click the area to enter, and then enter "X". Enter "6" on the ladder input screen, and then button. click the Enter Click Enter device "X8", and then click the button.
Page 22
Coil Y6 is displayed. Enter Enter "Y". Enter "7" on the ladder input screen, and then button. click the Draw a line. Click the area to enter, and then enter Ctrl Ctrl Coil Y7 is displayed. ■ Converting a program Define the contents of the entered ladder block.
Page 23
■ Saving a project A program is saved in unit of project. Save the created project with a name. Operating procedure Select [Project] → [Save as]. Click the button. The project is saved. The "Save the project with a new name" screen is displayed.
Writing Programs Write the program to the CPU module. ■ 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 ■ Turning on the programmable controller Turn on the power supply module.
Page 25
The connection setting is completed. Click the button. oint If the screen shown below is displayed after step 8 is performed, check that the USB driver has When properly connected, the connection been installed correctly and that an appropriate completion message is displayed. connection cable (USB cable) is being used.
Page 26
■ Writing programs to the CPU module Operating procedure When the "Write to PLC" function is properly Select [Online] → [Write to PLC]. executed, the following message is displayed. Click the button. The "Online Data Operation" screen is displayed. Click "Parameter + Program". "Program" and "Parameter"...
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. ■ Executing the program written to the CPU module Use the "RESET/STOP/RUN" switch on the front of the CPU module for the operation. [The usage of the RESET/STOP/RUN switch] : Executes the sequence program operation.
Page 28
Executing the program Tilt the "RESET/STOP/RUN" switch on the front of the CPU module towards "RUN". LED display during the STOP status MODE: Green: ON RUN : OFF If the "RUN" LED turns on green, the program is running normally. LED display during the RUN status MODE: Green: ON RUN : Green: ON...
Page 29
■ 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. Operating procedure Set the operating program display Operation check 1 screen to the monitor mode.
Frequently-used functions This section explains functions frequently used in GX Works2. Clarifying programs <Comment> (P.29) Device comment Statement Note Monitoring device values and status <Device monitor> (P.34) Device batch monitor Entry data monitor Changing device values <Device test> (P.38) Bit device forced ON/OFF Word device current value change Changing running programs <Online program change>...
Page 31
Clarifying programs <Comment> Use comments to clarify the contents of a program. Statement Device comment Note The following are the three types of comment. Type Description Number of characters Device comment Describes roles and usage of each device. Statement Describes roles and usage of ladder blocks. Note Describes roles and usage of output instructions.
Page 32
■ Creating device comments Device comments can be entered from the list or on the ladder diagram. <Input operation from the list> <Input operation on the ladder diagram> Select [Edit] → [Documentation] → [Device Double-click [Global Device Comment] in the project list.
Page 33
Entering comments when creating ladders After the ladder entry operation, the "Device Select [Tool] → [Options]. Comment" screen is displayed and a comment can be entered. Select "Program Editor" → "Ladder" → "Device". Select "Enter label comment and device comment". Click the button.
Page 34
■ Creating statements Operating procedure Select [Edit] → [Documentation] → [Statement]. Double-click a ladder symbol to enter a statement. Select "In PLC". Enter a statement. Click the button. again to Select the [Statement] menu in Step ① finish the operation. If a statement is entered, the program needs to be "converted"...
Page 35
■ Creating notes Operating procedure Select [Edit] → [Documentation] → [Note]. Double-click an output instruction to enter a note. Select "In PLC". Enter a note. Click the button. again to finish Select the [Note] menu in Step ① the operation. If a note is entered, the program needs to be "converted"...
Page 36
Monitoring device values and status <Device monitor> The following are the two types of device monitor. Type Purpose Device batch monitor Used to monitor consecutive devices of one type. Used to simultaneously monitor separately-located devices in Entry data monitor the ladder or various devices on one screen. ■...
Page 37
■ 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>...
Page 38
<Device registration with ladder monitor display> Specify the range of the ladder diagram on the Drag and drop the selected range to the watch ladder monitor screen and register the devices in a window 1. batch. Select [Online] → [Monitor] → [Start Monitoring]. ⑤...
Page 39
oint 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 Select a device using , and then Y6 value. click the button. Select "function selection" screen > "CPU MON/TEST", and then click the button.
Page 40
Changing device values <Device test> 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). ■ Forced ON/OFF of bit device Turn on/off forcibly the bit device (X and Y) of the CPU module. Operating procedure Select [Online] →...
Page 41
■ 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]. Enter the device number to be changed. Enter the value to be changed.
Page 42
Changing running programs <Online program change> 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.
Checking errors <Error jump> 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. ■ PLC diagnostics The details of errors occurring can be checked from the PLC diagnostics. Operating procedure Help screen (example) Select [Diagnostics] →...
Page 44
■ Error jump Errors can be checked easily with the error jump function of PLC diagnostics. Operating procedure The cursor jumps to the step number of the Select [Diagnostics] → [PLC diagnostics]. sequence program corresponding to the selected error. Click the [Error Jump] button. ②...
Monitoring system status <System monitor> This function monitors the system status of the CPU module and other modules. Operating procedure Select [Diagnostics] → [System Monitor]. The "System monitor" screen is displayed. Main block Operation to selected module Connection channel list Block information list Module information list Description...
Page 46
oint ● 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"...
Page 50
Microsoft, Windows, Windows NT, and Windows Vista are registered trademarks or trademarks of Microsoft Corporation in the U.S. and other countries. Ethernet is a trademark of Xerox Corporation in the U.S. The SD and SDHC logos are trademarks. Other corporate and product names in the manual may be trademarks or registered trademarks of their respective companies.
Need help?
Do you have a question about the MELSEC-L Series and is the answer not in the manual?
Questions and answers