Advertisement

Quick Links

Advertisement

Table of Contents
loading

Summary of Contents for Omron SFC - INTRODUCTION GUIDE

  • Page 2 - You can display the PDF files from the [Start ] menu on your desktop after installing the CX-Programmer. -The screen views used in this guide may be different from the actual view, and be subject to change without notice.
  • Page 3: Table Of Contents

    1-1-1 Describing Programs with SFC ................1-1 1-1-2 Correspondence of Steps and Programs ..............1-1 1-2 What Can CX-Programmer Do? ..............1-2 1-2-1 Choosing a Programming Language for Your Application ........1-2 1-3 SFC Operation ...................1-4 1-3-1 Elements of SFC ...................... 1-4 1-3-2 SFC Program Operation ..................
  • Page 4 Table of Contents Appendix ....................A-1 A-1 Reference ....................A-1 A-1-1 Main Window ......................A-1 A-1-2 Action Qualifier (AQ) List ..................A-3 A-2 Creating SFC Elements ................A-4 A-2-1 Simultaneous Sequence Divergences/Convergences ..........A-4 A-2-2 Divergences/Convergences ..................A-6 A-3 Online Editing ................... A-9 A-3-1 Transferring Programs to PLC ................A-9...
  • Page 5: Section 1 Sfc Overview

    SFC is suitable for understanding the processing order and status transition of a program. 1-1-2 Correspondence of Steps and Programs Program controls correspond to the actual step flow, making it easy to understand the program as a whole. This reduces the workload in debugging and maintaining the programs.
  • Page 6: What Can Cx-Programmer Do

    For example, you can code step progression with SFC, device control with ladder, and arithmetic processes with ST. Flow and order of controls can be coded with SFC, while actions within steps and transitions between steps can be coded with ladder, ST or Boolean variables (contacts).
  • Page 7 The SFC editor allows simultaneous viewing and editing of both the SFC chart and action/ transition programs. This allows for process and transition conditions to be viewed and edited while maintaining a perspective on the program as a whole, allowing the user to fully utilize the features of SFC.
  • Page 8: Sfc Operation

    1-3 SFC Operation SFC Operation This section explains the elements of SFC and the operation of SFC programs. 1-3-1 Elements of SFC : Step A step is an element of SFC programs, and represents a single process within the overall process flow.
  • Page 9: Sfc Program Operation

    When the transition condition is satisfied, the step immediately before the transition becomes inactive, and the step immediately after the transition becomes active. The following example illustrates a case in which transition condition "Trans1" is satisfied, and the active status is transferred from step 1 to step 2.
  • Page 10 1-3 SFC Operation Memo...
  • Page 11: Section 2 Creating Programs With Sfc

    Workflow This section explains the SFC programming workflow, from creation to simulated debugging. When creating a program for actual use, test the program with the actual devices after completing the steps below. 1.Define Operation Define the operation of the system to perform.
  • Page 12: Designing Programs

    2-2-1 Parking Gate System Operation When a car approaches the gate, a ticket is issued. The gate is opened when the ticket is taken. When the car passes the gate, the gate is closed, and the system returns to the initial state. A display panel is used to display status messages.
  • Page 13 2-2 Designing Programs When a car enters, the vehicle sensor turns When the vehicle sensor turns ON, a ticket is issued. "Take ticket" is displayed on the display panel. When the ticket is taken, the ticket sensor turns ON. When the ticket sensor turns ON, the gate opens.
  • Page 14 2-2 Designing Programs When the vehicle sensor turns OFF, the timer counts 3 seconds for safety, and then the gate closes. "Closing gate" is displayed on the display panel. The gate open limit sensor turns OFF. When the gate is fully closed, the gate close limit sensor turns ON.
  • Page 15: Action Flow Diagram

    2-2-2 Action Flow Diagram The action flow diagram for the parking gate system is shown below. The numbering in the diagram corresponds to the numbering in 2-2-1 Parking Gate System Operation. This is the initial state of the parking gate system (wait status).
  • Page 16: Programming Example

    SFC Chart Create an SFC chart based on the system operation. Use a Step to code steps, an Action Program for processes within a step, an Action Qualifier for execution timing, and a Transition for transition conditions.
  • Page 17 Output 20.03 Transitions Set the transition conditions between steps. Example ladder programs are shown below. For a ladder output coil, use the Boolean variable output, having the same name as the transition program. "Ticket Received" Program "Vehicle Detected" Program "Gate Passed" Program "Gate Fully Open"...
  • Page 18 2-2 Designing Programs Actions Describe the processes for each step. Example ladder programs are shown below. "Ticket Issuance" Program "Opening Gate" Program "Passing Gate" Program "Closing Gate" Program...
  • Page 19: Creating Projects

    2-3 Creating Projects Creating Projects Start CX-Programmer, and select the device type. 1 Start CX-Programmer. On the desktop, select Start - All Programs - OMRON - CX-One - CX-Programmer - CX- Programmer. CX-Programmer will start, and the main window will be displayed.
  • Page 20 2-3 Creating Projects Select the CPU from the CPU Type drop- down list. Click OK. The Device Type Settings dialog box will be closed. Select the network type from the Network Type drop-down list. For example, select Toolbus. Click OK.
  • Page 21: Creating Sfc Programs

    2-4 Creating SFC Programs Creating SFC Programs Add an SFC program. When a new project is created, it will automatically be configured for ladder programming. 1 Delete the ladder program. Ladder programs are not used in this example. Delete the existing ladder program and add an SFC program.
  • Page 22 The default programming language for new projects can be changed to SFC. Select Tools - Options. The Options dialog box will be displayed. From the PLC tab, select SFC for Default Program Type in new PLC. 2-12...
  • Page 23: Creating Steps And Transitions

    Create an SFC chart and set the transition conditions. 2-5-1 Renaming Steps/Transitions When an SFC program is first created, two steps and a transition are displayed by default. Rename these SFC elements, so that the program content can be understood more easily.
  • Page 24 Initial Step process to the following Issue Ticket process. Double-click Trans1. Trans1 will be selected. •If the transition is not selected, click on a blank area of the SFC view, and retry. •Transitions can be renamed without affecting operation.
  • Page 25: Adding Steps/Transitions

    A transition will be added. 2 Add a step. Right-click the Trans1 transition, and select Add Step from the pop-up menu. You can also add a step by pressing the S key while the transition is selected. A step will be added. 2-15...
  • Page 26 2-5 Creating Steps and Transitions Creating Steps and Transitions Steps and transitions can be created independently, and then later connected, using connectors. The procedure for connecting a step to a transition is detailed below. Connect a step and a transition.
  • Page 27 2-5 Creating Steps and Transitions Move the cursor to the target transition. The cursor will become an arrow. Left-click on the mouse. The step and the transition will be connected. Right-click the transition, and select Tidy Descendant SFC Elements from the pop-up menu.
  • Page 28: Creating Transitions

    2-5 Creating Steps and Transitions The connected step will be aligned below the transition. 2-5-3 Creating Transitions Create transition conditions as ladder programs. 1 Register a transition program. For the Vehicle Detection Flag transition in 2-5-1 Renaming Steps/Transitions, define the transition condition as a ladder program.
  • Page 29 Vehicle Detected as a Boolean variable. •For details on creating ladder programs, refer to CX-Programmer Operation Manual . •Note that if a timer counter bit output is used for a program, the output will be maintained even after the transition to the next step takes place.
  • Page 30 2-5 Creating Steps and Transitions 3 Assign the transition program. Assign the Vehicle Detected program to the Vehicle Detection Flag transition. Double-click the NewProgram1 (00) folder. The SFC editor will be displayed. Double-click FALSE. FALSE will be selected. Type "Vehicle Detected", and press the Enter key.
  • Page 31 4 Create the remaining steps and transitions. Create all the other remaining steps and transitions. For details on steps and transitions to be created, refer to 2-2-3 Programming Example. 5 Assign all transition programs. In this example, inputs from sensors are used as transition conditions.
  • Page 32: Creating Loops To Initial Steps

    2-5 Creating Steps and Transitions 2-5-4 Creating Loops to Initial Steps Add a connector extending from the Gate Fully Closed Flag transition to the Initial Step. 1 Draw a connector from the transition. Right-click the transition, and select Connections - Add Connection From Transition from the pop-up menu.
  • Page 33 Right-click the Gate Fully Closed Flag transition, and select Connections - Draw Connection From Transition as Jump from the pop-up menu. A jump is functionally identical to a loop. They differ in appearance only. The SFC chart is now completed, except for the actions.
  • Page 34: Compiling

    2-6 Compiling Compiling Test the program before creating actions for the steps. 2-6-1 Checking for Program Errors Compile the program to check for errors. 1 Check all programs. Press the F7 key. Program compilation will begin. Compilation results will be displayed in the output window.
  • Page 35: Simulated Transition Test

    2-7 Simulated Transition Test Simulated Transition Test Before creating the actions, check how the program operates when the transition conditions are satisfied. The simulator will allow you to test programs using only the computer. 2-7-1 Online Connection to Simulator Transfer the program to the simulator.
  • Page 36: Setting Transition Conditions

    Click OK. Online connection is now completed. 2-7-2 Setting Transition Conditions Confirm that the transitions actually take place when the transition conditions are satisfied. 1 Switch to Monitor mode. Select PLC - Operating Mode - Monitor. A confirmation dialog box will be displayed.
  • Page 37 2 Turn the input contact ON. Right-click Vehicle Sensor, and select Set - On from the pop-up menu. The contact can also be set to ON/OFF by double-clicking the contact, just as with any standard ladder program. When the Vehicle Sensor turns ON, the...
  • Page 38: Creating Action Blocks

    2-8 Creating Action Blocks Creating Action Blocks Create the processes for the steps as action blocks. 2-8-1 Creating Actions Create the actions using ladder. 1 Register an action program. The Initial Step does not require an action block, since there is nothing there to process.
  • Page 39 Issuance. The action will also be renamed automatically on the SFC chart. 2 Create the program. In the Issue Ticket step, issue a ticket and display the "Take ticket" message. Create a program that starts these two processes when the step becomes active.
  • Page 40: Assigning Action Qualifiers

    In the Gate Close step, close the gate and display the "Closing gate" message. In all steps, the outputs are reset at the end of the step. Create action blocks for the remaining steps, in the same manner as for the Issue Ticket step.
  • Page 41 2-8 Creating Action Blocks Select D from the drop-down list. D 1s will be displayed as the AQ. This means that the action will be executed 1 second after the step becomes active. Double-click 1s. Type "3", and press the Enter key.
  • Page 42: Simulated Operation Test

    2-9 Simulated Operation Test Simulated Operation Test Once again, transfer the program to the simulator, and check the operation of the program as a whole, including the actions. In 2-7 Simulated Transition Test, the transition conditions were tested. In this example, the operation of the actions will be tested.
  • Page 43 Active status will be transferred immediately from the Pass Gate step to the Gate Close step. The action block in the Gate Close step will be triggered 3 seconds after the transition. When the Gate Fully Closed Flag transition condition is satisfied, the Initial Step will become active once again.
  • Page 44 Action blocks can be hidden for easier viewing of the steps and the transitions. When the action blocks are hidden, the action programs for the active step will be displayed as the active status is transferred. Action blocks can be hidden in either of the following ways.
  • Page 45: Appendix

    A-1-1 Main Window This section explains the CX-Programmer project workspace and the SFC editor. For details on uncovered functions of the main window, and on ladder programming and ST programming, refer to CX-Programmer Operation Manual and CX-Programmer Operation Manual Function Block/Structured Text.
  • Page 46 A-1 Reference Project Workspace The elements of SFC programs are hierarchically displayed. The project workspace displays elements for the entire project. : Program SFC programs are registered under the Programs item. Task allocation will be necessary to execute the newly added SFC program.
  • Page 47: A-1-2 Action Qualifier (Aq) List

    Normal The action is executed for as long as the step is active. (Default) If a final scan is enabled, the action is executed for 2 cycles when the step is activated. Pulse If a final scan is disabled, the action is executed for 1 cycle when the step is activated.
  • Page 48: Creating Sfc Elements

    A-2 Creating SFC Elements Creating SFC Elements This section explains how to create more complex SFC elements, such as simultaneous sequence divergences, simultaneous sequence convergences, divergences, and convergences. A-2-1 Simultaneous Sequence Divergences/Convergences This section explains how to add a simultaneous sequence divergence/convergence.
  • Page 49 Right-click a the double-line, and select Connections - Add Connection To Convergence from the pop-up menu. Move the cursor to the step to be merged, and click. The step will be connected to the double-line. Complete the simultaneous sequence convergence by repeating the above procedure.
  • Page 50: A-2-2 Divergences/Convergences

    A-2 Creating SFC Elements A-2-2 Divergences/Convergences This section explains how to add a divergence/convergence. 1 Create a divergence. Right-click a step, and select Add Divergence from the pop-up menu. A diverted connector will be added. Two transitions are also added.
  • Page 51 2 Create a convergence. Right-click a transition, and select Add Convergence from the pop-up menu. A convergence line and a step will be added. A connector extending from the transition to the convergence line will also be added. Right-click the convergence line, and select Connections - Add Connection To Convergence from the pop-up menu.
  • Page 52 A-2 Creating SFC Elements Transition Precedence of Diverged Branches By default, transition conditions for diverged branches are tested from left to right. The transition precedence can be changed if desired. The procedure for changing the transition precedence is detailed below.
  • Page 53: Online Editing

    Online editing cannot be performed when using the simulator. A-3-1 Transferring Programs to PLC In preparation for online editing, connect the computer and the PLC, and transfer the program from the computer to the PLC. Normally, online editing is performed on a program uploaded from a running PLC.
  • Page 54 When the data transfer is completed, the Download successful message will be displayed. Click Yes. The dialog box will be closed. If the PLC is not in Program mode, a dialog box will be displayed to confirm switching of the operating mode. Click Yes. Click OK.
  • Page 55: A-3-2 Online Editing

    The programs used in this manual are provided for educational purposes only, to aid in understanding how CX-Programmer works. When designing a program for actual use, be sure to make considerations for safety in terms of hardware devices and control methods.
  • Page 56 A-3 Online Editing Click OK. A dialog box will be displayed, confirming the deletion of programs currently being edited in CX-Programmer. Click OK. The Upload dialog box will be displayed. When the data transfer is completed, the Upload successful message will be displayed.
  • Page 57 When adding a new action program or transition program to the SFC chart, you will need to perform online editing in two sessions. 1st session: Add the new action program or transition program to the project workspace.
  • Page 58 A-3 Online Editing Memo A-14...
  • Page 59 Index Index Simulator ............2-25 Simultaneous Sequence Convergence ..1-4 Action ..........1-2 2-28 Simultaneous Sequence Divergence ..1-4 Action Block ..........1-4 2-28 Starting CX-Programmer........2-9 Action Flow............2-5 Step ..........1-4 2-13 Action Program ....... 1-3 2-28 Subchart ............A-2 Action Qualifier(AQ) ......1-4 2-30 Symbols ............A-2...
  • Page 60 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787 PLC Division Shiokoji Horikawa, Shimogyo-ku, OMRON ASIA PACIFIC PTE. LTD. Kyoto, 600-8530 Japan No. 438A Alexandra Road # 05-05/08 (Lobby 2), Tel: (81) 75-344-7084/Fax: (81) 75-344-7149 Alexandra Technopark, Singapore 119967 Tel: (65) 6835-3011/Fax: (65) 6835-2711 Regional Headquarters OMRON (CHINA) CO., LTD.

This manual is also suitable for:

Sfc

Table of Contents