实例介绍
AB LogixStudio5000 SFC和ST手册,顺序功能图和结构化文本手册
Preface Purpose of this Manual This manual contains excerpts from Logix5000 Controllers Common Procedures, publication 1756-PMOOIH-EN-P and Logix5000 Controllers General Instructions Reference Manual, publication 1756-RM003H-EN-P. This manual provides information on Sequential Function Chart (SFC) programming language Structured Text(S1) programming language Jump to Subroutine (Sr), Subroutine (SBr), and Return (REt) instructions needed to access sfc and st logic The term Logix5000 controller refers to any controller that is based on the logix5000 operating system, such as Compactlogix controllers Controllogix controllers TM FlexLogix controllers · PowerFlex③700 S with DriveLogix controllers Softlogix5800 controllers Who should use this This manual is intended for those individuals who program anua applications that use Logix5000 controllers, such as software engineers control engineers e application engineers o instrumentation technicians When to use this manual Usc this manual when you perform these actions devclop the basic codc for your application an existing application perfo olated tests of your application As you integrate your application with the i/o devices, controllers, and networks in your system Refer to the user manual for your specific type of controller Use this manual as a reference. when needed Publication 1756-PM003H-EN-E- August 2005 Preface 2 How to Use this manua This manual is divided into the basic tasks that you pcrform whilc programming a Logix5000 controller Each chapter covers a task The tasks are organized in the sequence that you will typically perform them As you usc this manual, you will scc somc terms that arc formatted differently from the rest of the text Text that is Identifies. For example Means italic the actual name of an item that you Right-click User-Defined Right-click on the item that is named see on your screen or in an example User-Defined bold an entry in the " glossary Type a name If you want additional information, refer to name in the" Glossary If you are viewing the pdf file of the manual, click name to jump to the glossary entry COurier information that you must supply Right-click You must identify the specific program in based on your application (a name of progra our application Typically it is a name or variable) variable that you have defined enclosed in brackets a keyboard key Press enter Press the Enter key Publication 1756-PM003H-EN-E- August 2005 Table of contents Chapter 4 Design a Sequential Function When to Use This Chapter 4-1 Chart What is a Sequential Function Chart? 4-2 Define the tasks 4-5 Choose how to execute the sfc 4-6 Define the Steps of the Process 4-6 e steps 4-11 Add Actions for Each Step 4-15 Describe each action in pseudocode 4-1 Choose a Qualifier for an Action 4-19 Define the transition conditions 4-20 Transition After a Specified Time 4-25 Turn Off a Device at the End of a Step Keep Something On From Step-to-Step 4-34 End the sfc Nest an sFc 4-4 Configure When to return to the Os/ JSR Pause or reset an sfc 4- Execution diagrams 4-43 Chapter 5 Program a Sequential Function When to Use This Cha Chart Add an sfc element 5-1 Create a simultaneous branch Create a Selection branch t the priorities of a selection branch 5-6 Reti Previous Step 5-7 Config 5-8 Program a Transition .....5-10 Add an action 12 Configure an Action 5-12 Program an Action 14 Assign the Execution Order of Actions 5-16 Document an sfc 5-16 Configure the Execution of the sfC 5-20 verify the routine 5-21 Edit an sfc online 5-22 Publication 1756-PM003H-EN-E- August 2005 Table of contents 2 Chapter 6 Program Structured Text When to Use This Chapter ed Text syntax Assignments 6-2 Expressions.... Instructions 6-11 Constructs 6-12 IF.THEN CASE OF FOR.DO WHILE.DO 6-22 REPEAT UNTIL 6-25 Comments Chapter 13 Force Logic Elements When to Use This Chapter 3-1 Precautions 13-2 Check force status ........13-3 What to fo 13-5 When to Use an i/o force 13-5 Add an io fc When to Use step through 13-7 Step Through a Transition or a Force of a Path 13-7 When to U SFC FOrCe 13-7 Add an sfc force Remove or disable forces ......13-10 Chapter 10 Program Control Instructions Introduction 10-1 (JSR, RET, SBR Jump to Subroutine (sr), Subroutine(sBr), Return(rET). 10-2 Publication 1756-PM003H-EN-E- August 2005 Chapter Design a Sequential Function Chart When to Use This Chapter Use this chapter to design a sequential function chart (SFC) for your process or system. An SFC is similar to a flowchart of your process. It defines the steps or states through which your system progresses. Use an sfc to organize the functional specification for your system program and control your system as a series of steps and transitions By using an SFC to specify your process, you gain these advantages Since an sfc is a graphical representation of your process, it is easier to organize and read than a textual version. In addition RSLogix 5000 software lets you add notes that clarify steps or capture important information for use later on print the sfc to share the information with other individuals Since logix5000 controllers support SFCs, you do not have to enter the specification a second time. You are programming your system as you specify it By using an SFC to program your process, you gain these advantages graphical division of processes into its major logic pieces(steps) faster repeated execution of individual pieces of your logic simpler screen display reduced time to design and debug your progra faster and easier troubleshooting direct access to the point in the logic where a machine faulted easy updates and enhancements Publication 1756-PM003H-EN-E excerpt from 1756-PM001H-EN-P- August 2005 4-2 Design a sequential function Chart What is a Sequential A sequential function chart (SFC) is similar to a flowchart. It uscs Function chart? steps and transitions to perform specific operations or actions. This cxamplc shows the clements of an SfC Figure 4.1 SFC Example A step represents a major function of your process. It contains the actions that occur at a particular time, phase, or station devices An action is one of the functions that a step performs mEwx如]:=工 initialize f n PRogram cont-rol =1 Tan on fan initialize done A transition is the true or false condition that tells the sfc ii1g,mE量.D吧vc吧13七七嗯 then to go to the next step A qualifier determines when an action starts and stops antenor start conveyor fwd conveyor- stop Eyx思tt!:=0 part in_ place 卫en:下 A simultaneous branch executes more than 1 step a the same time tion do 3 R[weld, 0) palletize Show or hide an action ions done ISE JSR instruction calls a subroutine (continued on next page) Publication 1756-PM003H-EN-E (excerpt from 1756-PM001H-EN-P)-August 2005 Design a sequential Function Chart 4-3 Figure 4.2 SFC Example (continued from previous page A selection branch chooses different execution paths | pallet_move B上RIFL11twep1 1Et moye_t吧p0u1 pillet_move_stop. x:0 P FT Determination of whether to continue or stop line status A text box lets you add descriptive text or notes to your SfC Branch N fan off shut down Tran DoD ●)tp A stop lets you stop and wait for a command to restart a wire connects one element to another element anywhere on the chart. This wire takes you to the conveyor step on Figure 4.1 on the previous page Publication 1756-PM003H-EN-E excerpt from 1756-PM001H-EN-P)- August 2005 4-4 Design a sequential function Chart To design a sequential function chart For this information: See page Define the tasks 4-5 Choose how to execute the sfc 46 Define the Steps of the process 4-6 Organize the steps Add Actions for Each Step 4-15 Describe each action in pseudocode 4-19 Choose a qualifier for an action 4-19 Define the transition conditions 4-20 Transition After a specitied lime 4-25 Turn Off a Device at the end of a step 4-28 Keep Something On From Step-to-Step End the sfc Nest an sFC Configure When to Return to the OS/JSr Pause or Reset an SFC 4-43 Execution Diagrams 4-43 Publication 1756-PM003H-EN-E (excerpt from 1756-PM001H-EN-P)-August 2005 【实例截图】
【核心代码】
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论