DeviceLogix System User Manual
Important User Information Solid state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines for the Application, Installation and Maintenance of Solid State Controls (publication SGI-1.1 available from your local Rockwell Automation sales office or online at http://www.rockwellautomation.com/literature/) describes some important differences between solid state equipment and hard-wired electromechanical devices.
Summary of Changes Introduction The release of this document contains new and updated information. To find new and updated information, look for change bars, as shown next to this paragraph. Updated Information This document contains the following changes.
Chapter 1 Summary of Changes Notes: 4 Publication RA-UM003B-EN-P - February 2010
Table of Contents Preface Purpose of This Manual. . . . . . . . . . . . . . . Who Should Use This Manual . . . . . . . . . . . . . . . . . . . . . . . Related Terms. . . . . . . . . . . . . . . . . . . . . . Common Techniques Used in This Manual. .............. 9 .............. 9 .............. 9 . . . . . . . . . . . . . 10 What is DeviceLogix Functionality? Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents Configure the Macro Instruction. . . . . . . . . . . Work with the Macro Instruction . . . . . . . Edit the Macro Definition and Parameters . Offline Operations . . . . . . . . . . . . . . . . . . . . Online Operations . . . . . . . . . . . . . . . . . . . . Go Online . . . . . . . . . . . . . . . . . . . . . . . . Online Animation . . . . . . . . . . . . . . . . . . Change Logic. . . . . . . . . . . . . . . . . . . . . . Enable and Disable Logic . . . . . . . . . . . . . Verify Logic . .
Table of Contents Verify Logic . . . . . . . . . . . . . . . Compare Logic . . . . . . . . . . . . Upload and Download Logic . . Forcing . . . . . . . . . . . . . . . . . . Clear Latched Hardware Faults . Recovery Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 123 123 125 126 126 . . . .
Table of Contents Register EDS Files and Add Devices Offline/Online What This Appendix Contains . EDS Files . . . . . . . . . . . . . . . . Unregister EDS files . . . . . . Register EDS Files . . . . . . . Add Devices offline. . . . . . . . . Add Devices online. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Preface Purpose of This Manual Who Should Use This Manual This manual describes how to install and configure devices using DeviceLogix. It also describes how to navigate and use the old DeviceLogix Ladder Editor, the new DeviceLogix Ladder Editor, and the DeviceLogix Function Block Editor.
Chapter 1 Preface Common Techniques Used in This Manual The following conventions are used throughout this manual: • Bulleted lists provide information, not procedural steps. • Numbered lists provide sequential steps. • Pictures of keys and/or dialogs represent the actual keys you press or the dialogs you use. • Actions you must perform appear in bold and look like the following example: Select Unregister a device.
Chapter 1 What is DeviceLogix Functionality? Introduction DeviceLogix functionality has been added to a number of Rockwell Automation devices to control outputs and manage status information locally within the device. The configuration of the DeviceLogix functionality is accomplished through the DeviceLogix Editor.
Chapter 1 What is DeviceLogix Functionality? Inputs and Outputs Inputs and outputs can be one of two types. • Physical - Inputs and outputs realized by physical connections to the device. These are referred to as Discrete/Analog Inputs or Discrete/Analog Outputs. • Networked - Inputs consumed by the device from the network and outputs produced by the device onto the network. Input and Output Bits There are five types of DeviceLogix inputs.
What is DeviceLogix Functionality? Chapter 1 There are two types of DeviceLogix outputs: • Device Output - Hardware outputs that are the actual outputs, such as lights and actuators, attached to a particular device. Without DeviceLogix functionality, the master would normally control the outputs via consumed data. In fact, if there is no local logic controlling an output, the master controls the output as it would if DeviceLogix functionality were not running on the device.
Chapter 1 What is DeviceLogix Functionality? Local Ladder Logic The local logic of a DeviceLogix device consists of rung, branch, contact, output coil, and box instructions. A box instruction performs a specific function (such as Timer or Counter). Contact and coil instructions could be hardware data, networked data, and fault and status bits that are available for use in the local logic. Additionally, contact could also refer the output of a box instruction.
What is DeviceLogix Functionality? Chapter 1 RSNetWorx for DeviceNet Software Operating Modes RSNetWorx for DeviceNet software lets you select online or offline mode, as described below. • Offline - RSNetWorx for DeviceNet software is not connected to the network. • Online - RSNetWorx for DeviceNet software is connected to the network and is capable of communicating with devices on the network. Drive Tools Software Operating Modes Drive Tools software lets you select online mode, as described below.
Chapter 1 What is DeviceLogix Functionality? Launch the DeviceLogix Editor After you configure the properties for your DeviceLogix-enabled device (for more information, see Appendix A), you can launch the DeviceLogix Editor. You see an additional tab in the device properties dialog box for all DeviceLogix-enabled devices. This tab is labeled DeviceLogix. This tab provides access to the start-up window for the DeviceLogix Editor.
What is DeviceLogix Functionality? Chapter 1 To start the DeviceLogix Editor for a DeviceLogix-enabled device, click Start Logic Editor. On the DeviceLogix Editor Style Selection dialog, you are prompted to select the editor type that you want to launch. After selecting an editor type, click OK. If the current device does not support one of the editor types, that editor type will be grayed out. IMPORTANT If you select an editor type for a particular device and that type is committed to the .
Chapter 1 What is DeviceLogix Functionality? Notes: 18 Publication RA-UM003B-EN-P - February 2010
Chapter 2 Navigate the Function Block Editor Interface What This Chapter Contains Components Read this chapter to learn more information about the Function Block Editor interface. The following table lists what this chapter contains and where to find specific information.
Chapter 2 Navigate the Function Block Editor Interface Menus Tabbed Instruction toolbar Standard toolbar Online toolbar Function block elements Schematic view Status bar Message pane DeviceLogix Function Block Elements Function Block elements consist of: • I/O components: the input and output source of the product, or I/O information from the network • Function block instructions: all types of DeviceLogix instructions.
Navigate the Function Block Editor Interface Chapter 2 I/O Components In the following sections, we will briefly describe each of the I/O components and include their graphic from the Function Block Editor. You can drag each of these I/O components from the instruction toolbar, or click the icon and have it added into the current schematic, or select Edit > Add Element to add the I/O component.
Chapter 2 Navigate the Function Block Editor Interface Analog Input Point (AIP) The following kinds of analog inputs are supported: • physical local analog input point • network analog input point • local analog miscellaneous point Analog Output Point (AOP) The following kinds of analog outputs are supported: • physical local analog output point • network analog output point 22 Publication RA-UM003B-EN-P - February 2010
Navigate the Function Block Editor Interface Chapter 2 Function Block Instructions The DeviceLogix Function Block Editor has several categories of function block types: • Process • Filter • Select/Limit • Statistical • Timer/Counter • Compare • Compute/Math • Move/Logical • Macro Block Each function block type has the following tabs on its property pages: • General tab - displays general information about this function block instruction.
Chapter 2 Navigate the Function Block Editor Interface Alarm The Alarm function block initiates an alert based on the comparison between the input value and the threshold. The output of the DeviceLogix Alarm function block contains these alerts. • High-High alarm • High alarm • Low alarm • Low-Low alarm The details of the Alarm function block are outlined in the table.
Navigate the Function Block Editor Interface IMPORTANT Chapter 2 When data values are large, switching between REAL and DINT data types may cause a minimal loss of accuracy. For example, a value of 99999999 DINT will be rounded up to 100000000 REAL when you switch to a REAL data type and then back to a DINT data type. Timing Diagnosis The DeviceLogix Timing Diagnosis function block object determines whether the occurrence of the expected event is within the preset timing interval.
Chapter 2 Navigate the Function Block Editor Interface • Once the Trig Finish event occurs, or if a Retrigger event is detected, or the Late Finish status is reported, the function block stops operation, and the internal timer stops timing. The function requires a reset event to perform another operation. • In all cases, the Reset signal overrides all other function block functionality. If the Reset Binding attribute is not supported or it is not bound, the function block behaves as if it is tied low.
Navigate the Function Block Editor Interface Chapter 2 The PID equation controls the process by sending an output to the actuator device. The greater the error between the setpoint and process variable input, the greater the output will be. An additional value (feedforward or bias) can be added to the control output as an offset. The PID result (control variable) drives the process variable toward the setpoint.
Chapter 2 Navigate the Function Block Editor Interface The PID function has Enable In and Process Variable as inputs, and Enable Out and Control Variable as outputs, as described in the following tables. Input Type Default Description Enable In BOOL 1 Enable In PV REAL 0.0 Process Variable Output Type Default Description Enable Out BOOL 0 Enable Out CV REAL 0.
Navigate the Function Block Editor Interface Chapter 2 Manual and Automatic Modes The PID function block automatically provides bumpless transfer from manual mode to auto mode. The PID function block back-calculates the value of the integral accumulation term required to make the CV output track the set output value in manual mode. In this manner, when the loop switches to auto mode, the CV output starts off from the set output value and no "bump" in output value occurs.
Chapter 2 Navigate the Function Block Editor Interface Zero-crossing is deadband control that lets the function block use the error for computational purposes as the process variable crosses into the deadband until the process variable crosses the setpoint. Once the process variable crosses the setpoint (error crosses zero and changes sign), and as long as the process variable remains in the deadband, the function block considers the error value to be zero.
Navigate the Function Block Editor Interface CV Min (at 0%) REAL 0.0 Chapter 2 Minimum value for the unscaled Control Variable (CV). This parameter cannot be configured when the DeviceLogix logic is in the Run mode. Positive Deviation Alarm Limit REAL 0.0 High deviation alarm from the set point. Negative Deviation Alarm Limit REAL 0.0 Low deviation alarm from the set point.
Chapter 2 Navigate the Function Block Editor Interface Filter Category The Filter category includes a single instruction type: Low Pass Filter. Low Pass Filter The DeviceLogix Low Pass Filter (LPF) function block provides a filter to attenuate input frequency above the cutoff frequency. Let Wlag stand for the value of the attribute WLag and Tsample is the value of the sampling period.
Navigate the Function Block Editor Interface Chapter 2 The above discussion outlined the general process of low-pass filtering. Specifically, the filter discussed order 1 LPF and order 2 LPF. Order 1 LPF The target analog filter is as follows. When bilinear transformation is applied, we take the wp as the actual cutoff frequency. That is, the target transform function is as follows. Then we apply the bilinear transformation. Therefore, the corresponding difference equation is as follows.
Chapter 2 Navigate the Function Block Editor Interface The valid parameter range is shown below. Parameters Data Range Initialize 0,1 WLag 0 < WLag = 3.402823466e+38F Order 1,2 Flotation 0, 1, 2, 3 FaultOption -3.402823466e+38F ~ 3.
Navigate the Function Block Editor Interface IMPORTANT Chapter 2 When data values are large, switching between REAL and DINT data types may cause a minimal loss of accuracy. For example, a value of 99999999 DINT will be rounded up to 100000000 REAL when you switch to a REAL data type and then back to a DINT data type. High/Low Limit The DeviceLogix High/Low Limit function block limits the input value within the specified data range.The High/Low Limit function block is outlined in detail below.
Chapter 2 Navigate the Function Block Editor Interface IMPORTANT When data values are large, switching between REAL and DINT data types may cause a minimal loss of accuracy. For example, a value of 99999999 DINT will be rounded up to 100000000 REAL when you switch to a REAL data type and then back to a DINT data type. Statistical Category The Statistical category includes a single instruction type: Moving Average.
Navigate the Function Block Editor Interface Chapter 2 The valid data ranges are as follows. Parameters Data Range SampleEnable 0, 1 NumberOfSamples 1 ~ 65535 SampleRate 0 ~ 65535 FaultOption 0, 1, 2, 3 FaultStateValue -2147483648 ~ 2147483647 (DINT) -3.402823466e+38F ~ 3.402823466e+38F (REAL) IMPORTANT When data values are large, switching between REAL and DINT data types may cause a minimal loss of accuracy.
Chapter 2 Navigate the Function Block Editor Interface If the device supports retentive type Timer or Ccounter, then the accumulate value of the Timer/Counter will be retained during power-down. When the power is cycled and the logic resumes running, it updates based on the previous accumulate value. On Delay Timer The On Delay Timer delays the output response to an input by a desired amount of time.
Navigate the Function Block Editor Interface Chapter 2 Off Delay Timer The Off-Delay Timer works the same way as the On-Delay Timer but instead of delaying the TRUE status of the output, it delays the FALSE status of the output. The input to this timer is a level sensitive FALSE with an edge-triggered reset on the FALSE to TRUE transition. This means that when the input is FALSE, the timer increments the accumulator and when the input goes TRUE the timer resets the accumulator.
Chapter 2 Navigate the Function Block Editor Interface The valid data ranges are as follows. Parameters Data Range PRE 0 ~ 65535 ACC 0 ~ 65535 Time Base 0 (1 ms), 1 (10 ms) Pulse Timer The Pulse Timer generates a TRUE value on its output for a fixed amount of time. The duration of the TRUE pulse is determined by the preset value along with the time base of the timer. When the input to the timer changes from FALSE to TRUE, it sets the output to TRUE and starts the accumulator counting.
Navigate the Function Block Editor Interface Chapter 2 The valid data ranges are as follows.
Chapter 2 Navigate the Function Block Editor Interface Up Counter The Up Counter has two inputs called Input and Reset and one output called Output. The Up counter simply counts up on a FALSE to TRUE transition and sets its output to TRUE when the accumulator reaches the preset value. The accumulator continues to count up until the counter is reset or it reaches 65,535. A TRUE value on the reset input zeros the accumulator and sets the output to FALSE.
Navigate the Function Block Editor Interface Chapter 2 An illustration of the Up Down counter function with a preset value set to 3 is below: The valid data ranges are as follows.
Chapter 2 Navigate the Function Block Editor Interface Compare Category The Compare category includes basic comparison functions, including the the instruction types: • Greater Than (GRT) • Greater Than or Equal To (GEQ) • Equal (EQU) • Not Equal (NEQ) • Less Than (LES) • Less Than or Equal (LEQ) • Mask (MEQ) Operation rules [all except Mask (MEQ)] The conditions and outputs of each function block are described below.
Navigate the Function Block Editor Interface IMPORTANT Chapter 2 When data values are large, switching between REAL and DINT data types may cause a minimal loss of accuracy. For example, a value of 99999999 DINT will be rounded up to 100000000 REAL when you switch to a REAL data type and then back to a DINT data type.
Chapter 2 Navigate the Function Block Editor Interface Compute/Math Category The Compute/Math category includes fundamental arithmetic operations, including the instructions types: • Add (ADD) • Multiply (MUL) • Subtract (SUB) • Divide (DIV) • Modulus (DINT) • Modulus (REAL) • Absolute (ABS) • Negative (NEG) • Square Root (SQR) • Power (XPY) Operation rules The conditions and outputs of each function block are described below.
Navigate the Function Block Editor Interface Chapter 2 Fault State Conditions and Rules Fault state conditions and rules are listed below.
Chapter 2 Navigate the Function Block Editor Interface Data ranges The valid data ranges for the compute instructions are as follows. Parameters Data Range SourceA -2147483648 ~ 2147483647 (DINT) -3.402823466e+38F ~ 3.402823466e+38F (REAL) Source B -2147483648 ~ 2147483647 (DINT) -3.402823466e+38F ~ 3.402823466e+38F (REAL) FaultOption 0, 1, 2, 3 FaultStateValue -2147483648 ~ 2147483647 (DINT) -3.402823466e+38F ~ 3.
Navigate the Function Block Editor Interface Chapter 2 Boolean Functions The Boolean functions are as follows. Note that the number of inputs can be changed on some functions and is product-specific.
Chapter 2 Navigate the Function Block Editor Interface Latch Functions There are two kinds of Latch functions: Set Dominant Latch (SR) and Reset Dominant Latch (RS). Unlike the Latch in RS Logix 5000, DeviceLogix Latch requires the Reset binding. So the Set/Reset appears in pair and the RS type and SR type have different element order. See its truth table below.
Navigate the Function Block Editor Interface Chapter 2 The Enable Line feature can have two data sources: • If an input uses Enable Line to bind with an input point or other function block’s output, the input retains this point’s data value. • If an input uses Enable Line in an unbound capacity, the input uses the default constant value (which you can set on each instruction’s property page).
Chapter 2 Navigate the Function Block Editor Interface Configuration Toolbars The Function Block Editor toolbars are: • Standard - Lets you perform general editing functions, verify logic, and toggle edit mode. • Tabbed Instruction - Lets you enter Boolean or Analog type I/O, and add functional elements to the schematic. • Online - Lets you perform online functions. This toolbar is enabled only when you are working on line.
Navigate the Function Block Editor Interface Chapter 2 Tabbed Instruction Toolbars The tabbed instruction toolbars are: • Process • Filter • Select/Limit • Statistical • Timer/Counter • Compare • Compute/Math • Move/Logical • Macro Block Independent of what instruction type you have selected, the following I/O components toolbar icons are always available.
Chapter 2 Navigate the Function Block Editor Interface Process Category Toolbar Process Category Toolbar Function Description Alarm Instruction Timing Diagnosis Instruction PID Instruction Filter Category Toolbar Filter Category Toolbar Function Description Low Pass Filter Instruction Select/Limit Category Toolbar Select/Limit Category Toolbar Function Description Select Instruction High Low Limit Instruction Low Pass Filter Instruction Statistical Category Toolbar Statistical Category Toolbar Funct
Navigate the Function Block Editor Interface Chapter 2 Timer/Counter Category Toolbar Timer/Counter Category Toolbar Function Description Pulse Timer Instruction On-Delay Timer Instruction Off-Delay Timer Instruction Up Counter Instruction Up Down Counter Instruction TIP When using the ACC feature, you may notice some minor differences in the Timer/Counter instructions.
Chapter 2 Navigate the Function Block Editor Interface Compute/Math Category Toolbar Compute/Math Category Toolbar Function Description Add Instruction Multiply Instruction Subtract Instruction Divide Instruction Modulus (DINT) Instruction Modulus (REAL) Instruction Absolute Instruction Negative Instruction Square Root Instruction Power Instruction 56 Publication RA-UM003B-EN-P - February 2010
Navigate the Function Block Editor Interface Chapter 2 Move/Logical Category Toolbar Move/Logical Category Toolbar Function Description AND Instruction Not AND Instruction OR Instruction Not OR Instruction Exclusive OR Instruction Exclusive Not OR Instruction NOT Instruction Set Latch Instruction Reset Latch Instruction Publication RA-UM003B-EN-P - February 2010 57
Chapter 2 Navigate the Function Block Editor Interface Macro Block Category Toolbar Beginning with DeviceLogix firmware revision 4, certain devices support Macro function block instructions. Once you define a Macro instruction, a new tabbed instruction toolbar appears. For more information on Macro function block instructions, refer to Chapter 3, Bind Function Blocks with I/O. Online Toolbar Use the Online toolbar to perform functions when you are working on line in the Function Block Editor.
Navigate the Function Block Editor Interface Schematic View Chapter 2 The schematic sheet is the area in which you place function blocks to create logic. The area is laid out on a grid with letters A through L representing the columns and numbers 1 through 12 representing the rows. This area is large enough to easily place all the function blocks, I/O tags, and associated connecting wires needed to create the desired logic. TIP The zoom level controls how much of the schematic you see at any given time.
Chapter 2 Navigate the Function Block Editor Interface Message Pane The message pane on the bottom of the Function Block Editor displays the results when you verify logic. If the Function Block Editor finds an error in your logic, click on the error or warning message in the message pane and the cursor goes to the place in the Function Block Editor where the error is in the logic. The message pane also displays the number of function blocks that are remaining in the device.
Navigate the Function Block Editor Interface Menus Chapter 2 The Function Block Editor has six menu options that allow you to create and maintain a schematic: • File • Edit • View • Communications • Tools • Help File Menu The File menu lets you perform printing functions and lets you exit the DeviceLogix Function Block Editor . File Menu Publication RA-UM003B-EN-P - February 2010 Function Description Print Sends the logic schematic to the printer.
Chapter 2 Navigate the Function Block Editor Interface Edit Menu The Edit menu lets you modify elements in the schematic. . Edit Menu Function Description Undo Cancels the last action. Redo Performs again the previously cancelled action. Cut1 Removes the selected function block element. Copy1 Duplicates the selected content to save it in the clipboard. Paste1 Places the content in the clipboard into the Function Block Editor at the position that your cursor is resting.
Navigate the Function Block Editor Interface Chapter 2 View Menu The View menu lets you modify your view of the schematic in the Function Block Editor. View Menu Publication RA-UM003B-EN-P - February 2010 Function Description Toolbars Opens the Toolbars dialog box to determine which toolbars display in the DeviceLogix Function Block Editor software. Status Bar Toggles between displaying and not displaying the status bar at the bottom of the Function Block Editor.
Chapter 2 Navigate the Function Block Editor Interface Communication Menu The Communications menu lets you work on line in the Function Block Editor. Communication Menu Function Description Upload Copies the configuration in the DeviceLogix-enabled device and displays it in the Function Block Editor. You lose any changes you made in the configuration and online animation starts.
Navigate the Function Block Editor Interface Chapter 2 Tools Menu The Tools menu lets you modify logic in the Ladder Editor. Tools Menu Function Description Logic Verify Checks for mistakes in a schematic. Confirms that: • each function block has the minimum number of pins bound • each attribute has the correct data type associated with it • the two ends of a binding are of the same type Compare Compares the logic configured in the device with the logic configured in the Function Block Editor.
Chapter 2 Navigate the Function Block Editor Interface Help Menu The help menu provides you with assistance when you are working in the Function Block Editor. Help Menu 66 Function Description Help Topics Accesses the help files available for the Function Block Editor. Release Notes Accesses release notes pertaining to DeviceLogix functionality or the Function Block Editor.
Chapter 3 Bind Function Blocks with I/O What This Chapter Contains Read this chapter to learn more information about the binding function blocks with I/O. The following table lists what this chapter contains and where to find specific information.
Chapter 3 Bind Function Blocks with I/O Overview of Inputs and Outputs Function blocks contain both inputs and outputs. Inputs to function blocks can be attached to any of the input types or to the output of another function block. Only one connection can be made to one function block input pin and an input cannot be tied to another input. Outputs from function blocks can be attached to either hardware or network outputs or to the inputs of other function blocks.
Bind Function Blocks with I/O Chapter 3 Outputs DeviceLogix device outputs (either Boolean or Analog) can connect to the output of any function blocks or can be driven directly by an input. There are two types of outputs described below. Connect I/O points and function block instructions Output Category Description Hardware Hardware outputs are the actual outputs (such as lights and actuators) attached to a particular device.
Chapter 3 Bind Function Blocks with I/O • A green circle indicates that the connection is valid. • A red circle indicates that the connection is invalid. Determine the status of a connection Once a connection is made, you can use the Negate and Assume Data Available options to determine the state of that connection. Negate Data The Negate function causes the status of the data to be negated before it enters the function block. The negate operation cannot be used for analog types.
Bind Function Blocks with I/O Chapter 3 Set Assume Data Available The Assume Data Available feature should be used when feedback paths are involved in your logic; this feature assists the Function Block Editor in determining the function block process order. When feedback paths are used, the Function Block Editor’s execution order algorithm may be unable to determine which function block needs to be resolved first.
Chapter 3 Bind Function Blocks with I/O Function Block Properties and Parameters To open a function block’s property page, double-click the function block on the schematic page. General tab The following is an example General tab: On this tab, the following fields are available: Field Description Function Block Type Displays the current function block type (read only).
Bind Function Blocks with I/O Chapter 3 Parameters tab On this tab, the following fields are available: Field Description Name Displays the list of parameter names (read only). Tip: EnableIn and EnableOut parameters are only available for those devices that support DeviceLogix v3.00. Value Displays the value of each listed parameter. In offline mode, some fields may be editable; those fields appear in white.
Chapter 3 Bind Function Blocks with I/O Configure the Macro Instruction Beginning with DeviceLogix firmware revision 4, certain devices support the Macro instruction, which defines a set of logic routines. Once defined, a Macro instruction behaves like other instructions in logic. A Macro definition contains an instruction and may reference any output inside this logic and wiring. It does not contain any product scope I/O.
Bind Function Blocks with I/O Chapter 3 Create the Macro Definition Complete these steps to create a new Macro definition. 1. Choose Tools > Macro > Create Macro Block. The Macro Block Definition dialog box appears, containing General, I/O, Parameter and Security tabs. 2. On the General tab, assign a unique and valid Name for the Macro block. Valid names are alpha-numeric and are limited to 16 characters. 3. Enter a Description. 4. Click OK.
Chapter 3 Bind Function Blocks with I/O Define the External I/O Binding To definte the input/output bindings of your new Macro block, complete these steps. 1. Choose Tools > Macro > Open Macro Block Definition. 2. Click the Input/Output tab. 3. Assign a Name for the I/O binding. 4. Select the Usage. 5. Select the Data Type. – BOOL: the defined I/O can be bound only with Boolean data. – ANALOG: the defined I/O can be bound with a wide class of basic data types. 6. Click OK.
Bind Function Blocks with I/O Chapter 3 Add Parameters While the Parameter tab in the Macro Block Definition dialog box allows you to edit parameters, you cannot add Macro instruction parameters here. You add parameters when you add an instance of the Macro instruction type to your logic. Set Macro Security Password protection provides the capability for Macro Block designers to protect definitions and parameters.
Chapter 3 Bind Function Blocks with I/O To enable security on a Macro block, complete these steps. 1. Choose Tools > Macro > Open Macro Block Definition. 2. Click the Security tab. 3. Select the Password Enabled box. 4. Type the New Password. 5. Confirm the password. 6. Click OK. When editing security-enabled Macro definitions or parameters, you may be prompted to enter the password. IMPORTANT 78 If you forget the password for the Macro block, you will not be able to access it.
Bind Function Blocks with I/O Chapter 3 Apply the Macro Definition When you click OK on any tab in the Macro Block Definition dialog box, your edits will be applied if the logic is valid. When you click OK or Logic on this dialog box, a tabbed editing window for the new Macro block displays. To close this tabbed window, right-click the tab, and choose Close. Your newly-defined Macro instruction will appear in the new Macro tab in the Instruction toolbar, along with other defined Macro instructions.
Chapter 3 Bind Function Blocks with I/O Manage the Macro Choose Tools > Macro Block > Macro Block Manager to open the Macro Block Manager dialog box, where you can select Macro blocks to modify or delete. You can delete a Macro block only if there are no instances of the Macro in the logic. You cannot undo a Macro block deletion.
Bind Function Blocks with I/O Chapter 3 3. Click the Edit Macro Block Parameters button. The dialog box expands to show the list of externally-viewable Macro Block Parameters. 4. Assign a unique Name for the Macro block parameter. 5. Select the block parameter that this Macro block parameter references from the Alias For drop-down list. 6. Click OK.
Chapter 3 Bind Function Blocks with I/O To view the Macro block parameters, choose Tools > Macro > Open Macro Definition, and click the Parameter tab. Consider these guidelines when editing the Macro definition. • Nested Macro block configuration is not supported. While you configure Macro block logic, all Macro block instructions in the Instruction toolbar are grayed-out so that you cannot add a Macro within a Macro definition.
Bind Function Blocks with I/O Offline Operations Chapter 3 Once configured, products containing DeviceLogix functionality can operate without a network to perform small local control functions. Rockwell Automation advises that you use standard DeviceNet cabling in these applications to accommodate the device’s power requirements and future configuration needs. When a network is not used, enable the Comm Status Override Parameter on the Device Parameters Tab.
Chapter 3 Bind Function Blocks with I/O 4. Once the upload or download is completed, click the Start Logic Editor button. You see: • The local logic resident in the device • The real-time status of the inputs and outputs indicated by data on the connecting wires. • Logic Enabled or Logic Disabled displayed in the online toolbar, depending on the state of the device. You can change the state by simply selecting the desired state.
Bind Function Blocks with I/O Chapter 3 To change the value, perform the following steps: 1. Double-click on the face of the function block you want to change. 2. Select the Parameters tab. 3. Locate the value that you want to change (values that can be changed are white). Enter the new value in the box. 4. Click OK. The new value takes immediate effect. If you are changing a preset, remember to Save the configuration the next time you exit from the Function Block Editor.
Chapter 3 Bind Function Blocks with I/O Change Logic While the Function Block Editor is running and animated, you can change the logic that appears on the schematic by first pressing the Edit button or selecting Tools > Edit. When you change the logic, the Function Block Editor will change from the Animated mode into Pending Edits mode. The logic in the device will not be affected and the current program will continue to run. However, the screen will not reflect the real-time status of the logic.
Bind Function Blocks with I/O Chapter 3 Enable and Disable Logic Logic Enable On Use the Logic Enable On function to notify the device to start processing the stored logic diagram. To set Logic Enable On, select Communications > Logic Enable On. Logic Enable Off Use the Logic Enable Off option to notify the device to stop executing the logic diagram. When you select this option, the device enters an idle state, turning off the Logic Enable Bit in the produced data.
Chapter 3 Bind Function Blocks with I/O The following figure shows an example verifcation in process: Compare Logic Use the Compare option to determine if the logic in the Function Block Editor matches the logic in the device. The results of the comparison display in a pop up window. To use the Compare function, select Tools > Compare.
Bind Function Blocks with I/O Chapter 3 Upload and Download Logic Upload Logic To upload logic, select Communications > Upload. The logic configuration in the device is read and displayed in the Function Block Editor. Any unsaved changes will be discarded and Online Animation begins. Note that some devices are capable of storing screen format information.
Chapter 3 Bind Function Blocks with I/O You can download when logic is enabled or disabled. If you download logic when logic is enabled, the download process occurs as follows: • The Function Block Editor checks to see if logic is enabled in the device. • If the logic is enabled, you are asked if you want to disable logic. If you: – Select No - the logic is not downloaded to the device and an error message displays. – Select Yes - the logic is downloaded to the device.
Bind Function Blocks with I/O Chapter 3 When you download, the downloaded information is not automatically stored into the RSNetWorx for DeviceNet software .dnt file. You must make sure you save any changes after you exit the DeviceLogix Editor to ensure that any changes made to the schematic are saved, including changes made as a result of an upload.
Chapter 3 Bind Function Blocks with I/O Forcing Inputs The following list describes the input force options. Input Force Option Description Force On Forces the input ON. Force Off Forces the input OFF. Remove Force Returns control of the input to the hardware device and turns the instruction color back to white. The following figure shows the result of placing a force on an input.
Bind Function Blocks with I/O Chapter 3 Notes: Publication RA-UM003B-EN-P - February 2010 93
Chapter 3 94 Bind Function Blocks with I/O Publication RA-UM003B-EN-P - February 2010
Chapter 4 Navigate the Old Ladder Editor Interface What This Chapter Contains Components Read this chapter to learn more information about the old Ladder Editor interface. The following table lists what this chapter contains and where to find specific information.
Chapter 4 Navigate the Old Ladder Editor Interface Menus Ladder element toolbar Standard toolbar Online toolbar Ladder elements Ladder Logic view Status bar Message pane Ladder Elements The ladder logic in the old Ladder Editor consists of rungs. The rung consists of functional instruction elements which include bits, latches, counters, and timers. Logic combinations are displayed on the left part of the rung and logic outputs are displayed on the right side of the rung.
Navigate the Old Ladder Editor Interface Chapter 4 Rung Element Rung Elements Element Description Rung Element -The basic executable unit in the old Ladder Editor. Each rung has at least one input condition and one output condition. The True or False value of an input determines the output value. You can add a comment to a rung to clarify or describe the instruction. Branch Element - Connection element that adds OR logic in the old Ladder Editor.
Chapter 4 Navigate the Old Ladder Editor Interface Bit Element Bit Elements Element Description Examine If Open (or XIO) Element Examine If Close (or XIC) Element Output Coil Bit (or Output Energize Bit) Element Latch Element Latch Elements Element Description Reset Dominant (RS) Latch Element Set Dominant (SR) Latch Element Latch Reset Element The old DeviceLogix Ladder Editor provides standard latching capabilities. These include the set dominant latch (SRL) and the reset dominant latch (RSL).
Navigate the Old Ladder Editor Interface Chapter 4 Set Dominant Latch When using a set dominant latch, the accompanying reset element must appear before the SRL element. Refer to the truth table for information about the set dominant latch. Function SR set dominant (A set dominant block goes to the set state if both inputs are true.) RS reset dominant (A reset dominant block goes to the false state if both inputs are true.
Chapter 4 Navigate the Old Ladder Editor Interface Counter Element Counter Elements Element Description Count Up Element - The up counter increments its accumulator when the input is true. It has a preset value and an accumulator value. Count Down Element - The counter decrements its accumulator when the input is true. It has a preset value and an accumulator value. Count Reset Element - Resets the accumulator and output value.
Navigate the Old Ladder Editor Interface Chapter 4 Down Counter The down counter can be an independent down counter or it can work in combination with an up counter as an up down counter. The down only counter can be consider an up down counter, but without count up input. The counter increments the accumulator any time the count up input changes from false to true and decrements the counter any time the count down input changes from false to true.
Chapter 4 Navigate the Old Ladder Editor Interface Timer Element Timer Elements Element Description Pulse Trig Timer - It has a preset value and an accumulator value. The timing base can be selected as 1 ms or 10 ms. On Trig Timer (On-delay Timer) - It has a preset value and an accumulator value. The timing base can be selected as 1 ms or 10. Off Trig Timer (Off-delay Timer). It has a preset value and an accumulator value. The timing base can be selected as 1 ms or 10.
Navigate the Old Ladder Editor Interface Chapter 4 At any point during the operation of the Timer, if it detects a true level on the Reset input, it will disable the Timer and set the output to false. The Timer must again be triggered by a false to true transition on the input. This means that if the input is true and the Timer is reset, the Timer will remain inactive. Even if the Reset changes back to false while the input is true, the Timer remains inactive.
Chapter 4 Navigate the Old Ladder Editor Interface On Delay Timer The On Delay Timer delays the output response to an input by a desired amount of time. When the input is true, the Timer increments the Accumulator and when the input goes false, the Timer resets the Accumulator. Each Timebase unit of time, the Timer increments the Accumulator. When the Accumulator reaches the preset value, the Timer sets the output to true. The Timer maintains the output true status as long as the input remains true.
Navigate the Old Ladder Editor Interface Chapter 4 Off Delay Timer The Off Delay Timer works the same way as the On Delay Timer but instead of delaying the true status of the output, it delays the false status of the output. The input to this timer is a level sensitive false with a level-triggered reset. This means that when the input is false, the Timer increments the Accumulator and when the input goes true, the Timer resets the Accumulator.
Chapter 4 Navigate the Old Ladder Editor Interface Configuration Toolbars The old Ladder Editor toolbars are: • Standard - Lets you perform general editing functions, verify logic, and toggle edit mode. • Ladder Element - Lets you add ladder elements to the old Ladder Editor. The toolbar changes based on the element you are adding (bit, latch, timer, or counter). You can drag and drop elements from this toolbar into the old Ladder Editor. • Online - Lets you perform online functions.
Navigate the Old Ladder Editor Interface Chapter 4 Ladder Element Toolbars The ladder element toolbars are: • Bit Element • Latch Element • Counter Element • Timer Element TIP It is not required for all DeviceLogix-enabled products to support all of the element types. The EDS file for each product provides information on what element are supported. If an element is not supported, it will not appear in the associated toolbar.
Chapter 4 Navigate the Old Ladder Editor Interface Latch Element Toolbar Latch Element Toolbar Function Description Rung Element Branch Element Branch Level Element Reset Dominant Latch Element Set Dominant Latch Element Latch Reset Element Counter Element Toolbar Counter Element Toolbar Function Description Rung Element Branch Element Branch Level Element Count Up Element Count Down Element Count Reset Element 108 Publication RA-UM003B-EN-P - February 2010
Navigate the Old Ladder Editor Interface Chapter 4 Timer Element Toolbar Timer Element Toolbar Function Description Rung Element Branch Element Branch Level Element Pulse Timer Element On Delay Timer Element Off Delay Timer Element Timer Reset Element Online Toolbar Use the Online toolbar to perform functions when you are working on line in the old Ladder Editor. Online Toolbar Function Description Upload the logic configuration from the device to the old Ladder Editor configuration tool.
Chapter 4 Navigate the Old Ladder Editor Interface Ladder Logic View The Ladder Logic View is the area in which you place functional elements to create logic. The printed ladder logic uses A4 sheets of paper. The ladder logic is printed at full size, regardless of the setting of the current zoom level. To make adjustments to the ladder logic before printing, you can use the print preview feature to see how it will print. The ladder can also be sent to a plotter for easier viewing.
Navigate the Old Ladder Editor Interface Status Bar Chapter 4 The Status bar, located on the bottom of the old Ladder Editor, provides a view of the current working status of the old Ladder Editor. You can toggle between displaying the Status Bar and not displaying it by selecting View > Status Bar. There are four panes that provide unique information about the old Ladder Editor.
Chapter 4 Navigate the Old Ladder Editor Interface File Menu The File menu lets you perform printing functions and lets you exit the old DeviceLogix Ladder Editor. File Menu Function Description Print Sends the ladder logic to a printer. Print Preview View the ladder logic before sending the logic to the printer. Print Setup Choose printer and printing options. Close Exit the old DeviceLogix Ladder Editor. Edit Menu The Edit menu lets you modify elements in the old Ladder Editor.
Navigate the Old Ladder Editor Interface Chapter 4 Edit Menu Function Description Edit Element Modifies the selected ladder element. It is possible to change the instruction type or the instruction type parameters. Note that it is possible to change only instruction types of the same category (bits, latch, timers, counters). Edit Element Comment Modifies the comment attached to the selected rung or instruction type. Note that you cannot add comments to branch or branch level elements.
Chapter 4 Navigate the Old Ladder Editor Interface Communication Menu The Communications menu lets you work on line in the old Ladder Editor. Communication Menu Function Description Upload Reads the logic configuration in the device and displays it in the old Ladder Editor. You lose any changes you made in the configuration and online animation starts. Download The logic configuration in the old Ladder Editor is transferred to the device and online animation starts.
Navigate the Old Ladder Editor Interface Chapter 4 Tools Menu The Tools menu lets you modify logic in the old Ladder Editor. Tools Menu Function Description Logic Verify Confirms that the logic that you configured is valid.
Chapter 4 Navigate the Old Ladder Editor Interface Help Menu The Help menu provides you with assistance when you are working in the old Ladder Editor. Help Menu 116 Function Description Ladder Editor Help Accesses the help files available for the old Ladder Editor. Release Notes Accesses release notes pertaining to DeviceLogix functionality or the old Ladder Editor. About DeviceLogix Opens the About Ladder Editor window to learn revision and copyright information about the Ladder Editor.
Chapter 5 Create Logic in the Old DeviceLogix Ladder Editor What This Chapter Contains Read this chapter to learn how to create logic in the old DeviceLogix Ladder Editor and about the options available to you when you work on line.
Chapter 5 Create Logic in the Old DeviceLogix Ladder Editor Dynamic tags are those created dynamically during configuration. They are the referenced output bits of latch, counter, and timer elements.
Create Logic in the Old DeviceLogix Ladder Editor Chapter 5 Go On Line Once you have created your logic and set up your scanlist or override parameters, you are ready to go on line. To go on line: 1. Click the Online icon on the RSNetWorx software toolbar. The RSNetWorx software will browse the network. 2. When the browsing is complete, double click the DeviceLogix-enabled device. 3. Click the DeviceLogix tab in the device properties window.
Chapter 5 Create Logic in the Old DeviceLogix Ladder Editor Online Animation Once you go on line and Logic Enable is set to on, online animation starts. The status of the I/O can be seen in the old Ladder Editor configuration pane. Note that in the online animation mode, you cannot edit instructions. Change Logic While the logic is running and animated, you can change the logic that appears in the old Ladder Editor. The old Ladder Editor changes from the animated mode to the pending edits mode.
Create Logic in the Old DeviceLogix Ladder Editor Chapter 5 • Select Yes - the logic does not continue to run in the device and new logic is downloaded to the device. When the download is complete, you are asked if you want to start the logic running again. If you: – Select No - the online toolbar displays Logic Enable Off. – Select Yes - the online toolbar displays Logic Enabled On; the old Ladder Editor is animated.
Chapter 5 Create Logic in the Old DeviceLogix Ladder Editor Logic Enable Off To cause the device to stop executing the logic configuration: Click Communications > Logic Enable Off. If the logic in the old Ladder Editor does not match the logic in the device, the Logic Enable On and Logic Enable Off functions are disabled (grayed out). You must verify the logic and download it to the device for the Logic Enable On and Logic Enable Off functions to be enabled.
Create Logic in the Old DeviceLogix Ladder Editor Chapter 5 Compare Logic Use the Compare option to determine if the logic in the old Ladder Editor matches the logic in the device. The results of the comparison display in a pop up window. To use the Compare function, select Tools > Compare. Upload and Download Logic Upload Logic To upload logic, select Communications > Upload. The logic configuration in the device is read and displayed in the old Ladder Editor.
Chapter 5 Create Logic in the Old DeviceLogix Ladder Editor You can download when logic is enabled or disabled. If you download logic when logic is enabled, the download process occurs as follows: • The old Ladder Editor checks to see if logic is enabled in the device. • If the logic is enabled, you are asked if you want to disable logic. If you: – Select No - the logic is not downloaded to the device and an error message displays. – Select Yes - the logic is downloaded to the device.
Create Logic in the Old DeviceLogix Ladder Editor Chapter 5 Forcing To aid in the troubleshooting and debugging of your configuration, you can force hardware inputs and outputs. No other inputs or outputs can be forced from within the old Ladder Editor. Network inputs and outputs can be forced in the device from where they originated. If you exit the old Ladder Editor, the forced status will remain in effect until you remove it.
Chapter 5 Create Logic in the Old DeviceLogix Ladder Editor To remove the Force On or Force Off function: 1. Right click on the element you want to force on or force off. 2. From the menu, select Remove Force. Note that the Force operations can only be done when the configuration is not in the Edit mode. Clear Latched Hardware Faults If the device supports latching of faults, the Clear Fault function clears a hardware output fault indication, such as an off wire or short circuit condition.
Chapter 6 Navigate the New Ladder Editor Interface What This Chapter Contains Components Read this chapter to learn more information about the new Ladder Editor interface. The following table lists what this chapter contains and where to find specific information.
Chapter 6 Navigate the New Ladder Editor Interface Menus Ladder element toolbar Standard toolbar Online toolbar Ladder elements Ladder Logic view Message pane Ladder Elements Status bar The ladder logic in the new Ladder Editor consists of rungs. The rung consists of functional instruction elements which include bits, latches, counters, and timers. Logic combinations are displayed on the left part of the rung and logic outputs are displayed on the right side of the rung.
Navigate the New Ladder Editor Interface Chapter 6 Rung Element Element Description Rung Element - The basic executable unit in the new Ladder Editor. Each rung has at least one input condition and one output condition. The True or False value of an input determines the output value. You can add a comment to a rung to clarify or describe the instruction. Branch Element - Connection element that adds OR logic in the new Ladder Editor.
Chapter 6 Navigate the New Ladder Editor Interface Standard Toolbar Function Description Sends the ladder logic to a printer. Removes the selected ladder element. Duplicates the selected content to save it in the clipboard. Removes the saved content in the clipboard and puts the content in the new Ladder Editor where your cursor is resting. Cancels the last action. Performs again the previously cancelled action. Increases (make larger) the view of the configuration.
Navigate the New Ladder Editor Interface Chapter 6 • Compare Element • Compute/Math Element • Misc Element TIP It is not required for all DeviceLogix-enabled products to support all of the element types. The EDS file for each product provides information on what element are supported. If an element is not supported, it will not appear in the associated toolbar. Regardless of the ladder element toolbar you have selected, the following icons are always available.
Chapter 6 Navigate the New Ladder Editor Interface Filter Element Toolbar Function Description Low-Pass Filter Element - The total number of this instruction type that you can use is limited due to resources and is device-specific. Select/Limit Element Toolbar Function Description Select Element High-Low Limit Element Statistical Element Toolbar Function Description Moving Average Element - The total number of this instruction type that you can use is limited due to resources and is device-specific.
Navigate the New Ladder Editor Interface TIP Chapter 6 When using the ACC feature, you may notice some minor differences in the Timer/Counter instructions. Depending on the firmware implementation, some devices consider this an output and bind it to an analog output tag, while other devices consider it a parameter.
Chapter 6 Navigate the New Ladder Editor Interface Function Description Square Root Element Negative Element Absolute Element Misc. Element Toolbar Function Description Set Dominant Latch Element Reset Dominant Latch Element Reset Latch Element For detailed descriptions of instruction behaviors, refer to Chapter 2, Navigate the Function Block Editor Interface. Online Toolbar Use the Online toolbar to perform functions when you are working on line in the new Ladder Editor.
Navigate the New Ladder Editor Interface Ladder Logic View Chapter 6 The Ladder Logic View is the area in which you place functional elements to create logic. The printed ladder logic uses A4 sheets of paper. The ladder logic is printed at full size, regardless of the setting of the current zoom level. To make adjustments to the ladder logic before printing, you can use the print preview feature to see how it will print. The ladder can also be sent to a plotter for easier viewing.
Chapter 6 Navigate the New Ladder Editor Interface Pane Description Edit Mode Refer to table below. Online Indication Indicates if you are working online or offline in the new Ladder Editor. Logic Enabled Indication Indicates if the Logic Enable function is on or off. If you are not in Edit mode and go online with a device, then it displays Logic Enabled status. Edit Mode Status Editor Mode Description Pre-Conditions Online Edit Enabled You can modify logic. Read-write status.
Navigate the New Ladder Editor Interface Chapter 6 File Menu The File menu lets you perform printing functions and lets you exit the new Ladder Editor. Function Description Print Sends the ladder logic to a printer. Print Preview Displays the ladder logic before sending the logic to the printer. Print Setup Allows you to choose printer and printing options. Close Exits the new Ladder Editor.
Chapter 6 Navigate the New Ladder Editor Interface Function Description Edit Ladder Element Modifies the selected ladder element by you changing the instruction type or the instruction type parameters. Note that it is possible to change only instruction types of the same category (bits, latch, timers, counters). Edit Element Modifies the selected ladder element. It is possible to change the instruction type or the instruction type parameters.
Navigate the New Ladder Editor Interface Chapter 6 When an I/O device fails and a new device is added to replace it, a master device on the network can automatically download the stored configuration and logic to the device. This feature is known as Auto Device Replace (ADR). The recovery mode determines whether or not to enable the local logic when a download of this type occurs. The recovery mode is disabled by default. ADR in the scanner is also disabled by default.
Chapter 6 Navigate the New Ladder Editor Interface Function Description Status Bar Toggles between displaying and not displaying the status bar at the bottom of the new Ladder Editor. Message Log Toggles between displaying and not displaying the Message Pane at the bottom of the new Ladder Editor. Zoom In Increases (make larger) the view of the configuration. You lose view of part of the configuration pane of the new Ladder Editor when you use this function.
Navigate the New Ladder Editor Interface Chapter 6 Tools Menu The Tools menu lets you modify logic in the new Ladder Editor. Function Description Logic Verify Confirms that the logic that you configured is valid.
Chapter 6 Navigate the New Ladder Editor Interface Help Menu The Help menu provides you with assistance when you are working in the new Ladder Editor. 142 Function Description Ladder Editor Help Accesses the help files available for the new Ladder Editor. Release Notes Accesses release notes pertaining to DeviceLogix functionality or the new Ladder Editor. About DeviceLogix Opens the About Ladder Editor window to learn revision and copyright information about the new Ladder Editor.
Chapter 7 Create Logic in the New Ladder Editor What This Chapter Contains About I/O Tags Read this chapter to learn more about the creating and managing logic in the new Ladder Editor. The following table lists what this chapter contains and where to find specific information.
Chapter 7 Create Logic in the New Ladder Editor Working with the Tag Database Devices have two kinds of tags: • product scope tag • program scope tag If you edit Macro logic, then the product scope tag will be replaced with the Macro scope tag. Product scope tags are the product I/O defined in DeviceLogix. You can assign alias names to product scope tags. In the logic configuration, only alias tag names are used. Alias tag names are not case-sensitive.
Create Logic in the New Ladder Editor Chapter 7 When you add an instruction to your logic, all outputs of this instruction are added to the Tag Database automatically. Choose Tools > Show Tag Database to open the window. In the Tag Database, you may modify the alias names of the new tags, edit forcing options (if the device supports forcing), select data types, and select fault options.
Chapter 7 Create Logic in the New Ladder Editor The first three items - logic, ladder layout, and Tag Database information - are required for download to the device. If the device memory cannot store these items, then an error message will appear during logic verification, indicating that the download cannot be completed. The last two items - comments and Properties page content - are optional for download to the device. If the device memory cannot store these items, then you can opt not to download them.
Create Logic in the New Ladder Editor Chapter 7 Work with the Macro Instruction You can access, edit, and manage Macro instructions through new Tools menu options: • Create Macro Block • Macro Block Manager • Open Macro Block Definition • Delete Macro Block • Open Macro Block Logic Using a Macro instruction encompasses these general steps, each of which is described in following sections. 1. Create the Macro definition 2. Define the external I/O binding 3. Add parameters 4. Set security (optional) 5.
Chapter 7 Create Logic in the New Ladder Editor Create the Macro Definition Complete these steps to create a new Macro definition. 1. Choose Tools > Macro > Create Macro Block. The Macro Block Definition dialog box appears, containing General, I/O, Parameter and Security tabs. 2. On the General tab, assign a unique and valid Name for the Macro block. Valid names are alpha-numeric and are limited to 16 characters. 3. Enter a Description.
Create Logic in the New Ladder Editor Chapter 7 4. Click OK. If the Name you assigned is not unique, you will be prompted at this time to enter a different Name. Define the External I/O Binding To definte the input/output bindings of your new Macro block, complete these steps. 1. Choose Tools > Macro > Open Macro Block Definition. 2. Click the Input/Output tab. 3. Assign a Name for the I/O binding. 4. Select the Usage. 5. Select the Data Type. – BOOL: the defined I/O can be bound only with Boolean data.
Chapter 7 Create Logic in the New Ladder Editor Add Parameters While the Parameter tab in the Macro Block Definition dialog box allows you to edit parameters, you cannot add Macro instruction parameters here. You add parameters when you add an instance of the Macro instruction type to your ladder logic. Set Macro Security Password protection provides the capability for Macro Block designers to protect definitions and parameters.
Create Logic in the New Ladder Editor Chapter 7 To enable security on a Macro block, complete these steps. 1. Choose Tools > Macro > Open Macro Block Definition. 2. Click the Security tab. 3. Select the Password Enabled box. 4. Type the New Password. 5. Confirm the password. 6. Click OK. When editing security-enabled Macro definitions or parameters, you will be prompted to enter the password.
Chapter 7 Create Logic in the New Ladder Editor Apply the Macro Definition When you click OK on any tab in the Macro Block Definition dialog box, your edits will be applied if the logic is valid. When you click OK or Logic on this dialog box, a tabbed editing window for the new Macro block displays. To close this tabbed window, right-click the tab, and choose Close.
Create Logic in the New Ladder Editor Chapter 7 Add Macro Instruction to Ladder Logic Add the Macro instruction into your ladder logic configuration just as you would add a standard instruction. • Choose Edit > Add Ladder Element, select the Macro instruction element in the Add Ladder Element dialog box, and click OK. • Click the instruction icon in the Macro tab of the Instruction toolbar. • Drag the instruction from the Macro tab of the Instruction toolbar and drop it into the ladder logic.
Chapter 7 Create Logic in the New Ladder Editor Manage the Macro Choose Tools > Macro Block > Macro Block Manager to open the Macro Block Manager dialog box, where you can select Macro blocks to modify or delete. You can delete a Macro block only if there are no instances of the Macro in the ladder logic. You cannot undo a Macro block deletion.
Create Logic in the New Ladder Editor Chapter 7 To edit a Macro's parameters, complete the following steps. 1. In the ladder logic, click the Properties button for the target instructions. The Properties dialog box displays. 2. Click the Parameters tab. 3. Click the Edit Macro Block Parameters button.
Chapter 7 Create Logic in the New Ladder Editor The dialog box expands to show the list of externally-viewable Macro Block Parameters. 4. Assign a unique Name for the Macro block parameter. 5. Select the block parameter that this Macro block parameter references from the Alias For drop-down list. 6. Click OK.
Create Logic in the New Ladder Editor Chapter 7 To view the Macro block parameters, choose Tools > Macro > Open Macro Definition, and click the Parameter tab. Consider these guidelines when editing the Macro definition. • Nested Macro block configuration is not supported. While you configure Macro block logic, all Macro block instructions in the Instruction toolbar are grayed-out so that you cannot add a Macro within a Macro definition.
Chapter 7 Create Logic in the New Ladder Editor Interface Changes Related to Macro Instruction Three areas of the new Ladder Editor interface behave differently with Macro instructions than with standard instructions: • Instruction toolbar • Tag Database • Edit menu Instruction Toolbar and Tag Database • When you create or edit a Macro definition, product scope I/O and other Macro instructions are not available for use in the definition.
Create Logic in the New Ladder Editor Chapter 7 To modify a parameter value while the device is online, complete these steps. 1. Double-click the instruction that you want to change. 2. Select the Parameters tab. 3. Locate the value that you want to change (fields that can be edited are white). Enter the new value in the box. 4. Click OK. The new value takes immediate effect. If you change a preset, remember to save the logic configuration the next time you exit the new Ladder Editor.
Chapter 7 Create Logic in the New Ladder Editor Use the Logic Enable Off option to notify the device to stop executing the logic diagram. When you select this option, the device enters an idle state, turning off the Logic Enable Bit in the produced data. The Logic Enable Bit in the Produced I/O assembly of the device reflects a 0 or 1 for Logic Enable Off or Logic Enable On. To set Logic Enable Off, choose Communications > Logic Enable Off.
Create Logic in the New Ladder Editor Chapter 7 Upload and Download Logic Upload Logic To upload logic, select Communications > Upload. The logic configuration in the device is read and displayed in the new Ladder Editor. Any unsaved changes will be discarded, and Online Animation begins. Note that some devices are capable of storing screen format information.
Chapter 7 Create Logic in the New Ladder Editor 4. When the download is complete, you are notified that the download was successful. IMPORTANT If you receive no response from the new Ladder Editor, cycle power. You can click Cancel anytime during the download process to abort downloading the logic to the device. If you click Cancel, an error message displays, and neither the old logic nor the new logic exists in the device.
Create Logic in the New Ladder Editor Chapter 7 Force I/O in the Tag Database Select Enable or Disable in the Force Action field, and edit the Force Value as needed. Force I/O in the new Ladder Editor • For discrete I/O, right-click the input or output element you wish to force, choose the appropriate force option, and edit the Force Value. • For analog I/O, right-click the binding, choose the the appropriate force option, and edit the Force Value. • When you force a tag, the background turns yellow.
Chapter 7 Create Logic in the New Ladder Editor Notes: 164 Publication RA-UM003B-EN-P - February 2010
Appendix A Register EDS Files and Add Devices Offline/Online What This Appendix Contains EDS Files Read this appendix to learn about EDS files and how to unregister and register them. Additionally, learn how to add devices to the network (online or offline) using RSNetWorx for DeviceNet software.
Appendix A Register EDS Files and Add Devices Offline/Online You see the welcome window for the EDS Wizard. 3. Click Next to start. 4. Select Unregister a device.
Register EDS Files and Add Devices Offline/Online Appendix A 5. Click Next. 6. Click Find Device. 7. Type the name of the device you want to unregister in the Find what device box. 8. Click Find Now. 9. When the device appears in the EDS Wizard window, click Cancel.
Appendix A Register EDS Files and Add Devices Offline/Online 10. Click the box in front of the device or revision so an x appears. 11. Click Next.
Register EDS Files and Add Devices Offline/Online Appendix A 12. Click Next to unregister the EDS file. You have successfully unregistered the existing EDS file. 13. Click Finish to close the EDS Wizard.
Appendix A Register EDS Files and Add Devices Offline/Online Register EDS Files To register EDS files: 1. Open RSNetWorx for DeviceNet software, if it is not already open. 2. Select Tools > EDS Wizard. You see the welcome window for the EDS Wizard. 3. Click Next to start.
Register EDS Files and Add Devices Offline/Online Appendix A 4. Verify that Register an EDS file(s) is selected. 5. Click Next. 6. Choose to register a single file or a directory of files. 7. Click Browse if you need to find the correct file. 8. Click Next.
Appendix A Register EDS Files and Add Devices Offline/Online 9. Click Next to evaluate the EDS files for errors. 10. (optional) Click Change icon to choose a different icon. 11. Click Next.
Register EDS Files and Add Devices Offline/Online Appendix A 12. Verify that you are registering EDS files. 13. Click Next. You have successfully registered the EDS file(s). 14. Click Finish.
Appendix A Register EDS Files and Add Devices Offline/Online 15. If your version of RSNetWorx for DeviceNet software is lower than version 3.0, you must close RSNetWorx software and reopen it for the changes to take effect. If you continue to have problems registering EDS files, open RSNetWorx for DeviceNet software and follow this path for additional help: Help > Release Notes > Known anomalies > Devices unrecognized after registering EDS files with the EDS Wizard.
Register EDS Files and Add Devices Offline/Online Appendix A RSNetWorx for DeviceNet software scans the DeviceNet network and adds all devices it finds. It also finds the appropriate EDS file definition for the revision of the device, if registered correctly. You are now online. If the device is DeviceLogix compliant and the EDS file has been properly imported into RSNetWorx for DeviceNet software, the device is ready to configure.
Appendix A Register EDS Files and Add Devices Offline/Online Notes: 176 Publication RA-UM003B-EN-P - February 2010
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors What This Appendix Contains Access Device Properties In this appendix you will access the RSNetWorx for DeviceNet software device properties dialog box to set up general properties, determine parameters and launch the DeviceLogix Editor tools.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors Check General Information The device properties dialog box opens to the General properties dialog. If you are in another dialog in the device properties dialog box, click on the General tab to return to the General dialog. TIP The DeviceLogix tab is available on the General properties window when a DeviceLogix EDS file is registered for the current device.
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B If you added the devices on line by letting RSNetWorx for DeviceNet software scan the network for devices, then the addresses in the General window should already match the physical addresses of the devices. Check Revision Field The revision field shows the current revision of the firmware in the I/O device. The revision field can help you identify if you are using the correct EDS file for DeviceLogix-enabled devices.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors Once you have entered the desired information in the General window, click on other tabs on the device properties dialog box to access other device information. IMPORTANT If you are on line and you click on either the Device Parameters or the DeviceLogix tab, you may be prompted to upload or download the device. When you are on line, the dialog checks the configuration in the device and compares it to the current configuration.
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B Device Parameter Controls IMPORTANT Publication RA-UM003B-EN-P - February 2010 Legacy DeviceLogix-enabled devices use a different style of the Parameter property page than the current DeviceLogix-enabled devices. Although the property pages may look different, they contain the same corresponding functions and options. The graphics and discussion in this section will only show the current Parameter property page.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors There are a number of controls presented in the Parameters dialog box. Most of the controls are available both on line and off line, while others are available only on line. The on line only features include Groups, Upload From Device, Download To Device, and Start Monitor buttons as described in the Online Functions table. Online Functions Groups Checkbox Function Description Groups Select which group of parameters to view.
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B Features available for both on line and off line use include controls that let you: • Select which parameters to view • Restore parameter defaults • Access help for specific parameters, and • Access a list of parameters and their current values Select Group Parameters For Current DeviceLogix-enabled devices, the Groups checkbox lets you select which parameters you wish to view in the parameter list. The default is all parameters.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors Access Parameter Information Use the Parameter Help button to display a short description of a parameter. 1. Click the parameter in the list box at the bottom of the window. 2. Click the Parameter Help button to see the short description. Understand Parameters The bottom portion of the Parameters dialog box contains the parameter list box. All the parameters of the I/O device that can be modified are listed here.
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B Understand Produced Network I/O (also known as Network Outputs) Under normal conditions, an I/O device produces the state of its inputs and the status of any fault information on the device. However with local logic running on a device, a master controller sometimes needs to know the results of some intermediate state or value of logic.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors Understand Consumed Network I/O (also known as Network Inputs) Under normal conditions, an I/O device consumes data to apply to its hardware outputs. DeviceLogix-enabled devices may consume additional information to use in local logic. An assembly is a collection of parameters from one or more objects.
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B The following list contains several important details about network inputs. • If an output is not used in the local logic, there is an assumed connection to a corresponding bit in the consumed data. In the illustration below, this connection is shown explicitly for outputs 1, 3, 4, 5, 6, 7. Note this connection does not need to be made graphically with the configuration tool.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors TIP In legacy products, network I/O is referred to as CNB (Consumed Network Bits) and PNB (Produced Network Bits) respectively. In the latest set of products, network I/O is called Network Input and Network Output. The data types could be Boolean, DINT, REAL, etc. Determine Parameters To configure your system, there is a possibility that you have to determine produced and consumed I/O assemblies.
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B Input 7 Input 6 Input 5 Input 4 Input 3 Input 2 Input 1 Input 0 OW-D OW-C OW-B OW-A ISC-D ISC-C ISC-B ISC-A OFLT 7 OFLT 6 OFLT 5 OFLT 4 OFLT 3 OFLT 2 OFLT 1 OFLT 0 OPWR Logic Ena OUT 7 OUT 6 OUT 5 OUT 4 OUT 3 OUT 2 OUT 1 OUT 0 PNB 7 PNB 6 PNB 5 PNB 4 PNB 3 PNB 2 PNB 1 PNB 0 Standard MaXum Status and Diagnostic Bits OW = Off-Wire; ISC = Input Short Circuit; OFLT = Output Fault; OPWR = Output Power Devi
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors Determine Consumed I/O Assembly Devices, when enabled with DeviceLogix functionality, can receive additional data across DeviceNet. This data is called network inputs. The consumed I/O parameter lets you select how much data you want the device to consume from a master. After setting this parameter, the same number of bytes must be selected in the scanner’s scan list.
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B To see the layout of the consumed I/O assembly for your chosen device, refer to the Technical Data publication for that device. Determine Comm Status Override The Comm Status Override parameter controls whether local logic should control outputs when no active I/O connection exists with the device. You determine if the communication status override is enabled or disabled.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors IMPORTANT The above information is relative only to bound outputs (i.e., outputs that are participating in the local logic). To change the comm status override: 1. Click the current value of the Comm Status Override parameter. The field turns into a drop-down list box. 2. Click the arrow to display the values. 3. Click the desired value. 4. Click Apply to save the new value without closing the window.
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B Determine Network Status Override The network status override parameter controls whether local logic should control outputs when it detects a network error condition. You determine if the network status override is enabled or disabled. When the override is disabled (default), the device turns outputs off under any of the events. If the override is enabled, the device ignores any network fault.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors To the change the network status override: 1. Click the current value of the Network Status Override parameter. The field turns into a drop-down list box. 2. Click the arrow to display the values. 3. Click the desired value. 4. Click Apply to save the new value without closing the window. Or click OK to save the new value and to close the window.
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B Access I/O Data Information The I/O Data window provides information about default I/O characteristics for the device. The amount of data that the device reports is described here. Note however that the help only covers the data returned by the EDS file default settings. This window does not report data enabled by the DeviceLogix-specific settings.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors To access I/O data information: 1. For the default message type (in bold), click Input to see all of the input I/O default characteristics for the connection. Click Output to see all of the output I/O default characteristics for the connection. Only those message types that are supported for the device connection are displayed. 2. Repeat for the remaining message types (if necessary).
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B Click View File to view the contents of the selected EDS file. The information stored in the EDS file is very detailed and is beyond the scope of this document. However, if you experience difficulty enabling DeviceLogix features, check for the following lines in the [Device] section of the EDS file: • "1_RSNetWorx_DNetTool = "LeoApp.LeoDevice"; Indicates that LCT should be used on this device.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors Launch the DeviceLogix Editor After you configure the properties for your DeviceLogix-enabled device, you can launch the DeviceLogix Editor. You see an additional tab in the device properties dialog box for all DeviceLogix-enabled devices. This tab is labeled DeviceLogix. This tab provides access to the start-up window for the DeviceLogix Editor.
RSNetWorx for DeviceNet Software and the DeviceLogix Editors Appendix B To start the DeviceLogix Editor for a DeviceLogix-enabled device, click Start Logic Editor. On the DeviceLogix Editor Style Selection dialog, you are prompted to select the editor type that you want to launch. After selecting an editor type, click OK.: If the current device does not support one of the editor types, no selection will be presented.
Appendix B RSNetWorx for DeviceNet Software and the DeviceLogix Editors Notes: 200 Publication RA-UM003B-EN-P - February 2010
Index A add devices offline 174 add devices online 174 adding DeviceLogix capable devices 16, 198 assume data available function 71 audience for manual 9 B bit element 98 bit element toolbar ladder logic editor 107 C change logic function block editor 86 ladder logic editor 120 timers and counters value 121 clear latched hardware faults 126 comm status override 191 communication menu function block editor 64 ladder editor 114 communication with devices 118 compare category toolbar function block editor 55
Index down counter 101 download logic 123 download to device that is scanning 194 E edit menu 61 ladder logic editor 112 EDS file window 196 EDS files register EDS files 170 EDS information 196 enable and disable logic 121 enter device parameters 180 F file menu function block editor 61 ladder logic editor 112 filter category toolbar function block editor 54 forcing function block editor 91 ladder logic editor 125 function block editor interface components 19 function block elements 20 function block ele
Index ladder element toolbars bit element toolbar 107 counter element toolbar 108 ladder editor 107 latch element toolbar 108 timer element toolbar 54, 55, 56, 57, 109 ladder elements 96 bit element 98 configuration toolbars 52, 106 latch element 98 latch elements reset dominant latch 99 set dominant latch 99 rung element 97, 129 ladder logic view 110 latch element 98 latch element toolbar ladder logic editor 108 latch elements counter element 100 latched hardware faults clear 126 local logic 14 logic comp
Index go on line function block editor 83 ladder logic editor 119 ladder logic editor 118 online animation function block editor 85 ladder logic editor 120 recovery mode 126 upload and download logic function block editor 89 ladder logic editor 123 verify logic function block editor 87 ladder logic editor 122 online toolbar function block editor 58 ladder editor 109 overview input and output logic 68 P parameter information 184 device parameters dialog box 184 parameters understand 184 process category to
Index V verify logic 122 view menu 63, 113 Publication RA-UM003B-EN-P - February 2010 W window buttons common 179 device properties dialog box 179 205
Index Notes: 206 Publication RA-UM003B-EN-P - February 2010
Rockwell Automation Support Rockwell Automation provides technical information on the Web to assist you in using its products. At http://www.rockwellautomation.com/support/, you can find technical manuals, a knowledge base of FAQs, technical and application notes, sample code and links to software service packs, and a MySupport feature that you can customize to make the best use of these tools.
DeviceLogix System User Manual