Programming Manual Logix5000 Controllers Add On Instructions Catalog Numbers 1756 ControlLogix, 1756 GuardLogix, 1768 CompactLogix, 1768 Compact Gua
Preface Resource Description Compact GuardLogix Controllers User Manual, publication 1768-UM002C Guide for using Compact GuardLogix™ controllers. Des
A access Add-On Instructions 77 Add Element dialog box 77 Add-On Instruction Definition Editor 42 alias parameter 31, 42 array 31 C Change H
Index changing 23 copy 64 definition 19 generate 64 language switching 23 remove 64 restricted actions 19, 23 source protection 23 L lang
Index tags 34 safety Add-On Instruction copy 90 import 96 safety application instructions restrictions 28 safety instruction signature 19, 24
Rockwell Automation support Rockwell Automation provides technical information on the web to assist you in using its products. At http://www.rockwe
Preface Term Definition Passed by value When an argument is passed to a parameter by value, the value is copied in or out of the parameter when the
Chapter 1 Designing Add-On Instructions Add-On Instructions are available beginning with RSLogix 5000, version 16. Add-On Instructions are custom inst
Chapter 1 Designing Add-On Instructions An Add-On-Instruction can be used across multiple projects. You can define the instructions, the instruct
Designing Add-On Instructions Chapter 1 Class information for safety controller projects appears on the General tab as well. The class can be sta
Chapter 1 Designing Add-On Instructions Parameters The parameters define the instruction interface; that is, how the instruction appears when use
Designing Add-On Instructions Chapter 1 See Creating an Alias Parameter for a Local Tag on page 31. Data Type Parameters and local tags are used t
Chapter 1 Designing Add-On Instructions Logic routine The logic routine of the Add-On Instruction defines the primary functionality of the instru
Designing Add-On Instructions Chapter 1 Optional Scan Modes routines You can define additional routines for scan mode behavior. Instruction signat
Important user information Read this document and the documents listed in the additional resources section about installation, configuration, and
Chapter 1 Designing Add-On Instructions Once generated, the instruction signature seals the Add-On Instruction, preventing it from being edited w
Designing Add-On Instructions Chapter 1 Change history The Change History tab displays the creation and latest edit information that is tracked by
Chapter 1 Designing Add-On Instructions The Instruction Help Preview shows how your instruction will appear in the various languages, based on pa
Designing Add-On Instructions Chapter 1 direct programmatic access to controller or program scope tags. This lets the Add-On Instruction be a stan
Chapter 1 Designing Add-On Instructions • Copy the instruction signature • Create or copy a signature history entry• Create instances of the Add-
Designing Add-On Instructions Chapter 1 Each of the programming languages supported in Logix Designer application is targeted for different types
Chapter 1 Designing Add-On Instructions Limits cannot be accessed inside Add-On Instruction logic. The maximum data instance supported (which in
Designing Add-On Instructions Chapter 1 Aspect Main Routine Subroutine Add-On Instruction Accessibility N/A Within program (multiple copies, o
Chapter 1 Designing Add-On Instructions Programmatic access to data Input and Output parameters and local tags are used to define an instruction-
Designing Add-On Instructions Chapter 1 Safety application instructions, such as Safety Mat (SMAT), may be used in safety Add-On Instructions only
Summary of changes This manual contains new and updated information. The following table contains the changes made to this revision. Topic Page Updat
Chapter 1 Designing Add-On Instructions Attribute Name Data Type Attribute Description MajorRevision DINT Major revision number of the Add-On
Designing Add-On Instructions Chapter 1 Selecting a data type for a parameter The Logix5000 controllers perform DINT (32 bit) and REAL (32 bit) ma
Chapter 1 Designing Add-On Instructions Tip: When you monitor an array InOut parameter inside of the logic routine, the parameter definition is
Designing Add-On Instructions Chapter 1 The following picture shows Simulation instruction in a ladder. • If you want the parameter’s value displa
Chapter 1 Designing Add-On Instructions Tip: When you are using your Add-On Instructions, the Visible setting may be overridden in Function
Designing Add-On Instructions Chapter 1 Constant values InOut parameters may be designated as constant value tags to prevent their data from being
Chapter 1 Designing Add-On Instructions Take time to plan your instruction design. Advance planning can identify issues that need to be addressed
Designing Add-On Instructions Chapter 1 Parameters • What data needs to be passed to the instruction?• What information needs to be accessible ou
Chapter 1 Designing Add-On Instructions • Identify local tags you might use in your instruction. Local tags are useful for items such as intermed
Chapter 2 Defining Add-On Instructions Follow these steps to create a New Add-On Instructions. 1. Open a new or existing project.2. Right-click the A
Chapter 2 Defining Add-On Instructions The Class field is available on the Add-On Instructions dialog box for safety controller projects. 6. In th
Defining Add-On Instructions Chapter 2 4. In the Data Type list, choose the type based on the parameter usage: • An Input parameter is a passed by
Chapter 2 Defining Add-On Instructions 11. In the Constant list, select InOut parameters check box you want todesignate as constant values.12. Rep
Defining Add-On Instructions Chapter 2 • Program parameters that reference a module must connect to a module, andcannot reference other module re
Chapter 2 Defining Add-On Instructions Use the Add-On Instruction Definition Editor to create the local tags for your instructions. Local tags con
Defining Add-On Instructions Chapter 2 Default values are loaded from the Add-On Instruction definition into the tag of the Add-On Instruction dat
Chapter 2 Defining Add-On Instructions If you edit an Add-On Instruction by adding, deleting, renaming, reordering, or changing the status or usag
Defining Add-On Instructions Chapter 2 parameters have the same name, but different operational definitions, importing or pasting may impact the b
Chapter 2 Defining Add-On Instructions If you want to select which specific tags and values to copy, click the pull-down arrow of the copy defaul
Defining Add-On Instructions Chapter 2 3. Edit your logic by using the available language editors.Execution considerations for Add-On Instructions
Table of contents Studio 5000 environment...9 Additional resou
Chapter 2 Defining Add-On Instructions Scan Mode Description Prescan Occurs when the controller either powers up in Run mode or transitions fr
Defining Add-On Instructions Chapter 2 Prescan routine When the controller transitions from Program mode to Run mode or when the controller powers
Chapter 2 Defining Add-On Instructions 3. Click New for Prescan routine.4. On the New Scan Mode Routine dialog box, from the Type list, select the
Defining Add-On Instructions Chapter 2 Postscan routine Postscan mode occurs only for logic in a Sequential Function Chart Action when the Action
Chapter 2 Defining Add-On Instructions 4. On the New Scan Mode Routine dialog box, from the Type list, select the type of programming language; La
Defining Add-On Instructions Chapter 2 • Values are passed to Input parameters from their arguments in the instruction call.• Values are passed
Chapter 2 Defining Add-On Instructions 4. On the New Scan Mode Routine dialog box, from the Type list, select the type of programming language; La
Defining Add-On Instructions Chapter 2 EnableIn parameter and ladder diagrams In the ladder diagram environment, the EnableIn parameter reflects t
Chapter 2 Defining Add-On Instructions If any parameters or tags become unverified due to the change of class, they are identified on the Paramet
Defining Add-On Instructions Chapter 2 Monitoring logic with data context views You can simplify the online monitoring and troubleshooting of your
Table of Contents Using standard and safety tags ... 34 Data access control...
Chapter 2 Defining Add-On Instructions Instruction Description True This is simply the execution of the main logic routine. False In a ladder
Defining Add-On Instructions Chapter 2 For procedures on how to use the Source Protection feature, refer to the Logix5000 Controllers Security Pr
Chapter 2 Defining Add-On Instructions 1. On the Signature tab on the Add-On Instruction Definition Editor, clickAdd to History.2. In the Create
Defining Add-On Instructions Chapter 2 Tip: When an instruction is sealed, the instruction signature is displayed on the faceplate of the inst
Chapter 2 Defining Add-On Instructions This is an example of the Extended Description Text field in the Help tab on the Add-On Instruction Definit
Defining Add-On Instructions Chapter 2 a. For the logic routine, describe execution of the instruction whenEnableIn is true.b. For the EnableInFal
Chapter 2 Defining Add-On Instructions Project documentation With RS Logix 5000 software, version 17 and later, you have the option to display pro
Defining Add-On Instructions Chapter 2 Project documentation that supports multiple translations includes these variables: • Component description
Chapter 2 Defining Add-On Instructions If the stop pushbutton is pressed (opened), then the motor stops. The following screen capture shows the Ge
Defining Add-On Instructions Chapter 2 The following screen capture shows the Motor Starter Example ladder logic. Rock well Automati on Publicati
Table of Contents Verifying individual scan modes... 59 Defining source protection f
Chapter 2 Defining Add-On Instructions The following diagrams show the Motor Starter instruction called in three different programming languages.
Defining Add-On Instructions Chapter 2 The Simulation_DT_1st Add-On Instruction adds a dead time and a first-order lag to an input variable. The f
Chapter 2 Defining Add-On Instructions The following image shows the Simulation example logic. Ladder diagram configuration In this example, the i
Defining Add-On Instructions Chapter 2 Function block diagram configuration The PIDE instruction sends the control variable to the Simulation_DT_1
Chapter 3 Using Add-On Instructions Add-On Instructions are used in your routines like any built-in instructions. You add calls to your instruction a
Chapter 3 Using Add-On Instructions 2. From the Element list, select the Add-On Instruction you want to add to your routine.76 Rockwell Automati
Using Add-On Instructions Chapter 3 3. Click to display the instruction help for any instruction in the browser.4. Click OK.Follow this procedure
Chapter 3 Using Add-On Instructions 5. Define arguments for each Parameter on the instruction call.The instruction appears as follows in each of t
Using Add-On Instructions Chapter 3 Structured Text: The instruction expects arguments for required parameters as listed in the instruction tool
Table of Contents Importing an Add-On Instruction... 94 Import considerations...
Chapter 3 Using Add-On Instructions 5. In the routine that that includes the Add-On Instruction, create anothermodule reference parameter.1. In t
Using Add-On Instructions Chapter 3 the down arrow and choose the module reference parameter from the program. You can now access the attributes
Chapter 3 Using Add-On Instructions The following procedures demonstrate how to use the Jog parameter of the Motor Starter Add-On Instructions. Us
Using Add-On Instructions Chapter 3 Using the Jog command in function block diagram Any parameter can be made visible or invisible except those de
Chapter 3 Using Add-On Instructions 4. Wire to the pin for the parameter.Using the Jog command in structured text Follow this procedure when you
Using Add-On Instructions Chapter 3 a. For either a Function Block or Ladder Diagram, click Propertiesfor the instruction. b. For Structured Text
Chapter 3 Using Add-On Instructions 1. Right-click the instruction call in any routine.2. Select Open Instruction Logic.The Language Editor opens
Using Add-On Instructions Chapter 3 To edit the logic of the Add-On Instruction, select the instruction <definition> in Data Context. You ca
Chapter 3 Using Add-On Instructions If the Source Protection attribute is not listed, then the instruction is not protected. You can copy an Add-O
Using Add-On Instructions Chapter 3 4. Go to the other project where you want to paste the instruction.5. Right-click the Add-On Instructions fold
Preface This manual shows how to use Add-On Instructions, which are custom instructions that you design and create, for the Logix Designer application
Chapter 4 Importing and Exporting Add-On Instructions When you export an Add-On Instruction, the exported Add-On Instruction includes all of its para
Chapter 4 Importing and Exporting Add-On Instructions Follow these steps to export to separate files. 1. In the Controller Organizer, right-click
Importing and Exporting Add-On Instructions Chapter 4 To use Add-On Instructions that have been exported in a separate file, without references,
Chapter 4 Importing and Exporting Add-On Instructions 3. In the File name box, type a name for the file.4. Select the Include referenced Add-On In
Importing and Exporting Add-On Instructions Chapter 4 User-Defined Data Types Add-On Instructions cannot overwrite User-Defined Data Types. Add-
Chapter 4 Importing and Exporting Add-On Instructions Tip: You can only rename an Add-On Instruction if it has not been sealed with an instruct
Importing and Exporting Add-On Instructions Chapter 4 2. Select the file with the Add-On Instruction and click Open.3. Review the Import Configurat
Chapter 4 Importing and Exporting Add-On Instructions The Property Compare tab shows the differences between the instructions, in this case, the
Importing and Exporting Add-On Instructions Chapter 4 Important: Check each routine where your Add-On Instruction is used to make sure that your
Komentarze do niniejszej Instrukcji