Omron WS02-CXPC1-V8 OPERATION MANUAL

Cat. No. W469-E1-04
SYSMAC
CX-Programmer Ver. 8.1
Operation Manual
SFC Programming
CX-Programmer Ver. 8.1
WS02-CXPC1-V8
Operation Manual
SFC Programming
Revised February 2009
ii
TABLE OF CONTENTS
About this Manual:...................................................................................................................................................v
Read and Understand this Manual..........................................................................................................................vi
Warranty and Limitations of Liability .....................................................................................................................vi
Application Considerations ....................................................................................................................................vii
Disclaimers............................................................................................................................................................viii
SECTION 1 Overview......................................................................... 1
1-1 SFC Overview..................................................................................................................................................2
1-2 CX-Programmer Specifications........................................................................................................................6
1-3 Window Components.......................................................................................................................................8
1-4 SFC Programming Example...........................................................................................................................27
1-5 Precautions When Creating SFC Programs....................................................................................................33
SECTION 2 SFC Fundamentals....................................................... 41
2-1 SFC Basic Operation......................................................................................................................................42
2-2 Basic SFC Execution Cycle............................................................................................................................43
2-3 Elements of SFC............................................................................................................................................. 44
SECTION 3 Offline Operations ....................................................... 63
3-1 Creating an SFC Program...............................................................................................................................64
3-2 Editing the SFC Chart ....................................................................................................................................67
3-3 Searching and Replacing within an SFC Chart ..............................................................................................88
3-4 Offline Program Check...................................................................................................................................90
3-5 Miscellaneous.................................................................................................................................................91
SECTION 4 Online Operations........................................................ 93
4-1 Connecting the PLC ....................................................................................................................................... 94
4-2 Transferring Programs from Computer to PLC.............................................................................................. 95
4-3 Transferring Programs from PLC to Computer.............................................................................................. 96
4-4 Comparing Programs...................................................................................................................................... 97
4-5 Monitoring ......................................................................................................................................................98
SECTION 5 Debug Operations...................................................... 103
5-1 Online Editing .............................................................................................................................................. 104
5-2 Force Setting/Force-Resetting......................................................................................................................113
5-3 Set Step Timer Value....................................................................................................................................115
5-4 Work Online Simulator ................................................................................................................................ 116
iii
Appendix A.........................................................................................117
Specifications for Step Control Instructions......................................................................................................... 117
Appendix B .........................................................................................123
SFC Task Control Instruction Specifications ....................................................................................................... 123
Appendix C.........................................................................................128
SFC Program Size and Execution Time ............................................................................................................... 128
Index.................................................................................................... 131
Revision History.................................................................................135
iv

About this Manual:

SFC programming functions have been added to the CX-Programmer. This manual describes the specifications of the SFC language, and the CX-Programmer operations related to the SFC programming functions. For operations not related to SFC programming, refer to the CX-Programmer Operation Manual (Cat. No. W446).
For details on operations related to function blocks and structured text, refer to the CX-Programmer Operation Manual Function Blocks/Structured Texts (Cat. No. W447).
Intended Audience
This manual is intended for the following personnel, who must also have knowledge of electrical systems (an electrical engineer or the equivalent).
Personnel in charge of installing FA systems.
Personnel in charge of designing FA systems.
Personnel in charge of managing FA systems and facilities.
Caution
Please read this manual and related manuals carefully and be sure you understand the information provided before attempting to install or operate the CX-Programmer, the CJ2 Units with unit version 1.0 or later, or the CS1-H, CJ1-H, or CJ1M CPU Units with unit version 4.0 or later. Be sure to read the precautions provided in the following section.
v

Read and Understand this Manual

Please read and understand this manual before using the product. Please consult your OMRON
representative if you have any questions or comments.

Warranty and Limitations of Liability

WARRANTY
(1) The warranty period for the Software is one year from either the date of purchase or the date
on which the Software is delivered to the specified location.
(2) If the User discovers a defect in the Software (i.e., substantial non-conformity with the
manual), and returns it to OMRON within the above warranty period, OMRON will replace the
Software without charge by offering media or downloading services from the Internet. And if
the User discovers a defect in the media which is attributable to OMRON and returns the
Software to OMRON within the above warranty period, OMRON will replace the defective media
without charge. If OMRON is unable to replace the defective media or correct the Software, the
liability of OMRON and the User’s remedy shall be limited to a refund of the license fee paid to
OMRON for the Software.
LIMITATIONS OF LIABILITY
(1) THE ABOVE WARRANTY SHALL CONSTITUTE THE USER’S SOLE AND EXCLUSIVE
REMEDIES AGAINST OMRON AND THERE ARE NO OTHER WARRANTIES, EXPRESSED OR
IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTY OF MERCHANTABILITY OR FITNESS
FOR A PARTICULAR PURPOSE. IN NO EVENT WILL OMRON BE LIABLE FOR ANY LOST
PROFITS OR OTHER INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES
ARISING OUT OF USE OF THE SOFTWARE.
(2) OMRON SHALL ASSUME NO LIABILITY FOR DEFECTS IN THE SOFTWARE BASED ON
MODIFICATION OR ALTERATION OF THE SOFTWARE BY THE USER OR ANY THIRD PARTY.
(3) OMRON SHALL ASSUME NO LIABILITY FOR SOFTWARE DEVELOPED BY THE USER OR ANY
THIRD PARTY BASED ON THE SOFTWARE OR ANY CONSEQUENCE THEREOF.
vi

Application Considerations

SUITABILITY FOR USE
THE USER SHALL NOT USE THE SOFTWARE FOR A PURPOSE THAT IS NOT DESCRIBED IN THE
ATTACHED USER MANUAL.
vii

Disclaimers

CHANGE IN SPECIFICATIONS
The software specifications and accessories may be changed at any time based on improvements
or for other reasons.
EXTENT OF SERVICE
The license fee of the Software does not include service costs, such as dispatching technical
staff.
ERRORS AND OMISSIONS
The information in this manual has been carefully checked and is believed to be accurate;
however, no responsibility is assumed for clerical, typographical, or proofreading errors, or
omissions.
viii
Manuals Related to the CX-Programmer
Name Cat. No. Contents SYSMAC WS02-CXPC1-V8 CX-Programmer Operation Manual: SFC
SYSMAC WS02-CXPC1-V8 CX-Programmer Ver. 8.1 Operation Manual Function Blocks/Structured Texts
SYSMAC WS02-CXPC1-V8 CX-Programmer Ver. 8.1 Operation Manual
CX-Integrator Operation Manual CXONE-AL@@C-V3 CXONE-AL@@D-V3
CX-One Setup Manual CXONE-AL@@C-V3 CXONE-AL@@D-V3
W469
(this
manual)
W447
W446 Describes the general CX-Programmer version 8.1
W464 Describes operating procedures for the CX-Integrator
W463 Installation and overview of CX-One FA Integrated
Explains how to use the SFC programming functions. For explanations of other shared CX-Programmer functions, refer to the CX-Programmer Operation Manual (W446). Describes the function block functions and structured text programming functions that can be used with the
CX-Programmer version 8.1. For details on other
CX-Programmer functions, refer to the CX-Programmer Ver. 8.1 Operation Manual (Cat. No. W446).
operations that are not specifically related to SFC programming, function block functions, and structured text programming functions.
Network Configuration Tool for CS-, CJ-, CP-, and NSJ-series Controllers.
Tool Package.
ix
Manuals Related to the CJ2, CS1-H, CJ1-H, CJ1M PLCs
Name Cat. No. Contents SYSMAC CJ Series CJ2H-CPU6@-EIP, CJ2H-CPU6@ Programmable Controllers Hardware User’s Manual
SYSMAC CJ Series CJ2H-CPU6@-EIP, CJ2H-CPU6@ Programmable Controllers Software User’s Manual
SYSMAC CS/CJ Series CS1G/H-CPU@@-EV1, CS1G/H-CPU@@H, CS1D-CPU@@H, CS1D-CPU@@S, CJ2H-CPU6@-EIP, CJ2H-CPU6@, CJ1H-CPU@@H-R CJ1G-CPU@@, CJ1G/H-CPU@@H, CJ1G-CPU@@P, CJ1M-CPU@@ SYSMAC One NSJ Series NSJ@-@@@@ (B)-G5D NSJ@-@@@@ (B)-M3D Programmable Controllers Instructions Reference Manual SYSMAC CS Series CS1G/H-CPU@@-EV1, CS1G/H-CPU@@H Programmable Controllers Operation Manual
SYSMAC CJ Series CJ1G-CPU@@, CJ1G/H-CPU@@H, CJ1G-CPU@@ P, CJ1M-CPU@@ Programmable Controllers Operation Manual
SYSMAC CS/CJ Series CS1G/H-CPU@@-EV1, CS1G/H-CPU@@H, CJ1G-CPU@@, CJ1G/H-CPU@@H, CJ1G-CPU@@P, CJ1M-CPU@@ Programmable Controllers Programming Manual
W472 Provides an outline of and describes the design,
installation, maintenance, and other basic operations for the CJ-series CJ2 CPU Units. The following information is included: Overview and features System configuration Installation and wiring Troubleshooting Use this manual together with the W473.
W473 Describes programming and other methods to use the
functions of the CJ2 CPU Units. The following information is included: CPU Unit operation Internal memory areas Programming Tasks CPU Unit built-in functions Use this manual together with the W472.
W474 Describes the ladder diagram programming instructions
supported by CS/CJ-series or NSJ-series PLCs. When programming, use this manual together with the Operation Manual or Hardware User’s Manual (CS1: W339, CJ1: W393,or CJ2:W472) and Programming Manual or Software User’s Manual (CS1/CJ1:W394 or CJ2:W473).
W339 Provides an outline of and describes the design,
installation, maintenance, and other basic operations for the CS-series PLCs. The following information is included: An overview and features The system configuration Installation and wiring I/O memory allocation Troubleshooting
Use this manual together with the W394.
W393 Provides an outline of and describes the design,
installation, maintenance, and other basic operations for the CJ-series PLCs. The following information is included: An overview and features The system configuration Installation and wiring I/O memory allocation Troubleshooting
Use this manual together with the W394.
W394 Describes programming and other methods to use the
functions of the CS/CJ-series PLCs. The following information is included: Programming Tasks File memory Other functions
Use this manual together with the W339 or W393.
x
Name Cat. No. Contents SYSMAC CS/CJ Series CS1G/H-CPU@@ -EV1, CS1G/H-CPU@@H, CJ1G-CPU@@, CJ1G/H-CPU@@H, CJ1G-CPU@@P, CJ1M-CPU@@ Programmable Controllers Instructions Reference Manual SYSMAC CS/CJ Series CS1G/H-CPU@@-EV1, CS1G/H-CPU@@H, CS1W-SCB21-V1/41-V1, CS1W-SCU21/41, CJ2H-CPU6@-EIP, CJ2H-CPU6@, CJ1G-CPU@@, CJ1G/H-CPU@@H, CJ1G-CPU@@P, CJ1M-CPU@@, CJ1W-SCU21-V1/41-V1 Communications Commands Reference Manual
W340 Describes the ladder diagram programming instructions
supported by CS/CJ-series PLCs. When programming, use this manual together with the
Operation Manual (CS1: W339 or CJ1: W393) and Programming Manual (Cat. No. W394).
W342 Describes the communications commands that can be
addressed to CS/CJ-series CPU Units. The following information is included: C-series (Host Link) commands FINS commands Note: This manual describes commands that can be sent
to the CPU Unit without regard for the communications path, which can be through a serial communications port on the CPU Unit, a communications port on a Serial Communications Unit/Board, or a port on any other Communications Unit.
xi

Notice:

OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this manual. Always heed the information provided with them. Failure to heed precautions can result in injury to people or damage to property.
DANGER
WARNING
Caution
Indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury. Additionally, there may be severe property damage.
Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury. Additionally, there may be severe property damage.
Indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury, or property damage.
xii
WARNING
Caution
Caution
Confirm safety thoroughly in advance when using the CX-Programmer to transfer any I/O memory data to the actual PLC. Changes to the PLC’s I/O memory may result in unexpected operation of devices connected to Output Units, regardless of the PLC’s operating mode. The following functions require particular caution when using the CX-Programmer to transfer data to the CPU Unit’s I/O memory.
Transferring data from the CX-Programmer to the CPU Unit’s CIO Area (with the PLC Memory Window function)
Transferring data from a Memory Card or EM file memory to the CPU Unit's CIO Area (with the Memory Card Window function)
Confirm safety at the destination node before transferring a program to another node or changing contents of the I/O memory area. Doing either of these without confirming safety may result in injury.
Execute online editing only after confirming that no adverse effects will be caused by extending the cycle time. Otherwise, the input signals may not be readable.
xiii
Application Precautions
Observe the following precautions when using the CX-Programmer’s SFC functions.
• As a rule, the outputs of actions are reset when a step is changed from active status to inactive status. When changing an output’s hold/reset setting, change the initial setting or add reset processing as necessary. When making changes, verify the operational timing of actions in the preceding and following steps.
Note: Refer to 1-5-1 Holding or Resetting an Action's Outputs and 1-5-2 Action Program
Precautions for details.
• Observe the following precautions before starting the CX-Programmer.
• Exit all applications not directly related to the CX-Programmer. Particularly exit any software such as screen savers, virus checkers, E-mail or other communications software, and schedulers or other applications that start up periodically or automatically.
• Disable sharing hard disks, printers, or other devices with other computers on any network.
• With some notebook computers, the RS-232C port is allocated to a modem or an infrared line by default. Following the instructions in documentation for your computer and enable using the RS-232C port as a normal serial port.
• With some notebook computers, the default settings for saving energy do not supply the rated power to the RS-232C port. There may be both Windows settings for saving energy, as well as setting for specific computer utilities and the BIOS. Following the instructions in documentation for your computer, disable all energy saving settings.
• Do not turn OFF the power supply to the PLC or disconnect the connecting cable while the CX-Programmer is online with the PLC. The computer may malfunction.
• Confirm that no adverse effects will occur in the system before attempting any of the following. Not doing so may result in an unexpected operation.
• Changing the operating mode of the PLC.
• Force-setting/force-resetting any bit in memory.
• Changing the present value of any word or any set value in memory.
• Check the user program for proper execution before actually running it on the Unit. Not checking the program may result in an unexpected operation.
• When online editing is performed, the user program and parameter area data in CJ2, CS1-H, CJ1-H, CJ1M, and CP1H CPU Units is backed up in the built-in flash memory. The BKUP indicator will light on the front of the CPU Unit when the backup operation is in progress. Do not turn OFF the power supply to the CPU Unit when the BKUP indicator is lit. The data will not be backed up if power is turned OFF. To display the status of writing to flash memory on the CX-Programmer, select Display dialog to show PLC Memory Backup Status in the PLC properties and then select Windows – PLC Memory Backup Status from the View Menu.
xiv
Instructions for Use
Do not turn OFF the power supply to the computer while installing or uninstalling the CX-Programmer. The data in a computer may be corrupted.
Description of Programmable Controllers
The abbreviation “PLC” means Programmable Controller. “PC” is used, however, in some Programming Device displays to mean Programmable Controller.
xv
SECTION 1
Overview
1-1 SFC Overview.............................................................................................................2
1-1-1 SFC Overview...................................................................................................................2
1-1-2 CX-Programmer Features.................................................................................................3
1-2 CX-Programmer Specifications...................................................................................6
1-2-1 PLC Models Supporting SFC............................................................................................6
1-2-2 Specifications....................................................................................................................6
1-3 Window Components..................................................................................................8
1-3-1 SFC Editor ........................................................................................................................8
1-3-2 Menus..............................................................................................................................11
1-3-3 SFC Editor Pop-up Menu................................................................................................14
1-3-4 Toolbar Icons..................................................................................................................21
1-3-5 Keyboard Shortcuts.........................................................................................................22
1-3-6 Environmental Settings Unique to the SFC Programming Functions.............................23
1-4 SFC Programming Example......................................................................................27
1-4-1 Simple Example of an SFC Program..............................................................................27
1-4-2 Procedures for Using CX-Programmer...........................................................................30
1-5 Precautions When Creating SFC Programs...............................................................33
1-5-1 Holding or Resetting an Action’s Outputs......................................................................33
1-5-2 Action Program Precautions ...........................................................................................34
1-5-3 Precautions for Transition Programs...............................................................................36
1-5-4 Ladder Language Instructions That Cannot Be Used in Action Programs and Transition
Programs.........................................................................................................................37
1-5-5 Task Allocation...............................................................................................................37
1-5-6 Memory Allocation.........................................................................................................38
1-5-7 Subchart Online Editing Function Restrictions...............................................................39
1
SFC Overview Section 1-1

1-1 SFC Overview

1-1-1 SFC Overview

The SFC (Sequential Function Chart) language is a graphical programming language developed to facilitate the description of step progression programs, which mainly control sequential processes. SFC, with its graphical representation of step flow and with description of the conditions for step progression and the actions in each step, allows users to program the control of sequential processes.
Step1
Step2
Step3
SFC offers the following advantages. Since step flow and program control correspond, even third-party programmers can easily understand the program, as a whole. This reduces the program debugging and maintenance workload.
Processing Contents
Step Transition Condition
Processing Contents
Step Transition Condition
Processing Contents
Step Transition Condition
Process Flow
A
Equipment Control/
External Device Control
B
C
Correspond-
ence
Step A
Step C
SFC Program
Step B
Programs can be created separately for each step, without the need to consider complicated requirement exchanges between steps. In other words, each step can be programmed separately, by a different developer, making program development simpler and more efficient.
2
SFC Overview Section 1-1
Step1
Step2
Step 3
Processing Contents
Processing Contents
Processing Contents
Programs are independently completed for each step, and are therefore simple to
reuse.
Processing is performed on a per step basis, giving process time, only to active steps,
and not to inactive steps, allowing the CPU unit cycle time to be shortened.

1-1-2 CX-Programmer Features

The CX-Programmer Support Software is equipped with an SFC editor, and can be
used to create, monitor, and debug SFC programs for CS/CJ-series and CJ2-series
PLCs. The CX-Programmer supports SFC language in addition to conventional ladder
and structured text (ST) programming languages.
With desirable features, such as the user interface, carried over from the earlier series,
and with the added SFC programming function, the CX-Programmer provides a
programming environment that can take full advantage of the SFC language’s features.
Combining SFC, Ladder, and ST for User Programs
Each program allocated to a task can be coded as an arbitrary combination of SFC,
ladder, and ST. Hence, the language best suited to each process can be utilized (e.g.
SFC for step progression, ladder for device control, and ST for mathematical
processes).
The common functions of CX-Programmer are still available to use, regardless of the
language used.
Developed by “A”
Developed by “B”
Developed by “C”
Steps can be developed separately.
User Program
Ta sk
Ta sk
Ta sk
Ta sk
SFC Step Progression Control
Programming Language Best Suited to the Process is Selectable
a = a + 1
Ladder
Device Control
ST Mathematical Processes
3
SFC Overview Section 1-1
A
A
Ladder and ST as Part of SFC Programs
The step actions and transition conditions within an SFC program can be coded in either ladder or ST. The step actions and transition conditions coded in ladder or ST are registered in an SFC program as action programs and transition programs.
ction Programs (Ladder)
ction Programs (ST)
Transition Program (Ladder)
Transition Program (ST)
Simultaneous Display/Editing of SFC Charts and Action/Transition Programs
The SFC chart editor can display the SFC view and program view in a horizontally or vertically split window, allowing an SFC chart and action block (or transition program) to be viewed and edited at the same time. In addition, action blocks can be hidden in the SFC view, but action programs and transition programs can be viewed and edited in the program view, even when the action blocks are hidden in the SFC chart. Processing contents and transition conditions can be viewed and edited while envisioning the entire program picture, allowing the features of SFC to be fully realized.
Action Blocks Shown
SFC View
Program View
4
SFC Overview Section 1-1
Action Blocks Hidden
SFC View
Program View
Online Editing and Debugging
SFC charts can be edited online. Furthermore, action blocks can be hidden while
debugging, and the step progression status can be checked. The SFC chart editor will
display the action programs in the program view, even while the action blocks are
hidden.
Array Variables
Array variables can be used in ST and SFC, in addition to being able to use them in
conventional ladder programs, executed for tasks in CX-Programmer.
Ladder
ST
b[7] := a[7]
SFC
a[5] b[5]
NStep n a[3]
b[3]
5
CX-Programmer Specifications Section 1-2

1-2 CX-Programmer Specifications

This section describes the CX-Programmer’s operating environment in which SFC functions can be used. For details on the basic CX-Programmer operating environment, refer to the CX-Programmer Operation Manual (Cat. No. W446).

1-2-1 PLC Models Supporting SFC

The following PLCs (Programmable Logic Controllers) support the SFC language.
PLC model CPU model
CJ2H unit version 1.0 or later CJ2H-CPU68/67/66/65/64/68-EIP/67-EIP/66-EIP/65-EIP/64-EIP
CS1G-H unit version 4.0 CS1G-CPU45H/44H/43H/42H
CS1H-H unit version 4.0 CS1H-CPU67H/66H/65H/64H/63H
CJ1G-H unit version 4.0 CJ1G-CPU45H/44H/43H/42H
CJ1H-H unit version 4.0 CJ1H-CPU67H/66H/65H/67H-R/66H-R/65H-R/64H-R
CJ1M unit version 4.0 CJ1M-CPU23/22/21/13/12/11
Note
SFC cannot be used on CP-series PLCs.
Microsoft .Net Framework 1.1 or later must be installed.
Internet Explorer 5.@ or later must be installed.

1-2-2 Specifications

Item Details
Programming language for tasks
SFC program unit Tasks (1 task = 1 SFC chart)
Tasks supported for SFC program allocation
SFC elements Steps, transitions, actions, jumps, subcharts
SFC chart shapes Series, divergence/convergence, simultaneous sequence divergence/convergence, jump
Step status Active, inactive
Transitions * Boolean address bits (Boolean variables or actual addresses), ST expressions, or
Transition program transition conditions
SFC, ladder, or ST (In any combination)
CJ2: 384 tasks max. (128 cyclic tasks, 256 extra tasks) Other models: 288 tasks max. (32 cyclic tasks, 256 extra tasks)
Cyclic or extra tasks
Note: SFC elements are automatically registered to local variables.
Note: Number of divergences/convergences, simultaneous sequence
divergences/convergences, and subcharts are unlimited. (Unlike with SFC for CV series)
Note: PAUSE and HALT are not supported. (Unlike with SFC for CVM1/CV series)
transition programs
Note 1: A ladder or ST program can be used for a transition program.
Note 2: Function blocks can be used for transition programs.
A transition condition is met when the Boolean variable with the same name as the transition program is switched to “ON”.
6
CX-Programmer Specifications Section 1-2
Action blocks Action Qualifiers (AQ) (11 types) + action
Note 1: There is no restriction on the number of action blocks allocated to a step.
Note 2: If there are multiple action programs in the same step, the execution order is
determined by the order (top to bottom) that the action programs are listed in the project workspace.
Note 3: An action program is executed just once per cycle (unlike the CV-series SFC
operation), even if the action program is used in multiple steps and the multiple steps are active at the same time.
Action qualifiers (11 types) N, P, P1, P0, L, D, R, S, SL, SD, DS
Actions * Boolean address bits (Boolean variables or actual addresses) or action programs
Note 1: A ladder or ST program can be used for an action program.
Note 2: Function blocks can be used for action programs.
Output reset When a step has become inactive, the action block’s outputs can be reset by any one of
the following methods. Select the output reset in the action’s properties (unless the action is Boolean or an ST program). The reset operation depends upon the type of program added, as follows.
Specified bit: Reset.
Ladder program: The default setting is to reset outputs. If you do not want the outputs
reset, specify that in the action program’s properties.
ST program: Not reset.
Direct addressing An actual address can be specified for an action or transition using an SFC chart’s
Boolean action/transition or a ladder program. Only variables can be used to specify addresses in ST programs. (Direct addressing is not possible.)
Step control
SFC task control
Force Step Transitions can be force-set/force-reset online, for a step-by-step execution.
Online Editing Allows SFC chart editing, actions addition/deletion, and transitions addition/deletion.
Array variables Array variables are supported for SFC, ladder, and ST programs.
Step activation/ deactivation
Step timer readings/ updates
Executing and ending SFC tasks
Stopping SFC tasks (output reset or output hold)
* The maximum number of transition programs, action programs, and subcharts is as follows
(when using function blocks, number of definitions are included):
CJ2 CPU Units: 2,048 max.
CS1H /CJ1H CPU Units: 1024 max.
CJ1M CPU Units: 256 max.
Steps in an SFC chart can be activated or deactivated from the following ladder programs (by using the “SA” step activation instruction and the “SE” step deactivation instruction). * Ladder program outside of SFC programs * Action ladder program within an SFC program * Action ladder program within another SFC program
Time elapsed since the activation of a step can be read and updated (by using the “TSR” read step timer value instruction and the “TSW” set step timer value instruction). 0 to 6553.5 sec (Unit: 100 millisecond), or 0 to 65535 sec (Unit: 1 sec)
The execution and ending of SFC tasks can be controlled from the ladder program with the SFC Task Control Instructions. Execute: If the SFC task was completed, the SFC task status is completely reset and
execution proceeds from the initial step. If the SFC task was stopped, the SFC task is executed from the step where the
task was stopped. End: The status of outputs is held, and the SFC task is ended.
SFC tasks can be stopped (outputs reset or outputs held) from the ladder program with the SFC Task Control Instructions. Output reset: Resets the outputs, and pauses the SFC task. Output hold: Retains the output status, and pauses the SFC task.
Note: Choose between standard mode (transfer with source code) and quick mode
(transfer without SFC source code).
7
Window Components Section 1-3

1-3 Window Components

This section describes the CX-Programmer’s SFC chart editing functions and functions related to the SFC editor. For details on other functions, refer to the CX-Programmer Operation Manual (Cat. No. W446).

1-3-1 SFC Editor

SFC elements can be inserted and connected in the CX-Programmer’s SFC editor to create sequential step programs. The project workspace and SFC editor can be displayed in a horizontally or vertically split window, so that the structural relationship between the SFC chart and action block (or transition program) can be clearly understood.
SFC Editor
Project Workspace
SFC View
Program View
8
Window Components Section 1-3
A
(
)
r
g
A
r
r
Project Workspace
SFC programming elements are hierarchically displayed and managed. The Project Workspace is also known as the Project Tree.
SFC Pro
Local Variable
Transition Folde
Transition Programs (Ladder or ST)
Subchart Folde
Subchart Programs
ram
ction Folde
ction Programs
Ladder or ST
SFC Programs
SFC programs are registered as child items of the Programs folder in the project workspace. Task allocation is required to execute the SFC program.
Symbol Tables
Variables are automatically registered in the symbol table, corresponding to the SFC elements created in the SFC chart. The variables registered here are used as local variables in the SFC chart. Also, the user can register the variables that are required while writing the SFC program.
Actions Folder and Action Programs
Action programs are registered in the Actions folder under the SFC program structure. An action program describes the step actions in ladder or ST. Action programs are associated to an action block within an SFC chart by selecting the relevant action name.
9
Window Components Section 1-3
Transitions Folder and Transition Programs
Transition programs are registered in the Transitions folder under the SFC program. A transition program describes the step progression conditions, which need to be expressed by multiple input signals or by the more complex ladder or ST logic. Transition programs are associated with an SFC chart’s transition by selecting the same transition name.
Subcharts Folder and Subchart Programs
Subchart programs are registered in the Subcharts folder under the SFC program. A subchart program allows an SFC program with large-scale step progression control to be developed in parts, improving the reusability and visibility of the program and allowing for more structured programming of the SFC program. Subchart programs are subcharts for SFC charts and are associated with an SFC chart by selecting the same subchart name. In program view, it is possible to check whether an SFC subchart is a partial SFC chart of the SFC program.
10
SFC Editor
Displays an SFC chart or subchart. By providing a split SFC view and program view display, the SFC chart can be viewed simultaneously with the associated action program or transition program.
Window Components Section 1-3
SFC View
Program View
SFC Editor Display Customization
Select Tools - Options from the menu, and then the Appearance or SFC tab to customize the SFC editor display. For details on customizing the SFC editor display, refer to 1-3-6 Environmental Settings Unique to the SFC Programming Functions.
SFC View
Displays an SFC chart or subchart.
Program View
Displays the action program, transition program, or subchart for the action block, transition, or subchart step, selected in the SFC view. The action program, transition program, or subchart program can be edited in program view, while viewing the SFC chart in the SFC editor.

1-3-2 Menus

Edit Menu
This menu is displayed when the SFC editor is displayed in the main editing window and has the cursor focus. Menu items are enabled and disabled depending on which SFC element is selected in the SFC editor.
Edit Step Name Enables editing of the selected step
Edit Transition Condition Enables editing of a selected transition
Edit Action Name Displays a combo box in the selected
Edit Action Qualifier Displays a combo box in the action
Edit Action Qualifier Time Enables editing of the selected action
Edit Action Indicator Variable Enables editing of the selected action
Menu Sub-Menu Function
name.
name.
action block, enabling selection of the action program name.
qualifier of the selected action block, enabling action qualifier selection.
block’s action qualifier timer.
block’s indicator variable.
11
Window Components Section 1-3
Edit Connections
Tidy Element Positions Arranges all of the elements in the SFC
Tidy Descendant Element Positions Arranges the SFC chart elements
Add Connection To SFC Element
Add Connection From SFC Element
Delete Connection To SFC Element
Delete Connection From SFC Element
Draws out a connection from the topside of the selected SFC element.
Draws out a connection from the downside of the selected SFC element.
Deletes the connection on the topside of the selected SFC element.
Deletes the connection on the downside of the selected SFC element.
chart.
positioned after the selected SFC element.
View Menu
This menu is enabled only when the display magnifier for the SFC editor has been changed.
Menu Function
Zoom Reset Resets the scaling ratio of the SFC editor to 100%.
Insert Menu
This menu is enabled only when the SFC editor is displayed.
Step When a bottom transition is selected, this item adds
Subchart Step When a bottom transition is selected, this item adds
Transition When a bottom step is selected, this item adds a
Divergences When a bottom step is selected, this item adds a
Convergences When a conditionally-branched bottom transition is
Simultaneous Sequence Divergences When a bottom transition is selected, this item adds
Simultaneous Sequence Convergences When a parallel-branched bottom step is selected,
Menu Function
a step and connects it to the transition. When a transition is not selected, it inserts an independent step.
a subchart step and connects it to the transition. When a transition is not selected, it inserts an independent subchart step.
transition and connects it to the step. When a step is not selected, it inserts an independent transition.
divergence and 2 transitions, and connects them to the step. When a step is not selected, it adds a step, a divergence, and 2 transitions.
selected, this item adds a convergence and a step, and connects them to the transition.
a simultaneous sequence divergence and 2 steps, and connects them to the transition. When a transition is not selected, it adds a transition, a simultaneous sequence divergence, and 2 steps.
this item adds a simultaneous sequence convergence and a transition, and connects them to the step.
12
Window Components Section 1-3
Step and Transition When a bottom transition is selected, this item adds
a step and a transition, and connects them to the transition.
Transition and Step When a bottom step is selected, this item adds a
transition and a step, and connects them to the step.
Simultaneous Convergent Step Above Inserts a step on the topside of a simultaneous
sequence convergence.
Convergent Transition Above Inserts a transition on the topside of a convergence.
Connector Draws a connection from an SFC element that does
not have a connection in the SFC chart.
Program Menu
This menu is enabled only when the SFC editor is displayed.
Menu Function
Online Edit
Transfer SFC/ST Source to PLC (Online Edit)
Release FB/SFC/ST, Online Edit Access Rights
When an SFC program revision is being transferred in quick mode during online SFC chart editing, only the SFC source code is transferred later.
Makes PLC access rights invalid in the event of process interruption, due to communication error during online SFC chart editing.
13
Window Components Section 1-3

1-3-3 SFC Editor Pop-up Menu

This section describes menus, which are displayed by right-clicking within the SFC editor. The menu displayed depends on which SFC element is selected. Furthermore, menu items are enabled and disabled depending on the connected state of SFC elements.
Right-Clicking a Step
The step elements menu for working online differs from that for working offline.
Offline Pop-Up Menu
Menu Sub-Menu Function
Edit Step Name Enables editing of the selected step
name.
Step Type
Step Timer
Add Action
Show Action Blocks Shows hidden action blocks.
Add Transition and Step Adds a transition and a step, and
Add Transition Adds a transition and connects it to the
Insert Step and Transition Above Adds a transition and a step, and
Insert Transition Above Adds a transition to the topside of the
Add Divergences Adds a divergence and 2 transitions,
Add Simultaneous Sequence Convergence Adds a simultaneous sequence
Normal Changes the selected step to a normal
step.
Initial Changes the selected step to an initial
step.
Entry Changes the selected step to a entry
step.
Return Changes the selected step to a return
step.
Use Millisecond Timer Sets the step timer unit to 100
milliseconds.
Use Second Timer Sets the step timer unit to 1 second.
Boolean Action Adds a Boolean variable or actual
address to the selected step.
New Ladder Action Creates a new ladder program, and
adds it to the selected step.
New Structured Text Action
Existing Action Adds an already registered action to
Creates a new ST program, and adds it to the selected step.
the selected step.
connects them to the selected step.
selected step.
connects them to the topside of the selected step.
selected step.
and connects them to the selected step.
convergence and a transition, and connects them to the selected step.
14
Loading...
+ 124 hidden pages