ImageVerifierCode 换一换
格式:DOCX , 页数:15 ,大小:501.60KB ,
资源ID:18412855      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/18412855.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(T31505 Solution 53RevCd1文档格式.docx)为本站会员(b****3)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

T31505 Solution 53RevCd1文档格式.docx

1、“ “ Indicates dialog box buttons, tabs, menus etc.Bold Indicates important topics Indicates start/explanation of student activity 5.3.3 Solution StepsWe will be writing some very simple and basic code to run in Program2 in the Sxx_ReactorApp application as an introduction to using the POU editor fun

2、ctions. NOTE! The editor must be in on off-line mode!5.3.3.1 Declare Variables Open Program2 in application Sxx_ReactorApp.1. Make sure that Control Builder M is in offline mode2. Expand the Applications object and select Program2 located under your Sxx_ReactorApp object. You can open the POU for th

3、is program either by double-clicking Program2 or right-clicking and selecting “Editor” from the context menu.3. Locate the available panes, tabs, and menu items to allow you to navigate in the editor window. Declare 4 BoolIO variables called SW1, SW2, SW3, and LAMP1 with no attributes.4. Make sure y

4、ou are selected to the “Variables” tab in the declaration (upper) pane in the POU editor and enter the names of the variable in the “Name” column.5. Place your cursor in the DataType column and press and select the data type “BoolIO”.6. Also try selecting the “Insert” Icon on the upper right corner

5、of the POU editor window.7. Delete the retain attributes which by default will be added when creating variables. Select the entire “Attributes” column by clicking on the column header and delete all entries by pressing the “delete” key on the keyboard.8. Or mark with the mouse and right click, selec

6、t “Clear”9. Check the POU for errors. In the tab “check” the 0 Errors, 0 warnings10. Save 5.3.3.2 Writing Logic The logic must valuate three Digital Inputs and set a Digital Output according to the logic diagram below:11. Type the following line directly in the Code Pane area in the editor.Lamp1.Val

7、ue := (SW1.Value AND SW2.Value) OR SW3.Value; 12. The already defined variables can be marked from a list using keyboard Ctrl J The following keyboard code can be used:Ctrl j, arrow down, select SW1, Enter, .(dot), arrow down, select Value, Enter.Arrow down can be replaced by typing the first letter

8、 in the item of the list13. Select the keyboard . (dot) behind the SW1 and the Value will be browsed14. Select the Check Icon in the tool bar: You should get 0 Errors and 0 Warnings.15. Save and close the POU editor.16. Select “Test Mode”. 17. Click the “Continue” button for the On Line Change analy

9、sis dialog and observe that Control Builder enters the “Test” mode18. Check the Message Pane in Control Builder. 19. Take Control Builder to the Off-line mode by pressing the “Stop Test Mode” icon on the toolbar.5.3.3.3 Connecting Variables to IO Channels Connect the three switches on the DI810 modu

10、le to the SW1, SW2, and SW3 variable you created in Program220. Open up the hardware structure in the Control Builder and double click on the DI810 module in the tree:21. Connect the three switches on the DI810 module to the SW1, SW2, and SW3 variables you created in “Program2”. Use the icons in the

11、 upper right corner of the editor to choose variables. Open the tree to view the variables, select the + 22. Save and close the editor when finished.23. Select DO81024. Connect the first channel on the DO810 module to the Lamp1 variable you created in Program2. Check for errors and then save and clo

12、se the editor when finished.25. Download and Go Online. Select “Continue”5.3.3.4 Viewing Code in Online Mode Check Control Builder is in the On-Line mode and open the POU editor for Program 2 and observe the logic is in on-line mode. 26. Manipulate the three switches and observe the light on the IO

13、panel while looking at your logic.27. . Right click on the variable in the Declaration Pane to get information about the variable and also to open the I/O editor. on 28. For information right click at a variable29. Read the information regarding to I/O address and Application30. Select the hardware

14、tab “Status” to view the connections 5.3.3.5 Changing the Online View of Structured Text (ST)31. Select Tools Setup from the program editor menu bar.32. Select radio button for Function Diagram, Select “OK”33. View the logic on-line in the Function Diagram language.34. View the logic on-line in the

15、Ladder language.35. Change a switch at the panel.36. Change the view back to Text.Forcing IO37. Open the hardware editor screen for the DI810 module by right-clicking the SW1 variable in the program editor and selecting “I/O Editor” from the context menu.38. Select the “Status”, and force one or more variables. Observe the resulting changes in your Program2 editors code pane as you force and release forces on variables.

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1