L 08139 Ea
L 08139 Ea
L 08139 Ea
The following shows the symbols used in this Quick start guide with descriptions and examples.
This symbol explains information Select [View] → [Comment] ( Ctrl key + F5 key).
P oint you need to know. The comment display/hide setting can be switched.
This symbol describes content When mounting the module, the power must be turned
Caution that must be noted in operation. OFF.
Another procedure
corresponding to a drop-down Select [Online] → [Monitor] → [Monitor mode] ( F3
()
menu (icons and keys on the
key) ( ).
keyboard)
1
Generic terms
The following explains the terms used in this Quick start guide.
Contactor Generally called an electromagnetic contactor to break circuits and switch the
heater.
An electromagnet with a direct/alternating current solenoid valve. Connected
Solenoid valve to the output side of the programmable controller.
Ground Prevents electric shocks and malfunctions.
Transfers signals to other equipment. Combines such elements as breakers,
switches, protection equipment, relays, and programmable controllers.
Control panel
Receives signals from switches and sensors, and supply electricity to operate
motors and solenoid valves of the machines and equipment.
A two-winding transformer.
Isolation transformer The primary and secondary coil are wound separately to protect the secondary
load.
Contact An input used when creating a sequence program.
Coil An output used when creating a sequence program.
A location to store data such as ON/OFF, numeric values, and character
Device strings in the programmable controller.
Internal relay Breaks/connects the sequence circuit by switching ON/OFF.
Sequence program A program to perform sequence control.
Indicates a GX Developer project in this Quick start guide.
Project
Consists of programs, device comments, and parameters.
Setup information necessary to operate the programmable controller system.
Parameter
Modules and the network are set by writing parameters to the CPU module.
Setup information for modules, devices, and programs used in the
PLC parameter programmable controller system.
Numbers attached in order from the start of instruction in the sequence
Step number program.
One of the basic operation methods in programming.
Logical operations Logical operations consist of three basic operations: logical AND, logical OR,
and logical NOT.
An operation in which programmers search for and correct bugs in the
Debug sequence program.
2
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.
24VDC
100VAC
(Y1F)
Checking operations
Reference
z Precautions
Read "SAFETY PRECAUTIONS" in the QCPU User's Manual carefully and use the
programmable controllers safely.
z Types of CPU modules
This Quick start guide explains the usage examples for Universal model QCPU. For the
usage of other CPU modules, refer to the following manuals and be aware of the
differences.
QCPU User's Manual (Hardware Design, Maintenance and Inspection):
SH-080483ENG
Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program
Fundamentals): SH-080808ENG
QnUCPU User's Manual (Function Explanation, Program Fundamentals):
SH-080807ENG
QCPU Programming Manual (Common Instructions): SH-080809
QnACPU Programming Manual (Common Instructions): SH-080810
Caution
This Quick start guide explains operations in the programmable controller system described
in "2 System Configuration" (P.9).
Read the manuals referred in the following page when you design or manage the system.
Introduction of related manuals (P.6)
3
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.
Push-button switch
Operation
Memory
Output interface
Input interface
Power Power
Data
Program
Creating and
QX40 QY40P
debugging programs
NC
12VDC
24VDC 24VDC
4mA 0 . 1A
4
Programmable controller usage example
This example shows the programmable controller system in a beverage plant.
IN OPERATION
1 Lamp
1 Start switch 5 Product
counter
CONTROL
START COUNTER
STOP
1 Conveyor 2 Sensor
36 Stopper
1 When the switch is turned ON, the "IN OPERATION" lamp is lit, and the conveyor is set in
operation.
2 When the conveyor brings a bottle case to a particular position, the sensor senses it.
3 When the bottle case is sensed, the stopper operates to stop it.
4 The lifter goes up, the arm moves forward, and the lifter goes down to put bottles in the case.
5 One is added to the value in the product counter.
6 When the CPU module concludes that the above procedure is completed, the stopper goes down
to let the cases flow.
Repeat procedures 2 to 6.
5
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.
6
Using programmable controllers
The programmable controllers are installed with procedures as shown below.
Mounting the CPU module and other modules on the base unit.
Wiring the power supply module, the CPU module, and the I/O modules.
6 Programming (P.14)
7
1 Preparing for Operation
Preparing the necessary equipment
Install *
Explanations for each
module are on the next Windows-based PC
page
Reference
z GX Developer, the design and maintenance tool for Mitsubishi programmable controller, is
necessary to set up programmable controllers and create sequence programs.
z For the installation and operation of GX Developer, refer to the following manuals.
GX Developer Version 8 Operating Manual (Startup): SH-080372E
8
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.
1
0
1
0 4
1
2
2
3
3
2 5
4
5
4
5
6
6
7
7
8
8
3 9
A
9
A
B
B
C
C
D
D
E
E
6 F
COM
F
COM
NC
12VDC
24VDC 24VDC
4mA 0 . 1A
* Wires to the power supply module and the power of the I/O modules are omitted.
MR-J3USBCBL3M
6 Connection cable (USB cable)
(USB A type - USB mini B type)
9
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
Mounting modules
Side view
Complete
P oint
z Installing a battery in the CPU module
2
2 Insert the connector of Connector of
battery into the connector battery Battery
of CPU module.
10
4 Wiring Modules
Wire the power supply module, the input module, and the output module.
Caution
Reference
100VAC power
supply to the
power input
terminals. 24V
ERR
ERR
24G 24VDC
0.5A
(FG) 2 FG
100VAC
(LG) 2 LG
2 Connect the LG
and FG terminals. AC
N 1 INPUT
L
100-120VAC
Ground
wire
Grounding
Switch 1
Signal: X0
Switch 2
Signal: X1
Switch 3
Signal: X2
NC
24VDC
4mA
11
Wiring the output module
The following shows an example of wiring the output module (QY40P).
01234567
89ABCDEF
Lamp 1
Signal: Y10
L 1
2
3
4
Lamp 2 5
Signal: Y1E 5
7
L
8
9
Lamp 3 10
11
Signal: Y1F
12
L 13
14
15
16
17
18
12VDC
24VDC
0 . 1A
P oint
Wire the power supply lines separately for the I/O equipment and the programmable
controller as shown below.
T1
I/O power supply
I/O equipment
Inside of control panel
12
5 Checking Power Supply
Check that the power supply runs normally after configuring the system, mounting modules, and
wiring.
Operating procedure
1. Check before turning ON the power supply.
• Wiring of the power supply
• Power supply voltage
RESET/STOP/RUN
3. Supply power.
P oint
z Troubleshooting
1 When the "POWER" LED, "MODE" LED are OFF or flashing, refer to the following page.
Troubleshooting (P.28)
13
6 Programming
Create a program (sequence program) for sequence control.
1. 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.
2 Word device: handles 16-bit information such as numeric values and character strings.
14
2. 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
Creating a program
Create a sequence program.
The following shows how to create a sequence program with basic devices and instruction symbols
for sequence control.
The following devices and instruction symbols are used.
• Input: X device
• Output: Y device
• Instruction symbols: , ,
X0 0
0
Y10
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
A
A
B
B
C
C
F
E
D
F
E
Y1E
X1 COM
NC COM
12VDC
24VDC
24VDC
4mA 0 . 1A
X0 X1
Y1F
0 <Y10>
X2 X2
3 <Y1E>
<Y1F>
6 [END]
15
Starting GX Developer
Operating procedure
Select [Start] [All Programs]
[MELSOFT Application]
[GX Developer].
Operating procedure
1 Select [Project]
[New project]
( key + key) ( ).
16
Entering a sequence program
Operating procedure
1. Enter .
1 Click ( key).
2. Enter .
1 Click ( key).
3. Enter .
1 Click ( key).
17
4. Enter .
1 Click ( key).
5. Enter .
1 Click ( key).
6. Draw a line.
1 Click ( key).
18
7. Enter .
1 Click ( key).
Converting a program
Define the contents of the entered ladder block.
Operating procedure
Perform the conversion to align entered ladders. When completed, the gray display turns to white.
[Before conversion]
[After conversion]
19
Saving a project
A program is saved in unit of project.
Save the created project with a name.
Operating procedure
20
7 Writing Programs
Write the program to the CPU module.
0
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
A
A
B
B
C
C
D
D
E
E
F
F
COM
COM
NC
12VDC
24VDC 24VDC
4mA 0 . 1A
Operating procedure
21
The "PC side I/F Serial setting" screen is displayed.
3 Select "USB".
∗ When the screen on the right is displayed, check the system and
the settings.
Troubleshooting (P.28)
22
Formatting the CPU module
Before writing the program, format the CPU module to set it to the initial status.
Operating procedure
P oint
When data such as programs and parameters are already stored in the CPU module, they
are deleted. Thus the necessary data should be read from the programmable controller
CPU and saved as a project before executing the Format PLC memory function.
23
Writing programs to the CPU module
Operating procedure
1 Select [Online]
[Write to PLC] ( ).
2 Click "Param+Prog".
3 "Program" and "Parameter"
are checked.
When the Write to PLC function is properly executed, the following message is displayed.
P oint
z PLC parameter
The PLC parameter is necessary to start the CPU module. The default values are used in
this system configuration.
For details of setting parameters, refer to the following manuals.
Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program
Fundamentals): SH-080808ENG
24
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.
Operating procedure
1. Resetting the CPU module
1 Check the LED status before resetting the CPU module.
[LED display before resetting]
MODE: Green: ON
RUN : OFF
ERR.: Red: Flashing slow
2 Tilt the "RESET/STOP/RUN" switch toward "RESET" on the front of the CPU module.
(for over a second)
[Resetting] Hold for over a second
MODE: Green: ON
RUN : OFF
ERR.: Red: Flashing fast
3 After the flash, "ERR." LED turns OFF, then release the switch.
RESET/STOP/RUN [Resetting completed]
switch MODE: Green: ON
RUN : OFF
ERR.: OFF
Reference
When the flashing "ERR." LED does not turn OFF, refer to the following page.
Troubleshooting (P.28)
25
2. 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
MODE: Green: ON
RUN : Green: ON
Caution
Do not use pointed tools such as a screwdriver when operating the switch.
They may damage the switch.
1. Operation check 1
Turn ON the switch X0. The output lamp Y10 stays OFF and the output lamp Y1E and Y1F
stay ON.
2. Operation check 2
Turn ON the switch X1. The output lamp Y10 turns ON.
3. Operation check 3
Turn ON the switch X2. The output lamp Y1E and Y1F turn OFF.
Operating procedure
1. Set the operating program display screen to the monitor mode.
26
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.
Displayed in blue
Displayed in blue
2. Operation check 1
1 Double-click X0 while pressing
Displayed in blue the key X0 turns ON.
Displayed in blue
3. Operation check 2
2 Double-click X1 while pressing
the key X1 turns ON.
Displayed in blue
Displayed in blue
Y10 turns ON.
4. Operation check 3
3 Double-click X2 while pressing
Displayed in blue the key X2 turns ON.
Displayed in blue
Y1E and Y1F turn OFF.
P oint
While pressing the Shift key, double-click devices set to ON in Operation checks 1 and 2
to turn them OFF.
27
Troubleshooting
When modules do not run normally, refer to the following troubleshooting information.
The "POWER" LED is Is the power supply module Wire and mount the module properly.
OFF after turning ON the properly wired and 3 Mounting Modules (P.10)
power supply module. mounted? 4 Wiring Modules (P.11)
Are programs and PLC Write programs and parameters to the CPU
parameters written to the module.
CPU module? 7 Writing Programs (P.21)
Reference
28
Troubleshooting when using GX Developer
Check the problem and respond according to the following list.
29
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].
(Present Error)
2 Click the button.
(Error log)
2 Click the button.
30
Frequently-used functions
This section explains functions frequently used in GX Developer.
31
Clarifying programs <Comment>
Use comments to clarify the contents of a program.
Statement
Note
Device
comment
P oint
Select [View] → [Comment] ( Ctrl key + F5 key) to switch the comment display/hide
setting.
Operating procedure
1 Double-click [COMMENT]
under [Device comment]
in the project list.
32
2 Enter the start device number
in "Device name".
Operating procedure
33
P oint
z Entering comments when creating ladders
Operating procedure
After the ladder input operation, the "Enter device comment" screen is displayed to enter a
comment.
34
z Creating statements
Operating procedure
3 Select "Embedded".
If a statement is entered, a program needs to be "converted" to reflect the input. For details on the
conversion, refer to the following page.
6 Programming - Converting a program (P.19)
P oint
The followings are the two types of statement.
z Integrated (Embedded) statement
Integrated statements can be written to/read from the CPU module.
z Peripheral (Separate) statement
The program memory capacity can be saved since peripheral statements are not written to
the CPU module. "*" is prefixed to the peripheral statement in the program.
35
z Creating notes
Operating procedure
3 Select "Embedded".
P oint
The followings are the two types of note.
z Integrated (Embedded) note
Integrated notes can be written to/read from the CPU module.
z Peripheral (Separate) note
The program memory capacity can be saved since peripheral notes are not written to the
CPU module. "*" is prefixed to the peripheral note in the program.
36
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.
Operating procedure
* The "Device batch monitor" screen can be displayed by selecting [Device batch] with a right click
on the ladder screen.
37
The values of devices and the ON/OFF status of contacts/coils are displayed.
Operating procedure
*The "Entry data monitor" screen can be displayed by selecting [Entry data monitor] with a right click on
the ladder screen.
38
4 Enter the device number
on the "Register device" screen.
5 Select "Display format".
6 Click the button.
The values of devices and the ON/OFF status of contacts/coils are displayed.
*The "Entry data monitor" screen can be displayed by selecting [Entry data monitor] with a right click on
the ladder screen.
39
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.
40
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.
Operating procedure
* The "Device test" screen can be displayed by selecting [Device test] with a right click on the ladder
screen.
P oint
z Forcing a bit device ON/OFF with the key operation
Double-click the specified bit device on the ladder monitor screen while pressing the Shift
41
z 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
* The "Device test" screen can be displayed by selecting [Device test] with a right click on the ladder
screen.
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.
Operating procedure
2 Add a contact.
3 Select [Convert]
[Convert (Online change)]
( key + key).
When the online program change has been properly completed, the following message is displayed.
Caution
The program in the CPU module and the program to be modified in GX Developer must be
the same to perform the online program change. When you are not sure, verify the
programs in advance or modify the ladder after performing the "Read from PLC" function.
43
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.
The cursor jumps to the step number of the sequence program corresponding to the selected error.
44
Monitoring system status <System monitor>
This function monitors the system status of the CPU module and other modules.
Operating procedure
2 Parameter status
3 Status
4 Base
No. Description
2 Parameter status: Displays the parameter setting status written to the CPU module.
45
P oint
z The information of each module can be checked from the "System Monitor" screen.
46
MEMO
47
MEMO
48