SFC introduction guide r149 e1 02

60 197 0
SFC introduction guide r149 e1 02

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Introduction - Please be sure to read and understand Precautions and Introductions in CX-Programmer Operation Manual SFC, CX-Programmer Operation Manual and CX-Programmer Operation Manual Function Block/Structured Text before using the product - This guide describes the basic operation procedure of CX-Programmer Refer to the Help or the Operation Manual of the PDF file for detailed descriptions - Acrobat Reader 5.0 or later is required to read the PDF files - 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 - The product names, service names, function names, and logos are the trademarks or registered trademarks of the respective company -"TM"and the (R) mark not appear with product or company names in this guide - The product names of the other companies may be abbreviated in this guide Table of Contents Table of Contents Section SFC Overview 1-1 1-1 Introduction of SFC 1-1 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 1-5 Section Creating Programs with SFC .2-1 2-1 Workflow 2-1 2-2 Designing Programs 2-2 2-2-1 Parking Gate System Operation 2-2 2-2-2 Action Flow Diagram 2-5 2-2-3 Programming Example 2-6 2-3 Creating Projects .2-9 2-4 Creating SFC Programs 2-11 2-5 Creating Steps and Transitions .2-13 2-5-1 Renaming Steps/Transitions 2-13 2-5-2 Adding Steps/Transitions 2-15 2-5-3 Creating Transitions 2-18 2-5-4 Creating Loops to Initial Steps 2-22 2-6 Compiling 2-24 2-6-1 Checking for Program Errors 2-24 2-6-2 Saving Projects 2-24 2-7 Simulated Transition Test 2-25 2-7-1 Online Connection to Simulator 2-25 2-7-2 Setting Transition Conditions 2-26 2-8 Creating Action Blocks .2-28 2-8-1 Creating Actions 2-28 2-8-2 Assigning Action Qualifiers 2-30 2-9 Simulated Operation Test 2-32 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 A-3-2 Online Editing A-11 1-1 Introduction of SFC Section SFC Overview This section explains the features and the operations of SFC 1-1 Introduction of SFC This section provides an overview of SFC SFC Overview 1-1-1 Describing Programs with SFC Sequential Function Chart (hereafter called SFC) is a graphical programming language that displays the process flow as a diagram, thereby allowing the user to control the sequential processes by describing the transition conditions and actions for each step 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 1-1 1-2 What Can CX-Programmer Do? 1-2 What Can CX-Programmer Do? This section explains the features and the usage of SFC 1-2-1 Choosing a Programming Language for Your Application Each program can be coded in any combination of SFC, ladder, and ST (Structured Text) From the three, select the suitable programming language for the process For example, you can code step progression with SFC, device control with ladder, and arithmetic processes with ST SFC Overview 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) : Action Program (Ladder) : Action Program (ST) : Transition Program (Ladder) : Transition Program (ST) 1-2 1-2 What Can CX-Programmer Do? 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 : SFC View : Program View SFC Overview The SFC editor can display the SFC view and the Program view in horizontal or vertical alignment To display the views in vertical alignment, check SFC Horizontal Split on the SFC tab of the Options dialog box 1-3 1-3 SFC Operation 1-3 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 When a step becomes active, action blocks assigned to that step are executed The first step of a program is referred to as the "initial step" SFC Overview : Action Block An action block contains the step processes (actions) for a single step : Action Qualifier An action qualifier defines the execution timing and status retention preference for each action : Action Name For each action, specify a Boolean variable (contact) or an action program name : Transition A transition represents the condition that transfers the active status from the step before the transition to the step after the transition : Simultaneous Sequence Divergence/ Convergence A simultaneous sequence divergence is a structure in which a single transition is followed by multiple steps When the transition condition is satisfied, all of the connected steps become active simultaneously A simultaneous sequence convergence is a structure in which multiple steps are followed by a single transition Active status is transferred when the transition condition is satisfied and after all the steps have been activated 1-4 1-3 SFC Operation : Divergence/Convergence A divergence is a structure in which a single step is followed by multiple transitions The active status is transferred to the transition for which the condition is satisfied A convergence is a structure in which multiple transitions are each followed by a step This structure merges a flow that has been branched For details on SFC elements, refer to CXProgrammer Operation Manual SFC SFC Overview 1-3-2 SFC Program Operation A step can be either active or inactive When a step becomes active, actions defined within that step are executed 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 to step The bullet symbol indicates the active step 1-5 1-3 SFC Operation Memo SFC Overview 1-6 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 : Symbols Register local variables for use in SFC programs a b c : Actions folder A d e Appendix f g h : Action Programs Register the step processes as action programs Code the action programs in ladder or ST To make an association with an action program, specify its name within an action block on the SFC chart : Transitions folder : Transition Programs Register the step transition conditions as transition programs Code the transition programs in ladder or ST To make an association with a transition program, specify its name within a transition on the SFC chart : Subcharts folder : Subchart Programs Register the subchart programs created for structuring purposes (i.e reuse) Code the subchart programs in SFC To make an association with a subchart program, specify its name within a subchart step on the SFC chart A-2 A-1 Reference A-1-2 Action Qualifier (AQ) List D DS Name Function Timer Value Delay The action is executed when the user-specified time has elapsed since the activation of the step If the step becomes inactive before the user-specified time expires, the action will not be executed Required Delay Set The operation is the same as for "SD" Unlike "SD", however, the action will not be performed if the step becomes inactive before the user-specified delay time expires Execution can be aborted with the "R" AQ Required The action is executed when the step is activated, and is terminated when the user-specified time expires If the step becomes inactive before the user-specified time expires, execution will be aborted Required A The action is executed for as long as the step is active - Appendix AQ Symbol - L Limit N Normal (Default) P Pulse If a final scan is enabled, the action is executed for cycles when the step is activated If a final scan is disabled, the action is executed for cycle when the step is activated P1 Rising Pulse The action is executed once when the step becomes active - P0 Falling Pulse The action is executed once when the step becomes inactive - R Reset Stops and resets the action when the steps is activated, if the action is being executed by "S", "SL", "SD", or "DS" Actions being executed by other AQs will be reset, but not stopped When an action is reset, the following operations are performed: - OUT/OUT NOT instruction: OFF - TIM/TIMH instruction: Reset - Other timer, counter, or shift register: Maintained - S Set The action is executed when the step is activated, and continues to be executed even after the step becomes inactive Execution can be aborted with the "R" AQ - Set Delay The action is executed when the user-specified time has elapsed since the activation of the step, and continues to be executed even after the step becomes inactive Execution can be aborted with the "R" AQ Required Set Limit The action is executed when the step is activated, and is terminated when the user-specified time expires Unlike "L", the action continues to be executed even after the step becomes inactive Execution can be aborted with the "R" AQ Required SD SL For details on action qualifiers, refer to CX-Programmer Operation Manual SFC A-3 A-2 Creating SFC Elements A-2 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 Create a simultaneous sequence divergence Right-click a transition, and select Add Simultaneous Sequence Divergence from the pop-up menu A Appendix A double-line representing a simultaneous sequence divergence will be added Two diverted steps will also be added to the divergence Right-click the double-line, and select Add Simultaneous Divergent Step Branch from the pop-up menu Another step will also be added to the divergence Add transitions and steps to each of the diverted steps Complete the diverted SFC chart A-4 A-2 Creating SFC Elements Create a simultaneous sequence convergence Right-click a diverted step, and select Add Simultaneous Sequence Convergence from the pop-up menu A Appendix A double-line representing a simultaneous sequence convergence, and a transition will be added A connector extending from the step to the double-line will also be added 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 A-5 A-2 Creating SFC Elements A-2-2 Divergences/Convergences This section explains how to add a divergence/convergence Create a divergence Right-click a step, and select Add Divergence from the pop-up menu A Appendix A diverted connector will be added Two transitions are also added Right-click the connector, and select Add Divergent Transition Branch from the popup menu Another diverted transition will be added to the connector Add steps and transitions to each of the diverted transitions Complete the diverted SFC chart A-6 A-2 Creating SFC Elements Create a convergence Right-click a transition, and select Add Convergence from the pop-up menu A A convergence line and a step will be added A connector extending from the transition to the convergence line will also be added Appendix Right-click the convergence line, and select Connections - Add Connection To Convergence from the pop-up menu Move the cursor to the transition to be merged, and click The transition will be connected to the convergence line Complete the convergence by repeating the above procedure A-7 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 Change the transition precedence of diverged branches Right-click the divergence line, and select Use Default Transition Precedence from the pop-up menu A Appendix The SFC chart will be labeled with numbers representing the transition precedence Double-click the numbers, type the desired order, and press the Enter key The transition precedence will be changed A-8 A-3 Online Editing A-3 Online Editing Programs can be corrected while the PLC is running 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 Establish an online connection A Physically connect the computer to the PLC in advance Appendix For details on establishing an online connection with the PLC, refer to CX-Programmer Operation Manual Select PLC - Work Online A confirmation dialog box will be displayed Click Yes An online connection will be established between the computer and PLC A-9 A-3 Online Editing Transfer the program Select PLC - Transfer - To PLC The Download Options dialog box will be displayed A Appendix Click OK The Download dialog box will be displayed 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 The program transfer is now completed A-10 A-3 Online Editing A-3-2 Online Editing Load and correct the program, currently in use by the PLC 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 Establish an online connection Select PLC - Work Online A confirmation dialog box will be displayed A Appendix Click Yes An online connection will be established between the computer and PLC Load the program Select PLC - Transfer - From PLC The Upload Options dialog box will be displayed A-11 A-3 Online Editing Click OK A dialog box will be displayed, confirming the deletion of programs currently being edited in CX-Programmer A Appendix Click OK The Upload dialog box will be displayed When the data transfer is completed, the Upload successful message will be displayed Click OK The program transfer is now completed Begin online editing Display the SFC chart Switch to Monitor mode Select Program - Online Edit - Begin A-12 A-3 Online Editing The SFC editor will become un-greyed, and the program becomes editable Edit the program To edit an action program or a transition program, first display the program editor by double-clicking the target program within the project window, and then begin online editing A Appendix 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 2nd session: Add the program added in the 1st session to the SFC chart Transfer the changes Select Program - Online Edit - Send Changes The SFC/ST Online Edit - Transfer dialog box will be displayed Click OK Click Yes The modified program will be transferred to the PLC End the online editing session To discard the changes made during online editing, or to end the online editing session, select Program - Online Edit - Cancel The online editing session will be terminated without transferring the program to the PLC A-13 A-3 Online Editing Memo A Appendix A-14 Index Index A Action 1-2, 1-4, 2-28 Action Block 1-4, 2-28 Action Flow 2-5 Action Program 1-3, 2-8, 2-28, A-2 Action Qualifier(AQ) 1-4, 2-30, A-3 Active Step 1-5 C Compile 2-24 Connector 2-16, 2-23 Convergence 1-5, A-7 Creating SFC A-4 D Device Type 2-9 Divergence 1-5, A-6 F Force-Set 2-26, 2-32 I Inactive Step 1-5 Initial Step 2-13 J Jump 2-22 L Loop 2-23 M Main Window 2-9, A-1 Monitor Mode 2-26 N Network Type 2-10 O Online Connection 2-25 P Program Error 2-24 Project 2-9 Project Workspace A-2 S Set 2-27 SFC Chart 1-3, 2-6, 2-13 SFC Editor .1-3, 2-12, A-1 SFC Operation 1-4 SFC Overview 1-1 SFC Program 2-11, 2-13 Simulator 2-25 Simultaneous Sequence Convergence 1-4, A-5 Simultaneous Sequence Divergence 1-4, A-4 Starting CX-Programmer 2-9 Step 1-4, 2-13, A-3 Subchart A-2 Symbols A-2 T Task A-2 Transition 1-2, 1-4, 2-13, 2-18 Transition Condition 1-1, 1-2, 1-5, 2-7 Transition Program 1-3, 2-7, A-2 OMRON Corporation Industrial Automation Company Control Devices Division H.Q PLC Division Shiokoji Horikawa, Shimogyo-ku, Kyoto, 600-8530 Japan Tel: (81) 75-344-7084/Fax: (81) 75-344-7149 Regional Headquarters OMRON EUROPE B.V Wegalaan 67-69-2132 JD Hoofddorp The Netherlands Tel: (31)2356-81-300/Fax: (31)2356-81-388 OMRON ELECTRONICS LLC One Commerce Drive Schaumburg, IL 60173-5302 U.S.A Tel: (1) 847-843-7900/Fax: (1) 847-843-7787 Authorized Distributor: OMRON ASIA PACIFIC PTE LTD No 438A Alexandra Road # 05-05/08 (Lobby 2), Alexandra Technopark, Singapore 119967 Tel: (65) 6835-3011/Fax: (65) 6835-2711 OMRON (CHINA) CO., LTD Room 2211, Bank of China Tower, 200 Yin Cheng Zhong Road, PuDong New Area, Shanghai, 200120, China Tel: (86) 21-5037-2222/Fax: (86) 21-5037-2200 OMRON OMRONIndustrial IndustrialAutomation AutomationGlobal: Global: www.ia.omron.com www.ia.omron.com In the interest of product improvement, specifications are subject to change without notice Cat No R149-E1-02 ... A-11 1-1 Introduction of SFC Section SFC Overview This section explains the features and the operations of SFC 1-1 Introduction of SFC This section provides an overview of SFC SFC Overview... SFC : SFC View : Program View SFC Overview The SFC editor can display the SFC view and the Program view in horizontal or vertical alignment To display the views in vertical alignment, check SFC. .. Split on the SFC tab of the Options dialog box 1-3 1-3 SFC Operation 1-3 SFC Operation This section explains the elements of SFC and the operation of SFC programs 1-3-1 Elements of SFC : Step A

Ngày đăng: 07/09/2017, 15:38

Từ khóa liên quan

Mục lục

  • SFC Introduction Guide

  • Introduction

  • Table of Contents

  • Section 1 SFC Overview

    • 1-1 Introduction of SFC

    • 1-2 What Can CX-Programmer Do?

    • 1-3 SFC Operation

    • Section 2 Creating Programs with SFC

      • 2-1 Workflow

      • 2-2 Designing Programs

      • 2-3 Creating Projects

      • 2-4 Creating SFC Programs

      • 2-5 Creating Steps and Transitions

      • 2-6 Compiling

      • 2-7 Simulated Transition Test

      • 2-8 Creating Action Blocks

      • 2-9 Simulated Operation Test

      • Appendix

        • A-1 Reference

        • A-2 Creating SFC Elements

        • A-3 Online Editing

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan