Participant Guide Application Development 15. Click Zoom to Fit button to display the full logic page. Select the Sheet Template 16. 1On the Sheets menu, click Select Sheet Template. The following sheet sizes are available: 3–101 • Sheet A − 8.5\" x 11\" • Sheet B − 11\" x 17\" (default) • Sheet C − 17\" x 21\" • Sheet D − 21\" x 33\" 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide 17. Click Sheet Template A. 18. Click OK to save. Specify Sheet Title Properties Use the following steps to enter a title for the logic sheet using the Item Properties window. 19. Scroll to the bottom-right corner of the logic sheet to the Sheet Title box. 20. Double-click anywhere in the Sheet Title box. The Item Properties window is displayed. 21. Click Sheet_Title. The Edit Macro Text window is displayed. 22. Enter Water_Tank_Alarm. 23. Click OK to save Water_Tank_Alarm as the Sheet Title. 3–102 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development 24. To edit or enter information in other fields, click a field name in the Edit Fields window. 25. Enter text, click OK to save, then exit the Item Properties window. Place a Function on the Logic Sheet Use the following steps to place an OR function on the logic sheet. 26. Click the Function Block Selection button on the toolbar. The Select Element window is displayed. To find the OR function, perform either of the following actions: 27. Enter OR in the field to highlight the function, and then click OK. 28. Scroll down the Element Name list, highlight the function, and then click OK. To place the OR function on the sheet: 29. Move the pointer to the logic sheet. The pointer changes to the function graphic. Click once to place the function on the sheet. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–103 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide Specify Function Properties Use the following steps to specify the properties of the OR function. 30. Double-click the OR function to display Item Properties window. 31. Check Double Space to double the spaces between the terminals on the OR graphic. 32. Close the Item Properties window. The OR function graphic is displayed with double spaces between the terminals. 3–104 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development Place Variables on the Logic Sheet Use the following steps to: • Place two input variables and an output variable on the logic sheet • Connect the variables to the function 33. Click the Tagname Tool button and move the pointer to the logic sheet. 34. Connect the tagname to the top input terminal of the function by clicking once. The input variable is displayed. 35. Add a second tagname to the bottom input terminal by clicking the Tagname Tool button, moving the pointer to the bottom terminal, and clicking once. The bottom input variable is displayed. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–105 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide Note: You may need to reposition the variables with the pointer so that all elements and connections can be seen. 36. Add an output variable to the output terminal by clicking the Tagname Tool button, moving the pointer to output terminal, and clicking once. The output variable is displayed. Note: The default annotations are displayed for each variable. 3–106 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development Lab 15 : Declaring Variables Introduction In this lab, you will enter ALARM_DETECT_%0 to start the automatic names at 1. Objective After completing this lab, you will be able to: • Declare the input and output variables. • Specify properties for the variables. Lab Procedure Declare Program Variables for OR Function 1. Double-click the top input variable. The Item Properties window is displayed. 2. Enter Water_High in the Variable Name field. The Annotate check box is checked because it was specified when you first set up the project. It will automatically add an annotation box to this variable. Note: The data type is displayed. If a tagname is placed or dragged to the logic sheet using the pointer, the data type is automatically set to the correct type for the variable. 3. Click Apply. The Declaration tab is displayed. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–107 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide 4. Enter Input_Variable_1 as the description. 5. Confirm BOOL as the Data Type. 6. Click Apply, and then close the Declaration tab. The named variable is displayed on the logic sheet. 7. Double-click the second input variable. The Item Properties window is displayed. 8. Enter Water_Low in the Variable Name field. 9. Click Apply. The Declaration tab appears. 10. Enter Input_variable_2 in the Description field. 11. Confirm BOOL as the Data Type. 12. Click Apply, and then close the Declaration tab. 3–108 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development The named variable is displayed on the logic sheet. 13. Double-click the output variable. The Item Properties window appears. 14. Enter Alarm in the Variable Name field. 15. Click Apply. The Declaration tab is displayed. 16. Enter Output_Variable in the Description field. 17. Confirm BOOL as the Data Type. 18. Click Apply, and then close the Declaration tab. The named variable is displayed on the logic sheet. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–109 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide Add a Comment 19. On the toolbar, click the Comment button. 20. On the logic sheet, click and drag to create a comment box. 21. Double-click the box to display the Item Properties window. 22. Enter text to be included as a comment. You can specify other properties, such as alignment, text size, and border style from this tab. 23. Close the Comment tab. The comment text is displayed on the logic sheet. 3–110 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development Use Macros with Comments 24. Double-click the Comment box to display the Item Properties window. 25. Click the Macros button. The Edit Macros window displays a list of macros that can be included with the comment text. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–111 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide 26. Scroll down to %DESCRIPTION, click to highlight, and copy it by pressing Ctrl+C. 27. Click OK to close the Edit Macro window. 28. Click inside the text area of the Comment field, and paste the macro by pressing Ctrl+V. The macro is added to the comment. 29. Close the Item Properties window. Insert a Network Divider 30. Click the Horizontal Network Divider button on the FBD toolbar. Move the pointer beneath the OR function to divide the logic sheet horizontally. 31. Click once to place the network divider on the logic sheet. Note: A new reference number 00002 is placed on the logic sheet. Compile the Program 32. On the Document menu, click Compile. 33. Click OK to save changes. The Comments for Audit Trail dialog box is displayed. You can add comments when you change a program, function, or function block. The comments provide an audit trail that can be viewed on reports. 3–112 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development 34. Enter a comment, and then click OK. 35. The Message View automatically opens and displays the status of the compile process. Fix any errors and compile the program again. Print Logic Sheets From the FBD, you can print the logic sheets displayed in the current window. Use the following steps to print the logic sheet for the OR function you created. 36. Display the logic sheet. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–113 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide 37. Use the View menu to adjust the view of the logic sheet. 38. On the File menu, use the following commands as needed: − Print Preview − Displays the sheets to be printed. − Print Setup − Displays printer settings. − Print − Displays copy and property settings. 39. On the File menu, click Print, and then click OK. You have completed the logic for the first part of the water tank alarm. Place a CTU Function Block on the Logic Sheet. 40. Open the Test_Project project. 41. Use the Select Function (Block) button to place a CTU on the logic sheet in the second network. 42. Double-click the CTU function block. 43. On the Item Properties window, perform the following actions: − Enter CTU_1 in the Instance Name field − Click Apply. − Check double space. − Close the Item Properties. 3–114 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development Place Variables on the Logic Sheet 44. Pass the output value of the alarm to the input of the counter. To do this, copy and paste the output variable, Alarm, from the first network to top input (CU) of the CTU. Note: When you use the output variable from a previous network as the input to another block of logic, the value passes from the output resulting from the input of the second network. 45. Use the Local Variable Tool button and connect a variable to the middle input terminal (R for Reset) of the CTU Function Block. 46. Use the Local Variable Tool button and connect a variable to the bottom input terminal (PV for PreSet Value) of the CTU Function Block. 47. Use the Tagname Tool button and connect a variable to the top output terminal (Q for True if Current Value = Preset Value)) of the CTU Function Block. 48. Use the Local Variable Tool button and connect a variable to the bottom input terminal (CV for Current Value) of the CTU Function Block. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–115 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide Declare the Variables for the CTU Function Block Reset Variable 49. Double-click the Reset input variable to display the Item Properties window. 50. Enter Reset in the Variable Name field. 51. Click Apply, and then click the Declaration button. 52. On the Declaration tab, enter BOOL as the Data Type, and then click Apply. 53. Close the Item Properties window. Preset Variable 54. Double-click the Preset input variable to display the Item Properties window. 55. Enter Preset_Value in the Variable Name field. 56. Click Apply, and then click the Declaration button. 57. On the Declaration tab, confirm INT as the Data Type and click Apply. Then, close the Item Properties window. 3–116 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development Q Variable 58. Double-click the Q output variable to display the Item Properties window. 59. Enter Q in the Variable Name field. 60. Click Apply, and then click the Declaration button. 61. On the Declaration tab, confirm BOOL as the Data Type. 62. Click Apply, and then close the Item Properties window. CV Variable 63. Double-click the CV output variable to display the Item Properties window. 64. Enter Current_Value in the Variable Name field. 65. Click Apply, and then click the Declaration button. 66. On the Declaration tab, enter INT as the Data Type. 67. Click Apply, and then close the Item Properties window. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–117 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide Compile the Program and Print Logic Sheet 68. Compile the program and correct any errors. 69. Print the logic sheet. 3–118 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development Writing Ladder Diagram Logic Ladder Diagram (LD) is a graphical language that uses a standard set of symbols to represent relay logic. A ladder diagram resembles an electrical wiring diagram and can be divided into sections, named rungs. The basic elements are coils and contacts connected by links and defined by left and right power rails. A ladder diagram follows the power flow characteristics of relay logic. Functions and function blocks that have at least one binary input and output can be used in LD diagrams. Components of a ladder diagram are: • Contacts. • Coils. In this section, you will write LD logic for a water tank alarm. One of the program inputs (represented by a contact) connects to a sensor to detect if the water level is too high. A second input (contact) detects if the water level is too low. The output sets an alarm (represented by a coil) if the water level is too high or too low. A counter counts the number of times the alarm is set. Figure 25 shows the completed LD logic. Figure 25 – LD logic Creating a User Document Project logic is created as user documents. User documents include programs, functions, function blocks, and data types. Contacts A contact is an element in LD language that represents an input or state of a variable. The state is referred to as ON or OFF, and is equivalent to Boolean states True (1) and False (2). A contact is not used to change the value of a variable. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–119 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide Table 12 lists the contacts types, symbol, and description. Table 12 – Contacts Contact Type Symbol Description Normally Open —| |— The state of the left link is copied to the right link if the state Normally —| / |— of the Boolean variable is On. Closed —| P |— Positive The state of the left link is copied to the right link if the state Transition —| N |— of the Boolean variable is Off. Negative The state of the right link is On from one evaluation to the Transition next when the associated variable changes from Off to On while the state of the left link is On. The state of the right link is On from one evaluation to the next when the associated variable changes from On to Off while the state of the left link is On. The Contact Tool button is used to place contacts on the logic sheet. Coils A coil represents an output state. It can be used to change the state of the associated Boolean variable. The following table lists the coils types, symbols, and description. Contact Type Symbol Description Normal (Momentary) ( ) The state of the left link is copied to the associated Negated (Momentary) ( / ) Boolean variable and to the right link. Positive Transition (P) The inverse of the state of the left link is copied to the Negative (N) associated Boolean variable and to the right link. Transition (S) Set (Latch) The state of the associated Boolean variable is On from one (R) evaluation to the next if the left link changes from On to Off. Reset (Unlatch) The associated Boolean variable is set to On if the left link is in the On state and remains On until reset by the RESET coil. The associated Boolean variable is reset to Off if the left link is in the On state and remains Off until set by the SET coil. The Coil Tool button is used to place coils on the logic sheet. 3–120 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development Lab 16 : Writing Ladder Diagram Logic Introduction In this lab, you will write LD logic for a water tank alarm. Objectives After completing this lab, you will be able to: • Create a user document. • Place contacts and coils on the logic sheet. • Declare contacts and coils. Lab Procedure Create a User Document Project logic is created as user documents. User documents include programs, functions, function blocks, and data types. Use the following steps to: • Create a new user document. • Name the program LD1. 1. Open any created project. 2. Expand the Application tree, right-click the User Documents folder, and then click New Document. 3. In the Name field, enter LD1. 3–121 4. In the Document Type area, click Program. 5. In the Language area, click Ladder Diagram. 6. In the Application Type area, click Control. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide 7. Click OK to save. The document is opened in the LD editor, displaying the logic sheet. 8. Click the Workspace View button to maximize the display. 9. Click Zoom to Fit button to display the full logic page. Note: The left power rail is displayed on the logic sheet. 10. On the Projects menu, click Project Options, and then click the Annotation tab. 11. Enable Annotation on by default. 12. Enable Monitor Value on by default. 13. Click OK. Place Contacts and Coils on the Logic Sheet 14. Click the Contact Tool button on the toolbar and place it on the logic sheet. This represents the water level input. 15. Click the Contact Tool button on the toolbar and place the second contact below the first contact. This represents the second water level input. 3–122 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development 16. Click the Link Tool button and draw wires connecting the contacts as follows: − Connect each contact to the left power rail. − Connect the second contact to the first contact. 17. Click the Coil Tool button on the toolbar, and then place it on the logic sheet. This represents the alarm output. 18. Click the Link Tool button, and then connect the horizontal link to the coil. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–123 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide Declare Contacts and Coils 19. Double-click the first contact to display the Item Properties window. 20. Enter Water_High in the Variable Name field. 21. Click Apply. The Declaration window is displayed. 22. Confirm the Name, Data Type as BOOL, and Variable Type as Local. 23. Close the Item Properties window. The contact is labeled on the logic sheet. 3–124 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development 24. Double-click the second contact to display the Item Properties window. 25. Enter Water_Low in the Variable Name field. 26. Click Apply. The Declaration window is displayed. 27. Confirm the Name, Data Type as BOOL, and Variable Type as Local. 28. Close the Item Properties window. The contact is labeled on the logic sheet. 29. Double-click the coil to display the Items Properties window. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–125 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide 30. Enter Alarm_On in the Variable Name field. 31. Click Apply. The Declaration window is displayed. 32. Confirm the Name, Data Type as BOOL, and Variable Type as Local. 33. Close the Item Properties window. The coil is labeled on the logic sheet. You have completed the Ladder Diagram logic for the first network. Place a CTU Function Block on the Logic Sheet 34. Open the Test_Project project. 35. Open LD1. 36. Click the Power Rail Tool button on the LD toolbar, and then place an explicit right power rail on the logic sheet. 37. Use the Select Function (Block) button to place a CTU on the logic sheet in the second network. 38. Display the Item Properties window for the CTU function block 39. Enter Counter_1 in the Instance Name field. 40. Check Double Space. 41. Click Apply. 42. Close Item Properties. Place Contacts on the Logic Sheet 43. Pass the output value of the alarm to the input of the counter. To do this, click the Link Tool button, and then connect the Alarm to the right power rail. 44. Use the Contact Tool button to place a contact on the logic sheet, and then connect it to the CU terminal on the counter. 45. Display the Item Properties window for the contact. 46. Enter Input_3 in the Variable Name field. 47. Confirm the contact as Normally Closed. 48. Click Apply. 49. Confirm Name, Data Type as BOOL, and Variable Type as Local. 3–126 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Participant Guide Application Development 50. Close Item Properties. 51. Place a second contact on the logic sheet, and then connect it to the Reset terminal on the counter. 52. Display the Item Properties window for the contact. 53. Enter Reset_Counter_1 in the Variable Name field. 54. Confirm the contact as Normally Open. 55. Click Apply. 56. Confirm Name, Data Type as BOOL, and Variable Type as Local. 57. Close Item Properties. Place a Coil on the Logic Sheet 58. Use the Coil Tool button to place a coil on the logic sheet, and then connect it to the Q terminal on the counter. 59. Display the Item Properties window for the coil. 60. Enter Output in the Variable Name field. 61. Confirm the coil as Normal. 62. Click Apply. 63. Confirm Name, Data Type as BOOL, and Variable Type as Local. 64. Close Item Properties. 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 3–127 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved Internal
Application Development Participant Guide Place Local Variables on the Logic Sheet 65. Use the Local Variable Tool button to place a local variable on the logic sheet, and then connect it to the Preset Value (PV) terminal of the CTU function block. 3–128 8602 Triconex General Purpose (Tri-GP) Configuration and Implementation A.0 Schneider Electric Proprietary and Confidential Information © 2021 Schneider Electric Systems USA, Inc. All Rights Reserved
Search
Read the Text Version
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128