Summary of Contents for Mitsubishi Electric MELSEC Q Series
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). Ctrl oint you need to know. The comment display/hide setting can be switched.
Generic terms The following explains the terms used in this Quick start guide. Generic term Description Programmable controller Combination of the power supply module, the CPU module, the I/O modules, system and the base unit. Consecutively processes each control step based on the fixed order or Sequence control procedure.
Introduction This Quick start guide explains the basic procedures for the first-time use of the Mitsubishi programmable controller MELSEC-Q series CPU module (CPU module). You can easily understand how to use the programmable controller with this manual. Mounting and wiring modules 24VDC 100VAC Quick start guide...
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> Push-button switch Operation Power Power Data Program Creating and QX40...
Programmable controller usage example This example shows the programmable controller system in a beverage plant. Beverage plant 6 CPU module 4 Arm 4 Lifter IN OPERATION 1 Lamp 1 Start switch 5 Product counter S T O P 1 Conveyor 2 Sensor 36 Stopper The following explains the procedure for putting bottles in a case.
Introduction of 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 QCPU User's Manual (Hardware Design, Maintenance and Inspection) ..SH-080483ENG This manual explains specifications, settings, and maintenance methods for the CPU module, the power supply module, and the base unit.
Using programmable controllers The programmable controllers are installed with procedures as shown below. 1 Preparing for Operation (P.8) Preparing the necessary equipment. 2 System Configuration (P.9) Introducing equipment used for operations in this Quick start guide. 3 Mounting Modules (P.10) Mounting the CPU module and other modules on the base unit.
1 Preparing for Operation Preparing the necessary equipment 1 Programmable controller 2 Personal computer 3 GX Developer Version8 Install * Explanations for each module are on the next Windows-based PC page 4 USB cable 5 Lamp 6 Switch USB mini B type * GX Developer Version 8 needs to be installed in your personal computer in advance.
2 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) QX40 QY40P 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 8 9 A B C D E F 8 9 A B C D E F...
3 Mounting Modules Mount prepared modules on the base unit. A battery connector must be installed when using the CPU module for the first time. Caution The power supply must be disconnected when mounting modules. Mounting modules 1 Insert a module fixing Base unit Side view projection into a module...
4 Wiring Modules Wire the power supply module, the input module, and the output module. Caution The power supply must be disconnected when wiring modules. Reference For details of wiring precautions, refer to the following manual. QCPU User's Manual (Hardware Design, Maintenance and Inspection): SH-080483ENG ...
Wiring the output module The following shows an example of wiring the output module (QY40P). 0 1 2 3 4 5 6 7 8 9 A B C D E F Lamp 1 Signal: Y10 Lamp 2 Signal: Y1E Lamp 3 Signal: Y1F 12VDC...
5 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. Set the switch on the front of the CPU module to STOP.
6 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. 1 Bit device: handles one-bit information such as ON/OFF of a switch or a lamp. ON/OFF of a lamp ON/OFF of a switch Examples of bit device...
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. Reference This section explains the most basic devices and instructions.
Starting GX Developer Operating procedure Select [Start] [All Programs] [MELSOFT Application] [GX Developer]. After starting, the GX Developer main screen is displayed. Creating a new project Operating procedure 1 Select [Project] [New project] key + key) ( 2 Select QCPU (Q mode). 3 Select the QCPU to be used (Q02UCPU in this manual).
Entering a sequence program Operating procedure Enter 1 Click key). 2 Enter device X0. 3 Click the button. Enter 1 Click key). 2 Enter device X1. 3 Click the button. Enter 1 Click key). 2 Enter device Y10. 3 Click the button.
Enter 1 Click key). 2 Enter device X2. 3 Click the button. Enter 1 Click key). 2 Enter device Y1E. 3 Click the button. Coil Y1E is displayed. Draw a line. 1 Click key). 2 Drag and drop in the direction of the arrow.
Enter 1 Click key). 2 Enter device Y1F. 3 Click the button. Coil Y1F is displayed. Converting a program Define the contents of the entered ladder block. Operating procedure Select [Convert] [Convert] key). Perform the conversion to align entered ladders. When completed, the gray display turns to white. [Before conversion] [After conversion] The ladder is left-aligned.
Saving a project A program is saved in unit of project. Save the created project with a name. Operating procedure 1 Select [Project] [Save as] The "Save the project with a new name" screen is displayed. 2 Specify the save location. 3 Enter the name and title of the project.
7 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 QX40 QY40P 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7...
The "PC side I/F Serial setting" screen is displayed. 3 Select "USB". 4 Click the button. 5 Click "PLC module". 6 Click "No specification". 7 Click the button. When properly connected, the connection completion message is displayed. 8 Click the button.
Formatting the CPU module Before writing the program, format the CPU module to set it to the initial status. Operating procedure 1 Select [Online] [Format PLC memory]. The "Format PLC memory" screen is displayed. 2 Select "Program memory/Device memory" from "Target memory". 3 Click the button.
Writing programs to the CPU module Operating procedure 1 Select [Online] [Write to PLC] ( The "Write to PLC" screen is displayed. 2 Click "Param+Prog". 3 "Program" and "Parameter" are checked. 4 Click the button. When the Write to PLC function is properly executed, the following message is displayed. 5 Click the button.
8 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 Developer. Executing the program written to the programmable controller CPU Use the "RESET/STOP/RUN"...
Executing the program 1 Tilt the "RESET/STOP/RUN" switch toward "RUN" on the CPU module. LED display at the STOP status MODE: Green: ON RUN : OFF 2 If the "RUN" LED turns ON green, the program is running normally. LED display at the RUN status MODE: Green: ON RUN : Green: ON Caution...
Execute the monitor to display the "Monitor status" screen. The ON/OFF status of bit devices can be checked on the ladder screen. Contacts/outputs set to ON are displayed in blue. Right after the program execution, bit devices X02, Y1E, and Y1F are lit blue due to the instructions from the program.
Troubleshooting When modules do not run normally, refer to the following troubleshooting information. Programmable controller troubleshooting First, check the following points. 1) The ON/OFF status of the power supply 2) The mounting condition of the power supply module, the CPU module, and the I/O modules 3) The LED on the front of the CPU module Check the problem and respond according to the following list.
Troubleshooting when using GX Developer Check the problem and respond according to the following list. Problem Check Action Check the cables. The CPU module cannot Is the correct cable used? GX Developer Version 8 communicate with the Operating Manual: SH-080373E personal computer (GX Developer).
Checking errors in the CPU module If a problem occurs, errors can be checked by diagnosing the programmable controller CPU in GX Developer. Operating procedure 1 Select [Diagnostics] [PLC diagnostics]. PLC Diagnostics screen (example) (Present Error) 2 Click the button.
Frequently-used functions This section explains functions frequently used in GX Developer. Clarifying programs <Comment> (P.32) Device comment Statement Note Monitoring device values and status <Device monitor> (P.37) Device batch monitor Entry data monitor Changing device values <Device test> (P.41) Bit device forced ON/OFF Word device current value modification...
Clarifying programs <Comment> Use comments to clarify the contents of a program. Statement Note Device comment The followings 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.
2 Enter the start device number in "Device name". 3 Click the button. 4 Enter a comment in the "Comment" column. 5 When entering comments for other devices, enter a device number again as in the step 2. 6 Click to close the screen.
oint Entering comments when creating ladders Operating procedure 1 Select [Tools] [Options]. 2 Check "Continues during command write" of "Comment input" in the <Program common> tab. 3 Click the button. After the ladder input operation, the "Enter device comment" screen is displayed to enter a comment.
Creating statements Operating procedure 1 Select [Edit] [Documentation] [Statement] ( 2 Double-click a ladder block to enter a statement. 3 Select "Embedded". 4 Enter a statement on the "Enter line statements" screen. 5 Click the button. 6 Select the [Statement] menu in the step 1 again to finish the operation.
Creating notes Operating procedure 1 Select [Edit] [Documentation] [Note] ( 2 Double-click the output instruction symbol to enter a note. 3 Select "Embedded". 4 Enter a note on the "Enter Note" screen. 5 Click the button. 6 Select the [Note] menu in the step 1 again to finish the operation.
Monitoring device values and status <Device monitor> The followings 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.
The values of devices and the ON/OFF status of contacts/coils are displayed. 5 Click to close the screen. 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. <Specified device registration>...
4 Enter the device number on the "Register device" screen. 5 Select "Display format". 6 Click the button. 7 Click to close the screen. The specified device is registered on the "Entry data monitor" screen. 8 Click the button. 9 Click the button to finish monitoring.
3 Select [Window] [Tile horizontally]. *Set the "Entry data monitor" screen to the monitor stop status. The ladder screen and the "Entry data monitor" screen are displayed horizontally. 4 Click the start point of the ladder. 5 Click the end point of the ladder while pressing the (specify the range).
Changing device values <Device test> This function forces bit devices (such as X, Y, M, C) of the CPU module ON/OFF, or changes the current value of the word device (such as T, C, D) to the specified value. ...
Word device current value modification Changing the current value of the word device (such as T, C, D) in the CPU module to the specified value. Operating procedure 1 Select [Online] [Monitor] [Monitor (Write mode)] ( key) 2 Select [Online] [Debug] [Device test] ( key +...
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> Errors can be checked easily with the error jump function of PLC diagnostics. Operating procedure 1 Select [Diagnostics] [PLC diagnostics] from the GX Developer menu. 2 Click the button. The cursor jumps to the step number of the sequence program corresponding to the selected error.
Monitoring system status <System monitor> This function monitors the system status of the CPU module and other modules. Operating procedure Select menu [Diagnostics] [System monitor]. The "System Monitor" screen is displayed. 1 Installed status 2 Parameter status 3 Status 4 Base Description Installed status: Displays the modules installed on the base unit.
oint The information of each module can be checked from the "System Monitor" screen. Double-click the CPU module. The "PLC diagnostics" screen is displayed to check the operation status of the CPU module. Double-click each module (except the CPU module and power supply module).
Windows is either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies. ® In some cases, trademark symbols such as ' ' or ' ' are not specified in this manual.