Gxworks 2 Simple Project
Gxworks 2 Simple Project
(Simple Project)
-SW1DNC-GXW2-E
SAFETY PRECAUTIONS
(Always read these instructions before using this product.)
Before using this product, thoroughly read this manual and the relevant manuals introduced in this manual
and pay careful attention to safety and handle the products properly.
The precautions given in this manual are concerned with this product. For the safety precautions of the
programmable controller system, refer to the Users Manual for the CPU module.
In this manual, the safety precautions are ranked as " WARNING" and " CAUTION".
Note that the CAUTION level may lead to serious consequences according to the circumstances.
Always follow the precautions of both levels because they are important for personal safety.
Please save this manual to make it accessible when required and always forward it to the end user.
[Design Instructions]
WARNING
When data change, program change, or status control is performed from a personal computer to a running
programmable controller, create an interlock circuit outside the programmable controller to ensure that the whole
system always operates safely.
Furthermore, for the online operations performed from a personal computer to a programmable controller CPU, the
corrective actions against a communication error due to such as a cable connection fault should be predetermined as
a system.
CAUTION
The online operations performed from a personal computer to a running programmable controller CPU (Program
change when a programmable controller CPU is RUN, operating status changes such as forced input/output
operation and RUN-STOP switching, and remote control operation) must be executed after the manual has been
carefully read and the safety has been ensured.
When changing a program while a programmable controller CPU is RUN, it may cause a program corruption in some
operating conditions. Fully understand the precautions described in GX Works2 Version 1 Operating Manual
(Common) before use.
The positioning test functions of OPR, JOG, inching or positioning data for QD75/LD75 positioning module must be
executed with the programmable controller set to STOP after the manual has been carefully read and the safety has
been ensured. Specially when executing the function on the network system, ensure the safety thoroughly since the
machinery whose operation cannot be checked by an operator may be activated. The operation failure may cause the
injury or machine damage.
A-1
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.
(2) The PRODUCT has been designed and manufactured for the purpose of being used in general
industries.
MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT LIMITED
TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT, WARRANTY, TORT,
PRODUCT LIABILITY) FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO
PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR USED IN APPLICATION NOT
INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS, OR WARNING CONTAINED IN
MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY MANUALS, TECHNICAL BULLETINS AND
GUIDELINES FOR the PRODUCT.
("Prohibited Application")
Prohibited Applications include, but not limited to, the use of the PRODUCT in;
Nuclear Power Plants and any other power plants operated by Power companies, and/or any other
cases in which the public could be affected if any problem or fault occurs in the PRODUCT.
Railway companies or Public service purposes, and/or any other cases in which establishment of a
special quality assurance system is required by the Purchaser or End User.
Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as Elevator
and Escalator, Incineration and Fuel devices, Vehicles, Manned transportation, Equipment for
Recreation and Amusement, and Safety devices, handling of Nuclear or Hazardous Materials or
Chemicals, Mining and Drilling, and/or other applications where there is a significant risk of injury to
the public or property.
Notwithstanding the above, restrictions Mitsubishi may in its sole discretion, authorize use of the
PRODUCT in one or more of the Prohibited Applications, provided that the usage of the PRODUCT is
limited only for the specific applications agreed to by Mitsubishi and provided further that no special
quality assurance or fail-safe, redundant or other safety features which exceed the general
specifications of the PRODUCTs are required. For details, please contact the Mitsubishi representative
in your region.
A-2
REVISIONS
The manual number is written at the bottom left of the back cover.
A-3
Print date Manual number Revision
A-4
Print date Manual number Revision
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.
A-5
INTRODUCTION
Thank you for purchasing the Mitsubishi integrated FA software, MELSOFT series.
Before using the product, thoroughly read this manual to develop full familiarity with the functions and performance
to ensure correct use.
CONTENTS
1 OVERVIEW 1 - 1 to 1 - 6
A-6
3.5 Diagnosing the programmable controller 3 - 36
3.7 Printing 3 - 39
3.7.1 Setting the printer ....................................................................................................................... 3 - 39
3.7.2 Previewing a program................................................................................................................. 3 - 40
3.7.3 Printing a program ...................................................................................................................... 3 - 42
3.7.4 Previewing a PLC Parameter ..................................................................................................... 3 - 43
3.7.5 Printing a PLC Parameter........................................................................................................... 3 - 44
3.8 Saving a Project 3 - 45
4.7 Printing 4 - 30
A-7
MANUALS
Related manuals are separately issued according to the purpose of their functions for GX Works2.
Related manuals
The manuals related to this product are shown below.
Refer to the following tables when ordering required manuals.
1) Operation of GX Works2
Manual number
Manual name
(Manual code)
2) Structured Programming
Manual number
Manual name
(Manual code)
A-8
3) Operation of iQ Works
Manual number
Manual name
(Manual code)
The Operating Manuals are included on the CD-ROM of the software package in a PDF file format.
Manuals in printed form are sold separately for single purchase. Order a manual by quoting the manual
number (model code) listed in the table above.
A-9
Purpose of this manual
This manual explains the operation for creating sequence programs in Simple project, one of the
functions supported with GX Works2.
Manuals for reference are listed in the following table according to their purpose.
For information such as the contents and manual number of each manual, refer to the list of 'Related
manuals'.
1) Installation of GX Works2 and USB driver
GX Works2 GX Works2 Version 1
Purpose Installation Operating Manual
Instructions Common
2) Operation of GX Works2
GX Works2 GX Works2 Version 1
Beginners Manual Operating Manual
Purpose Simple Project Intelligent
Simple Structured Structured
Common Function Function
Project Project Project
Block Module
A - 10
3) Operations in each programming language
For details of instructions used in each programming language, refer to the section 4 / section 5 on
the next page.
GX Works2 GX Works2 Version 1
GX Works2 Beginners Manual Operating Manual
Purpose Installation Intelligent
Instructions Simple Structured Simple Structured
Common Function
Project Project Project Project
Module
Ladder Details
Outline
Simple *1
SFC Details
Project Outline
ST Details
Outline
Ladder Details
Outline
*1
SFC Details
Outline
Structured
Project
Structured Ladder/FBD Details
Outline
ST Details
Outline
A - 11
4) Details of instructions in each programming language (for QCPU (Q mode)/LCPU)
MELSEC-
MELSEC-
Q/L/F Manual for
MELSEC-Q/L Structured Q/L MELSEC-Q/L/QnA
Structured module to
Programming Manual Programming Programming Manual
Purpose Programming be used
Manual
Manual
Common Special Application Common PID Control
Fundamentals SFC -
Instructions Instructions Functions Instructions Instructions
Learning details of
programmable
All controller CPU
Details
languages error codes,
special relays, and
special registers
Learning the types
and details of
Details
common
instructions
Learning the types
and details of
instructions for Details
intelligent function
Using modules
ladder
language Learning the types
and details of
Details
instructions for
network modules
Learning the types
and details of
instructions for the Details
PID control
function
Learning details of
Using specifications,
SFC functions, and Details
language instructions of
SFC (MELSAP3)
Learning the
fundamentals for
creating a Details
structured
program
Learning the types
and details of
Details
common
instructions
Learning the types
and details of
Using instructions for Details
Ladder/ modules
FBD or ST Learning the types
language and details of
Details
instructions for Outline
network modules
Learning the types
and details of
instructions for the Details
PID control Outline
function
Learning the types
and details of
Details
application
functions
A - 12
5) Details of instructions in each programming language (for FXCPU)
MELSEC-
Q/L/F
Structured FXCPU Structured Programming Manual FXCPU Programming Manual
Programming
Purpose Manual
Basic & FX0, FX0S, FX1S, FX1N, FX3S,
Device & Application
Fundamentals Applied FX0N, FX1, FX2N, FX1NC, FX3G, FX3U,
Common Functions
Instruction FXU, FX2C FX2NC FX3GC, FX3UC
Learning the types
and details of
Using ladder basic/application
instructions, Details Details Details
language
descriptions of
devices and
parameters
Learning details of
Using SFC specifications,
language functions, and Details Details Details
instructions of SFC
Learning the
fundamentals for
creating a Details
structured program
Learning the
descriptions of
Using devices, Details
Structured parameters, and
Ladder/FBD error codes
or ST Learning the types
language and details of
sequence Details
instructions
Learning the types
and details of
application Details
instructions
A - 13
How to read this manual
Chapter heading
Section title
Reference location
Section title
* Since the above page was created for explanation purpose, it differs from the actual page.
A - 14
This manual also uses the following columns:
This explains notes for requiring attention or useful functions relating to the information given on the
same page.
Restrictions
This explains restrictions relating to the information given on the same page.
Keyboard key
A - 15
GENERIC TERMS AND ABBREVIATIONS IN THIS MANUAL
This manual uses the generic terms and abbreviations listed in the following table to discuss the
software packages and programmable controller CPUs. Corresponding module model names are also
listed if needed.
Generic terms and
Description
Abbreviations
Generic product name for SWnDNC-GXW2-E model
GX Works2
(n: version)
Existing application -
Generic product name for SWnD5C-GPPW-E, SWnD5C-GPPW-EA, SWnD5C-GPPW-EV, and
GX Developer SWnD5C-GPPW-EVA
(n: version)
Generic product name for SWnD5C-GPPW-E, SWnD5C-GPPW-EA, SWnD5C-GPPW-EV, and
GX Simulator SWnD5C-GPPW-EVA
(n: version)
iQ Works Abbreviation for MELSOFT iQ Works
Personal computer Generic term for personal computers on which Windows operates
Q series Abbreviation for Mitsubishi programmable controller MELSEC-Q series
L series Abbreviation for Mitsubishi programmable controller MELSEC-L series
FX series Abbreviation for Mitsubishi programmable controller MELSEC-F series
Basic model QCPU Generic term for Q00J, Q00, Q01
High Performance model
Generic term for Q02, Q02H, Q06H, Q12H, and Q25H
QCPU
Generic term for Q00UJ, Q00U, Q01U, Q02U, Q03UD, Q03UDE, Q03UDV, Q04UDH,
Q04UDEH, Q04UDV, Q04UDPV, Q06UDH, Q06UDEH, Q06UDV, Q06UDPV, Q10UDH,
Universal model QCPU
Q10UDEH, Q13UDH, Q13UDEH, Q13UDV, Q13UDPV, Q20UDH, Q20UDEH, Q26UDH,
Q26UDEH, Q26UDV, Q26UDPV, Q50UDEH, and Q100UDEH
Generic term for Basic model QCPU, High Performance model QCPU, Process CPU,
QCPU (Q mode)
Redundant CPU, and Universal model QCPU
LCPU Generic term for L02S, L02S-P, L02, L02-P, L06, L06-P, L26, L26-P, L26-BT, and L26-PBT
Generic term for FX0S, FX0, FX0N, FX1S, FX1N, FX1NC, FXU, FX2C, FX2N, FX2NC, FX3S, FX3G,
FXCPU
FX3GC, FX3U, and FX3UC
CPU module Generic term for QCPU (Q mode), LCPU, and FXCPU
SFC Generic term for MELSAP3, MELSAP-L, and FX series SFC
A - 16
1
OVERVIEW
1 OVERVIEW 2
CREATED PROGRAM
CONFIGURATION
This manual explains the procedures to actually create a program (Simple Project) using GX Works2 and
AND SYSTEM
operate the programmable controller using the created program.
If this is your first time creating a Simple Project using GX Works2, you are recommended to read this manual
first, and then use GX Works2.
Refer to the following manual for Structured Projects: 3
GX Works2 Beginners Manual (Structured Project)
PROGRAM OF
CREATING A
LADDER
4
1.1 Simple Project and Structured Project . . . . . . . . . . . . . . . . . . . 1-2
PROGRAM OF SFC
1.2 Program Creation Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
CREATING A
1-1
GX Works2
1 OVERVIEW
Simple Project
In a Simple Project, you can create sequence programs using instructions for the Mitsubishi
programmable controller CPU.
The Simple Project offers the same operability for program creation as the conventional GX Developer.
You can create sequence programs using the following programming languages:
Graphic languages
Ladder
Use this graphic language to describe programs as ladders consisting of contacts, coils, etc.,
using the same operating procedures as the conventional GX Developer.
SFC
Use this graphic language to describe sequence control in a way easy to understand.
Describe steps which specify the processing and transition conditions which specify conditions
for proceeding to the next step.
You can describe steps and transition conditions using the ladder language.
Text language
ST (Structured Text)
This text language allows you to describe controls by syntax including alternative sequences
offered by conditional sentences and repetition offered by repetition sentences in the same way
as high-level languages such as the C language. Accordingly, you can briefly create programs
easy to look at.
Structured Project
You can create sequence programs using the following programming languages:
Graphic languages
Ladder
Use this graphic language to describe programs as ladders consisting of contacts, coils, etc.,
using the same operating procedures as the conventional GX Developer.
Structured Ladder/FBD
Structured Ladder is created based on the relay circuit design technology. Because this
language is easy to understand intuitively, it is used generally for sequence programs.
Every ladder always starts from a base line on the left.
Structured Ladder consists of contacts, coils, function blocks and functions which are connected
each other with vertical lines and horizontal lines.
FBD connects functions and function blocks with ruled lines to describe ladders.
SFC
Use this graphic language to describe sequence control in a way easy to understand.
Describe steps which specify the processing and transition conditions which specify conditions
for proceeding to the next step.
You can describe steps and transition conditions using the ladder language.
1-2
1.1 Simple Project and Structured Project
1
Text language
ST (Structured Text)
This text language allows you to describe controls by syntax including alternative sequences
OVERVIEW
offered by conditional sentences and repetition offered by repetition sentences in the same way
as high-level languages such as the C language. Accordingly, you can briefly create programs
easy to look at.
2
CREATED PROGRAM
Restrictions
CONFIGURATION
AND SYSTEM
The FXCPU does not support the ST language in Simple Project, and does not support the ladder language
and SFC language in Structured Project.
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
1-3
GX Works2
1 OVERVIEW
1. Opening a project
Procedure Reference
Start GX Works2. 3.2.1
Create a new Simple Project. Or open an existing Simple Project. 3.2.3
2. Setting parameters
Procedure Reference
Set the parameters. 3.2.4
3. Setting labels
Procedure Reference
Define global labels. 3.2.5
Define local labels. --
1-4
1.2 Program Creation Procedure
6.
OVERVIEW
Connecting the programmable controller CPU
Procedure Reference
Connect the personal computer to the programmable controller CPU.
Set the connection destination.
3.3.1 2
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
7. Writing to the programmable controller
Procedure Reference
Write the parameters to the programmable controller CPU.
3.3.2
3
Write the program to the programmable controller CPU.
PROGRAM OF
CREATING A
LADDER
8. Checking operations
Procedure Reference 4
Monitor the sequence program execution status and device contents, and check 3.4
PROGRAM OF SFC
operations. 4.4
Check for errors in the programmable controller. 3.5
CREATING A
9. Printing
Procedure Reference
3.7
Print the program and parameters.
4.7
10.Exiting GX Works2
Procedure Reference
Save the project. 3.8
Exiting GX Works2. 3.9
1-5
GX Works2
1 OVERVIEW
MEMO
1-6
1
OVERVIEW
2 CREATED PROGRAM AND 2
CREATED PROGRAM
SYSTEM CONFIGURATION
CONFIGURATION
AND SYSTEM
This chapter explains the system configuration and gives an overview of the program created by using this
manual.
3
PROGRAM OF
CREATING A
LADDER
4
2.1 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
PROGRAM OF SFC
2.2 Overview of Program Creation. . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
CREATING A
2-1
GX Works2
GX Works2
USB cable
Program
Operation overview Reference
language
Ladder Chapter 3
You can create the Inline ST Box that displays ST language programs in the
Ladder Editor, and edit and monitor ST language programs.
Refer to the following manual for the details.
GX Works2 Version 1 Operating Manual (Simple Project)
SFC Chapter 4
2-2
1
OVERVIEW
3 CREATING A PROGRAM OF 2
CREATED PROGRAM
LADDER
CONFIGURATION
AND SYSTEM
This chapter explains how to create a program of Ladder with a Simple Project through a simple program
example.
3
PROGRAM OF
CREATING A
LADDER
4
3.1 Created Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
PROGRAM OF SFC
3.2 Creating a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
3.3 Writing a Project to the programmable controller . . . . . . . . . 3-19
CREATING A
3.4 Monitoring Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-27
3.5 Diagnosing the programmable controller . . . . . . . . . . . . . . . . 3-36
3.6 Reading a Project from programmable controller . . . . . . . . . 3-37
3.7 Printing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-39
3.8 Saving a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-45
3.9 Exiting GX Works2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46
3-1
GX Works2
When X0 turns ON, the programmable controller turns ON Y10, and then turns OFF Y10 1 second
later.
When X1 turns ON, the programmable controller transfers K10 to D0 (which is defined with the Label
"VAR1").
When X2 turns ON, the programmable controller transfers K20 to D0 (which is defined with the Label
"VAR1").
1
3.2 Creating a Project
OVERVIEW
Create a project using ladder programs.
CREATED PROGRAM
1.
CONFIGURATION
Select the software package menu to be
AND SYSTEM
started.
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
2. The selected software package is started.
CREATING A
You can double-click the icon on the desktop to start the software package.
Double-click the
[GX Works2] icon.
Title bar
Menu bar
Toolbar
Function Block selection
Navigation Window window
Displays the list of
function blocks available
to program creation.
Output window
Displays the compile
View selection area result, error information
Allows selection of the and warning information.
view to be displayed.
Status bar
1
3.2.3 Creating a new project
OVERVIEW
1. Perform either procedure below to display the
New Project screen.
Select [Project] [New]. 2
CREATED PROGRAM
Click (New).
CONFIGURATION
AND SYSTEM
3
2. Select the "Series", "Module Type", "Project
Type" and "Language" from the list boxes for
PROGRAM OF
CREATING A
the new project to be created.
LADDER
Check "Use Label" when using labels in the program
to be created.
After the setting, click the button. 4
Settings
PROGRAM OF SFC
Series : QCPU (Q mode)
CREATING A
Module Type : Q02/Q02H
Project Type : Simple Project
Language : Ladder
When using labels in Simple project, check "Use Label" on the New Project screen.
1
3.2.4 Setting parameters
Set parameters.
OVERVIEW
1. Double-click "Parameter" "PLC Parameter"
on the Project view to display the Q Parameter
Setting screen. 2
CREATED PROGRAM
Double-click it.
CONFIGURATION
AND SYSTEM
3
PROGRAM OF
CREATING A
LADDER
2. Click the button to determine the
4
settings and close the screen.
PROGRAM OF SFC
The parameters remain unchanged from the initial
CREATING A
setting in the example in this manual.
Refer to the following manuals for the details on
parameter setting:
GX Works2 Version 1 Operating Manual
(Common)
Click the [End] Manual of the programmable controller
button after being used
finishing the setting.
Manual of the Network being used
Double-click it.
1
Restrictions
Characters available for the label name
You can enter up to 32 characters as the label name.
OVERVIEW
However, note that the following label name will cause a compile error.
Label name which contains space
Label name whose first character is a number
Label name equivalent to a device name
For other characters unavailable for the label name, refer to the following manual. 2
CREATED PROGRAM
GX Works2 Version 1 Operating Manual (Common)
CONFIGURATION
AND SYSTEM
4. Directly input the "Date Type" on the Global
Label Setting screen.
Settings 3
Date Type: Word [Signed]
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
You can click to display the Type Selection screen, and then select the Types on this screen.
Settings*1
1) Libraries : ALL
2) Type Class : Simple Types
3) Types : Word [Signed]
4) Array Element : Not checked
*1: Set "Libraries", "Type Class", "Types" and "Array
Element" in this order.
Refer to the following manual for the details on the global label/local label setting procedure:
GX Works2 Version 1 Operating Manual (Simple Project)
Refer to the following manual for the details on programming global labels and local labels:
MELSEC-Q/L/F Structured Programming Manual (Fundamentals)
1
3.2.6 Creating a program
OVERVIEW
You can select the following modes when creating a program.
"Overwrite" mode or "Insert" mode
This section explains the creation procedure in the "Overwrite" mode.
Every time you click the key, the mode is switched between "Overwrite" and "Insert". 2
CREATED PROGRAM
Select either mode as needed.
CONFIGURATION
"Write" mode or "Read" mode
AND SYSTEM
Select the "Write" mode when editing the ladders.
For selecting the "Write" mode, select [Edit] [Ladder Edit Mode] [Write Mode] from the menu
bar.
Or click (Write Mode).
Refer to the following manual for details of the "Overwrite" mode, "Insert" mode, "Write" mode and 3
"Read" mode.
GX Works2 Version 1 Operating Manual (Simple Project)
PROGRAM OF
CREATING A
1. Double-click "POU" "Program" "MAIN"
LADDER
"Program" on the Project view to display the
[PRG] MAIN screen.
4
PROGRAM OF SFC
CREATING A
Double-click it.
Click an icon on the Ladder toolbar to open the Enter Symbol screen for inputting a device or instruction.
Set a device or instruction, and click the button to display the corresponding ladder symbol or vertical
line in the cursor position.
Ladder tool bar
OVERVIEW
to display the Enter Symbol screen.
Directly input a device on the Enter Symbol screen,
and click the button to display the Open 2
Branch.
CREATED PROGRAM
Settings
CONFIGURATION
Y10
AND SYSTEM
5. Click (Coil) on the Ladder toolbar to display
the Enter Symbol screen. 3
Directly input a device on the Enter Symbol screen,
and click the button to display the Coil.
PROGRAM OF
CREATING A
Settings
LADDER
Y10
4
6. Click (Vertical Line) on the Ladder toolbar
PROGRAM OF SFC
to display the Enter Vertical Line screen.
CREATING A
Click the button to display the Vertical Line.
OVERVIEW
Make sure to ladder conversion and compile the created or edited program to make it a sequence program
executable in the programmable controller CPU.
Only ladder conversion is required, and compilation is not required when using the FXCPU or not using labels.
Refer to the following sections for ladder conversion and compile.
3.2.7 Converting ladder blocks 2
CREATED PROGRAM
3.2.8 Compiling a program
CONFIGURATION
If the following operation is performed after compilation, devices are displayed instead of labels.
AND SYSTEM
Select [View] [Device Display] [Device Display] to check the menu item.
(Note that the menu item is unchecked when you select [View] [Device Display] [Device Display] while
the menu item is checked.)
3
Devices are displayed
instead of labels.
PROGRAM OF
CREATING A
LADDER
4
Displaying labels and devices at the same time
PROGRAM OF SFC
Devices can be displayed at the same time in the label display mode by adding the corresponding option. Select
CREATING A
[Tool] [Options] to display the Options screen. Select "Program Editor" "Ladder" "Ladder Diagram" on
the Options screen, and check "Display labels and devices".
In the example below, X1 and D0 are displayed as labels.
<Label display>
1
3.2.8 Compiling a program
There are following two types of compiling. The compiling target is different between the two types.
OVERVIEW
Select "Rebuild All" for this example.
The "Rebuild All" procedure is described below.
Refer to the following manual for compiling:
GX Works2 Version 1 Operating Manual (Simple Project) 2
CREATED PROGRAM
Table 3.2 Compiling type and target program
CONFIGURATION
Target program to be compiled
AND SYSTEM
Converts non-compiled programs into sequence program.
Build
(Does not compile already compiled programs.)
Converts all programs into sequence program.
Rebuild All
(Compiles already compiled programs also.)
3
1. Select [Compile] [Rebuild All] to execute
"Rebuild All".
PROGRAM OF
CREATING A
You can click (Rebuild All) to execute "Rebuild
LADDER
All".
PROGRAM OF SFC
2. The screen shown on the left appears.
CREATING A
Click the button to execute "Rebuild All".
When you convert a ladder block, GX Works2 automatically compiles the program at the time of
conversion if labels are not used.
If labels are used, make sure to compile the created or edited sequence program after conversion so that
the created or edited sequence program will be an executable sequence program.
Refer to the following manual for the details on "Build", "Rebuild All":
GX Works2 Version 1 Operating Manual (Simple Project)
Compile status checking method
You can check the compile status on the Project view.
1
3.3 Writing a Project to the programmable controller
OVERVIEW
Write a project to the programmable controller CPU.
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
Connect the personal computer and the programmable controller with a cable, and set the connection
channel.
PROGRAM OF
Refer to the following manual for the details on setting when using another channel or using the FXCPU
CREATING A
for connection.
LADDER
Notebook personal computer
programmable controller (Q02HCPU)
4
PROGRAM OF SFC
USB cable
CREATING A
Setting the Transfer Setup
Set the channel to connect the personal computer to the programmable controller CPU (Q02HCPU)
with a USB cable.
Refer to the following manual for the details on setting using another channel:
GX Works2 Version 1 Operating Manual (Common)
Double-click it.
Click it.
OVERVIEW
a communication test with the programmable
controller through the specified connection
channel.
2
Click it.
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
3
PROGRAM OF
CREATING A
LADDER
7. When communication with the programmable 4
controller is finished normally, the left screen
PROGRAM OF SFC
appears, and the "PLC Type" field displays the
programmable controller CPU model name.
CREATING A
Click the button to close the screen.
If communication with the programmable controller
has failed, the screen below appears.
Check the connection destination, connection cable,
etc.
You can set two or more connection destinations and change them over if there are two or more
connection destinations.
1. Select "Connection1" in the Current
Connection on the Connection
Destination view, right-click it, and then
select the menu item "Add New Data".
The Add New Data screen will appear.
Settings
Data Name : Connection2
Set as Default Connection: Unchecked
For selecting the newly created connection destination, check "Set as Default Connection " while creating
the data, or set the newly created connection destination as the default connection destination as described
OVERVIEW
below.
Then, the newly created connection destination will be selected as the connection destination for
communication with the programmable controller CPU (for "Read from PLC", "Write to PLC", etc).
CREATED PROGRAM
Connections on the Connection
CONFIGURATION
Destination view, right-click it, and then
AND SYSTEM
select the menu item "Set as Default
Connection".
PROGRAM OF
CREATING A
LADDER
4
2. The connection destination set as the
PROGRAM OF SFC
default connection destination is
CREATING A
displayed in "Current Connection" on
the Connection Destination view.
Default Connection
Write the project data to the programmable controller CPU set as the connection destination in Section
3.3.1.
Click it.
1
Restrictions
In the case of FXCPU
OVERVIEW
The symbolic information is displayed only in the FX3U and FX3UC Series version 3.00 or later.
In the case of Simple project (with labels), data can be read from the FXCPU only in the FX3U and FX3UC Series
version 3.00 or later.
When data cannot be read from the FXCPU, carefully store projects written in the programmable controller.
2
CREATED PROGRAM
CONFIGURATION
3. The left screen is displayed.
AND SYSTEM
Click the button to
write the project (program).
PROGRAM OF
CREATING A
LADDER
If a program or parameters already exist in the programmable controller, the following screen appears.
Click the or button to overwrite the existing program or parameters.
4
PROGRAM OF SFC
When you click the button, GX Works2 overwrite the existing program or parameters without
displaying the overwrites confirmation screen for other data.
CREATING A
When parameters already exist When a program already exists
Writing Completed
1
3.4 Monitoring Operations
OVERVIEW
Execute "Monitor" to check the operations.
GX Works2 is able to simulate the programmable controller operations in offline mode.
Refer to the following manual for the simulation function:
GX Works2 Version 1 Operating Manual (Common) 2
CREATED PROGRAM
3.4.1 Monitoring a program
CONFIGURATION
AND SYSTEM
1. Click "Project" in the view selection area on the
Navigation window to display the Project view.
Click it. 3
PROGRAM OF
CREATING A
2.
LADDER
Double-click "POU" "Program" "MAIN"
"Program" on the Project view to display the
[PRG] MAIN screen.
4
PROGRAM OF SFC
CREATING A
Double-click it.
You can switch the programmable controller status between "RUN" and "STOP" using remote operation as
follows.
The Settings of the remote operation may vary depending on the programmable controller used.
Refer to the following manual for the details on remote operation:
GX Works2 Version 1 Operating Manual (Common)
Select [Online] [Remote Operation] to display the Remote Operation screen. You can switch the
programmable controller status between "RUN" and "STOP" on this screen.
Connection Channel
List information
Displays the connection
target information
currently set.
Specify Execution
Programmable Target
controller Status Allows you to set the
target station for
Displays the remote operation.
programmable controller Select "Currently
CPU status. Specified Station" for
this example.
Operation
Allows you to select the
programmable controller
CPU status to be set.
Select either "RUN",
"PAUSE" or "STOP" for
this example.
Operation during RUN
Allows you to set the
operations to be
executed to the device
memory and signal flow
when the
programmable
controller CPU is
switched to RUN.
Monitor status
OVERVIEW
GX Works2 displays the Monitor status while it is executing the work window monitor.
The Monitor status disappears when GX Works2 stops all types of monitoring.
The Monitor status indicates the programmable controller CPU, simulator scan time, RUN/STOP status, etc.
Scan status 2
CREATED PROGRAM
Select the Local Device monitor
CONFIGURATION
AND SYSTEM
USER status
ERR. status
RUN/STOP status
Connection status
3
Refer to the following manual for the details on "Monitor status":
PROGRAM OF
GX Works2 Version 1 Operating Manual (Common)
CREATING A
LADDER
Monitor status display
ON/OFF status display
GX Works2 displays the ON/OFF status as follows during monitoring.
4
OFF status *
PROGRAM OF SFC
ON status *
CREATING A
* GX Works2 adopts this display method only for the SET, RST, PLS, PLF, SFT, SFTP and MC
instructions and contact type comparison instructions.
As to monitoring of the RST instruction, GX Works2 displays the ON/OFF status of a reset
device.
Current value display
GX Works2 displays the monitored current value as follows.
Test operation
Forcing a contact ON/OFF
Double-click ( ) a monitored contact while pressing the key to force a device in the
programmable controller ON/OFF.
Changing the current value of a word device
Double-click ( ) a monitored word device while pressing the key to display the Modify Value
screen where you can change the current value.
5. Turn ON inputs X0, X1 and X2 in the programmable controller, and check the following
operations.
You can turn ON inputs X0, X1 and X2 using the test operation above.
When X0 turns ON, the programmable controller turns ON Y10, and then turns OFF Y10 1
second later.
X0 turns ON. It turns OFF 1 second later. The programmable controller turns ON Y10.
When X1 turns ON, the programmable controller transfers K10 to VAR1 (device: D0).
X1 turns ON. The programmable controller transfers K10 to VAR1.
When X2 turns ON, the programmable controller transfers K20 to VAR1 (device: D0).
X2 turns ON. The programmable controller transfers K20 to VAR1.
OVERVIEW
to reset the monitor status of the [PRG] MAIN
screen.
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
3
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
7. Set the programmable controller CPU to STOP.
Set the RUN/STOP switch on the programmable controller CPU to "STOP".
You can switch the programmable controller status between "RUN" and "STOP" using remote
operation.
For the remote operation, refer to the following.
"Point" in the step 4
Switch the programmable controller CPU to the "Write" mode when editing the ladders.
Refer to the following manual for details of the "Overwrite" mode, "Insert" mode, "Write" mode and
"Read" mode.
3.2.6 Creating a program
Setting
2. Set a device to be monitored.
Select D0 in this example.
Setting of "Device"
Device : Select "Device Name".
Device Name : D0
Restrictions
Set a device name to be monitored.
Label Name is not available.
OVERVIEW
monitored.
Setting on the Display Format screen
Monitor Format : Bit and Word
Display : 16 bit Integer 2
Value : DEC
CREATED PROGRAM
Bit Order : 0-F
CONFIGURATION
Switch No. of Points : Bit Device Bit and Word
AND SYSTEM
Format 16 Points
Word Device Word Multi-
point Format 8 Points
After the setting, click the button to close 3
the Display Format screen.
Refer to the following manual for the details on
PROGRAM OF
Display Format.
CREATING A
GX Works2 Version 1 Operating Manual
LADDER
(Common)
PROGRAM OF SFC
You can save the contents set on the Display Format screen.
When the monitoring screen is opened again, the contents set previously on the "Display
CREATING A
Format" screen will not be displayed. (The default setting will be displayed.) To display the
previous setting, you can save the setting to a file, and read the file. To save the setting, click
button on the Device/Buffer Memory Batch Monitor screen. To read the saved setting,
click button on the Device/Buffer Memory Batch Monitor screen.
You can set the data display format also on the Device/Buffer Memory Batch Monitor screen.
For setting the display format, click the "Display Format" button on the Device/Buffer Memory
Batch Monitor screen.
The contents of setting are reflected on the Display Format screen.
OVERVIEW
Changing the current value
Click the button on the Device/Buffer Memory Batch Monitor screen to display the Modify
Value screen which allows you to change the current value. 2
CREATED PROGRAM
1. Select a device whose current
CONFIGURATION
value is to be changed.
AND SYSTEM
Selecting 3
PROGRAM OF
CREATING A
LADDER
2. Click the button to 4
display the Modify Value screen.
PROGRAM OF SFC
Or click (Modify Value) to display
CREATING A
the Modify Value screen.
Click it.
1)
13)
2)
3)
4)
7)
14) 8)
9)
5)
10)
11)
7)
9)
12)
15)
16) 6)
1
3.6 Reading a Project from programmable controller
OVERVIEW
You can read data to a project from the programmable controller CPU selected as the connection destination
in Section 3.3.1.
1. Select [Online] [Read from PLC]
to display the Online Data Operation 2
screen.
CREATED PROGRAM
CONFIGURATION
You can click (Read from PLC) to
AND SYSTEM
display the Online Data Operation
screen.
3
2. Set the "Target module" and "Target
project" on the Online Data
Operation screen.
PROGRAM OF
CREATING A
Setting of the target module
After the setting, click the
LADDER
button to read the project (program)
from the programmable controller.
4
PROGRAM OF SFC
CREATING A
Setting of the project
Click it.
*1: If you have checked desired items for the Write to PLC setting, such items are checked as the
default for the Read from PLC setting.
Restrictions
In the case of FXCPU
When labels are used, data can be read from the FXCPU only in the FX3U and FX3UC Series version 3.00 or later.
When data cannot be read from the FXCPU, carefully store projects written in the programmable controller.
If a program or parameters already exist in the GX Works2, the following screen appears.
Click the or button to overwrite the existing program or parameters.
When you click the button, GX Works2 overwrite the existing program or parameters without
displaying the overwrites confirmation screen for other data.
Reading Completed
1
3.7 Printing
OVERVIEW
You can print programs and parameters created using GX Works2 in a printer.
The print function consists of Batch print and print. This section explains print.
For details of printing, refer to the following manual.
GX Works2 Version 1 Operating Manual (Common) 2
CREATED PROGRAM
3.7.1 Setting the printer
CONFIGURATION
AND SYSTEM
The printer which prints is set up.
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
2. Select the Printer, Paper size, Orientation, etc.
After the setting, click the button to close
the Printer Setup screen.
2. Display a program.
Double-click "POU" "Program" "MAIN"
"Program" on the Project view to display the [PRG]
MAIN screen.
Double-click it.
OVERVIEW
screen.
In this example, the Print Window Preview (Ladder)
screen remains in the initial setting. 2
CREATED PROGRAM
For details of the setting on the Print Window
CONFIGURATION
Click it. Preview (Ladder) screen, refer to the following
AND SYSTEM
manual.
GX Works2 Version 1 Operating Manual
(Common)
3
5. After checking the contents, click the button to print the program.
PROGRAM OF
Click the button to close the Print Window Preview screen.
CREATING A
LADDER
Click button to print the program.
PROGRAM OF SFC
CREATING A
1. Display a program.
For the display procedure, refer to the following.
3.7.2 Previewing a program
1
3.7.4 Previewing a PLC Parameter
OVERVIEW
You can display PLC Parameter in the image of printing.
1. Display PLC parameters.
Double-click "Parameter" "PLC Parameter" on
the Project view to display the Q Parameter Setting 2
Double-click it.
screen.
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
3
PROGRAM OF
CREATING A
LADDER
2. Click the button.
PROGRAM OF SFC
CREATING A
Click it.
Click button to print PLC 3. After checking the contents, click the
Parameter. button to print PLC Parameter.
Click the button to close the Print Window
Preview screen.
Click it.
Click it.
1
3.8 Saving a Project
OVERVIEW
You can save a project.
When saving a newly created project, use the menu item [Save as].
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
3
2.
PROGRAM OF
Set "Save Location", "Workspace Name",
CREATING A
"Project Name", "Title", etc.
LADDER
After the setting, click the button to save the
project (program).
Refer to the following manual for the details:
4
PROGRAM OF SFC
GX Works2 Version 1 Operating Manual
(Common)
CREATING A
Settings
Save in : Specify the save destination
folder.
File name : Specify the file name.
Title : Specify the title.
You can save a project without
specifying a title.
Restrictions
Input within 128 characters to "Title".
Make sure that the total characters of "Save Folder Path", "Workspace Name" and "Project Name" is 200
or less.
You cannot save any project to route directories such as "C:\" or "D:\".
If you have not saved the project, the following message appears.
Click the button to save the project.
Click the button to exit GX Works2 without saving the project.
OVERVIEW
4 CREATING A PROGRAM OF 2
CREATED PROGRAM
SFC
CONFIGURATION
AND SYSTEM
This chapter explains how to create a program of SFC with a Simple Project through a simple program
example.
3
PROGRAM OF
CREATING A
LADDER
4
4.1 Created Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
PROGRAM OF SFC
4.2 Created Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
4.3 Writing a Project to the programmable controller . . . . . . . . . 4-27
CREATING A
4.4 Monitoring Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-27
4.5 Diagnosing the programmable controller . . . . . . . . . . . . . . . . 4-30
4.6 Reading a Project from programmable controller . . . . . . . . . 4-30
4.7 Printing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-30
4.8 Saving a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-30
4.9 Exiting GX Works2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-30
4-1
GX Works2
Mode selection
Start Standby
For FXCPU
For QCPU/LCPU
Created Program
4-3
CREATING A CREATED PROGRAM
CREATING A PROGRAM OF AND SYSTEM
PROGRAM OF SFC OVERVIEW
4
3
2
1
LADDER CONFIGURATION
GX Works2
1
4.2.5 Setting labels (for QCPU/LCPU)
OVERVIEW
3.2.5 Setting labels
For details of the Global Label and Local Label setting procedures, refer to the following manual.
2
GX Works2 Version 1 Operating Manual (Simple Project)
CREATED PROGRAM
CONFIGURATION
Restrictions
AND SYSTEM
The FXCPU does not support the Label in SFC language.
Directly input a device.
3
Setting on the Global Label
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
Double-click it.
Settings
Tile SFC and Zoom vertically: Check it.
Arrange: Select "Tile Horizontally" or "Tile Vertically".
Change the position or size of the window to change over the SFC diagram/Zoom screen layout.
OVERVIEW
Put the cursor in the position "row number 1,
column number 1" on the screen, and double-
click it to display the Enter SFC Symbol screen.
After setting the items, click the button to 2
move the cursor to the next row.
CREATED PROGRAM
CONFIGURATION
Settings
AND SYSTEM
Symbol : STEP/0
Step Attribute : [--]
Comment : Standby status
3
3. Creating the SFC Diagram (Series transition 0)
Put the cursor in the position "row number 2,
PROGRAM OF
CREATING A
column number 1" on the screen, and double-
LADDER
click it to display the Enter SFC Symbol screen.
After setting the items, click the button to
move the cursor to the next row. 4
Settings
PROGRAM OF SFC
Symbol : TR/0
Comment : blank
CREATING A
4. Creating the SFC Diagram (step 1)
For the creation method, refer to the following.
Put the cursor in the position "row number 4, column
number 1".
"Step2" in the 4.2.6
Settings
Symbol : STEP/1
Step Attribute : [--]
Comment : Center lamp
OVERVIEW
For the creation method, refer to the following.
Put the cursor in the position "row number 13,
column number 1".
"Step2" in the 4.2.6 2
Settings
CREATED PROGRAM
Symbol : STEP/4
CONFIGURATION
Step Attribute : [--]
AND SYSTEM
Comment : Loop line fountain
PROGRAM OF
to display the Enter SFC Symbol screen.
CREATING A
After setting the items, click the button to
LADDER
move the cursor to the next row.
Settings
Symbol : --D/1 4
PROGRAM OF SFC
12.Creating the SFC Diagram (Series transition 4)
CREATING A
For the creation method, refer to the following.
Put the cursor in the position "row number 15,
column number 1".
"Step3" in the 4.2.6
Settings
Symbol : TR/4
Comment : blank
OVERVIEW
2
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
Perform the following procedure to display comments set on the Enter SFC Symbol screen.
Select [View] [SFC Step/Transition Comment]. 3
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
16.Creating the zoom (operation output of the step
0)
Put the cursor in the zoom block (such as step and
serial transition), and then perform the following
procedure to display the zoom.
In this case, put the cursor in the step 0.
Select [View] [Open Zoom/Start Destination
Block].
Perform the following to return to the SFC screen:
Select [View] [Back to Zoom SFC Block].
Create the operation output of the step 0 (standby
status), and convert the ladder.
For operation output creation and ladder conversion,
refer to the following.
3.2.6 Creating a program
3.2.7 Converting ladder blocks
OVERVIEW
In the transition condition, the coil instruction accepts only one dummy coil ([TRAN]).
Click " " or " ", and click the button to enter the dummy coil. Then, "[TRAN]" will be entered
automatically.
2
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
18.Creating the zoom (step1, series transition 1, step2, series transition 2, step3, series
transition 3, step4, series transition 4, series transition 5)
For the zoom display and creation methods, refer to the following. 3
"Step16" in the 4.2.6
"Step17" in the 4.2.6
PROGRAM OF
"Point" in the Step17
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
1
4.2.7 Creating a program (for FXCPU)
Create the SFC program (for FXCPU) shown in Section 4.1.2
OVERVIEW
You can select the following modes when creating a program.
"Overwrite" mode or "Insert" mode
"Write" mode or "Read" mode
Refer to the following manual for details of the "Overwrite" mode, "Insert" mode, "Write" mode and
"Read" mode. 2
GX Works2 Version 1 Operating Manual (Simple Project)
CREATED PROGRAM
CONFIGURATION
When you select "SFC" as the "Language" for creating a new project, the Block Information Setting
AND SYSTEM
screen appears.
PROGRAM OF
CREATING A
(ladder block) on the Project view screen.
LADDER
"SFC Block" and "Ladder Block" can be
selected as the "Block Type".
When the FXCPU is used, it is necessary to
create a ladder for turning ON the SFC 4
program using a ladder block.
PROGRAM OF SFC
Settings
Title : Starting ladder
CREATING A
Block Type : Ladder Block
Added.
Added.
OVERVIEW
horizontally.
Select [Tool] [Options] to display the Options screen.
On the Options screen, select "Program Editor" "SFC" "SFC 1" "Arrange Windows for
MELSAP3" "Arrange", and set the following. 2
CREATED PROGRAM
Settings
Tile SFC and Zoom vertically: Check it.
CONFIGURATION
Arrange: Select "Tile Horizontally" or "Tile Vertically".
AND SYSTEM
Change the position or size of the window to change over the SFC diagram/Zoom screen layout.
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
6. Creating the SFC Diagram (step 0)
Put the cursor in the position "row number 1,
column number 1" on the screen, and double-
click it to display the Enter SFC Symbol screen.
After setting the items, click the button to
move the cursor to the next row.
Settings
Symbol : STEP/0
Comment : Standby status
Restrictions
When using the FXCPU, set steps of the SFC program as follows:
States S0 to S9 are called initial steps (states), and used only as head step numbers of SFC blocks.
Accordingly, you can create up to 10 SFC blocks (starting from S0 to S9) when using the FXCPU.
States S10 and later can be used as general step numbers. However, note that the maximum
number of steps in 1 block is 512.
Each step (state) number can be used only once throughout all blocks.
1
12.Creating the SFC Diagram (step 12)
For the creation method, refer to the following.
OVERVIEW
Put the cursor in the position "row number 10,
column number 1".
"Step6" in the 4.2.7
Settings
2
CREATED PROGRAM
Symbol : STEP/12
CONFIGURATION
Comment : Loop line lamp
AND SYSTEM
13.Creating the SFC Diagram (Series transition 3)
For the creation method, refer to the following.
Put the cursor in the position "row number 11, 3
column number 1".
"Step7" in the 4.2.7
PROGRAM OF
CREATING A
Settings
LADDER
Symbol : TR/3
PROGRAM OF SFC
Put the cursor in the position "row number 13,
CREATING A
column number 1".
"Step6" in the 4.2.7
Settings
Symbol : STEP/13
Comment : Loop line fountain
OVERVIEW
The step ( ) specified as the jump destination will change into ( ).
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
Perform the following procedure to display comments set on the Enter SFC Symbol screen. 3
Select [View] [SFC Step/Transition Comment].
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
OVERVIEW
series transition 0)
Display the zoom.
For the display method, refer to the following.
"Step20" in the 4.2.7 2
For operation output creation and ladder conversion,
CREATED PROGRAM
refer to the following.
CONFIGURATION
3.2.6 Creating a program
AND SYSTEM
3.2.7 Converting ladder blocks
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
In the transition condition, the coil instruction accepts only one dummy coil ([TRAN]).
Click " " or " ", and click the button to enter the dummy coil. Then, "[TRAN]" will be entered
automatically.
22.Creating the zoom (step10, series transition 1, step11, series transition 2, step12, series
transition 3, step13, series transition 4, series transition 5)
For the zoom display and creation methods, refer to the following.
"Step20" in the 4.2.7
"Step21" in the 4.2.7
"Point" in the Step21
OVERVIEW
2
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
3
23.When the FXCPU is used, it is necessary to create a ladder for turning ON the SFC
PROGRAM OF
CREATING A
program using a ladder block. Double-click "000: Block Starting ladder", and create a
LADDER
necessary circuit.
In this example, the initial state S0 is set to ON using the special auxiliary relay M8002 that is
actuated instantaneously when the programmable controller mode is changed from STOP to RUN. 4
PROGRAM OF SFC
CREATING A
Select [View] [Back to Zoom SFC Block] to return to the SFC screen, and convert an SFC diagram.
Select [Compile] [Build] to execute
conversion.
4 - 26 4.2.8 Compiling a program (for QCPU/LCPU) or converting an SFC diagram (for FXCPU)
4.3 Writing a Project to the programmable controller
1
4.3 Writing a Project to the programmable controller
OVERVIEW
For writing a project to the programmable controller CPU, refer to the following.
3.3 Writing a Project to the programmable controller
2
4.4 Monitoring Operations
CREATED PROGRAM
CONFIGURATION
Execute "Monitor" to check the operations.
AND SYSTEM
GX Works2 is able to simulate the programmable controller operation in offline mode.
Refer to the following manual for the simulation function.
GX Works2 Version 1 Operating Manual (Common)
3
4.4.1 Monitoring a program
1. Click "Project" in the view selection area on the
PROGRAM OF
CREATING A
Navigation window to display the Project view.
LADDER
Click it.
PROGRAM OF SFC
2. Double-click "POU" "Program" "MAIN"
CREATING A
"000: Block" "Program" on the Project view
screen to display the SFC screen for "[PRG]
000: Block".
When using the FX CPU, double-click "001:
Block1 Fountain control".
Double-click it.
You can switch the programmable controller status between "RUN" and "STOP" using remote operation as
follows.
The Settings of the remote operation may vary depending on the programmable controller CPU used.
Refer to the following manual for the details on remote operation:
GX Works2 Version 1 Operating Manual (Common)
Select [Online] [Remote Operation] to display the Remote Operation screen. You can switch the
programmable controller status between "RUN" and "STOP" on this screen.
Connection Channel
List information
Displays the connection
target information
currently set.
Specify Execution
Target
Programmable Allows you to set the
controller Status target station for
remote operation.
Displays the Select "Currently
programmable controller Specified Station" for
CPU status. this example.
Operation
Allows you to select the
programmable controller
CPU status to be set.
Select either "RUN",
"PAUSE" or "STOP" for
this example.
Operation during RUN
Allows you to set the
operations to be
executed to the device
memory and signal flow
when the
programmable
controller CPU is
switched to RUN.
OVERVIEW
Active step
CREATED PROGRAM
CONFIGURATION
AND SYSTEM
Inactive step
3
(Blue) : Active step
: Inactive step
PROGRAM OF
CREATING A
LADDER
4
PROGRAM OF SFC
CREATING A
5. Select [Online] [Monitor] [Stop Monitoring]
to reset the [PRG] 000: Block screen.
For the Batch monitoring of device values procedure, refer to the following.
3.4.2 Batch monitoring of device values
4.7 Printing
For the Printing a project procedure, refer to the following.
3.7 Printing
There are following differences in the case of SFC programs.
Previewing a program: The Print Window Preview (Ladder) screen is not displayed.
Printing a program : The Print Window screen is displayed.
4 - 31
CREATING A CREATED PROGRAM
CREATING A PROGRAM OF AND SYSTEM
PROGRAM OF SFC OVERVIEW
4
3
2
1
LADDER CONFIGURATION
Microsoft, Windows are registered trademarks of Microsoft Corporation in the United States and other countries.
Ethernet is a registered trademark of Xerox Corp.
Other company names and product names used in this document are trademarks or registered trademarks of respective
companies.
SH(NA)-080787ENG-P(1506)KWIX
MODEL: GXW2-HOW-O-SP-E
MODEL CODE: 13JZ22
HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN
NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN
When exported from Japan, this manual does not require application to the
Ministry of Economy, Trade and Industry for service transaction permission.