logix5000 controllers i/o and tag data programming · pdf filecatalog numbers 1756...

58
Programming Manual Catalog Numbers 1756 ControlLogix, 1769 CompactLogix, 1789 SoftLogix, 1794 FlexLogix, PowerFlex 700S with DriveLogix Logix5000 Controllers I/O and Tag Data

Upload: doantuyen

Post on 13-Mar-2018

257 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Programming Manual

Catalog Numbers 1756 ControlLogix1769 CompactLogix 1789 SoftLogix

1794 FlexLogix PowerFlex 700S withDriveLogix

Logix5000 Controllers IO and Tag Data

Important User InformationSolid 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-11 available from your local Rockwell Automation sales office or online at httpliteraturerockwellautomationcom) describes some important differences between solid state equipment and hard-wired electromechanical devices Because of this difference and also because of the wide variety of uses for solid state equipment all persons responsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable

In no event will Rockwell Automation Inc be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment

The examples and diagrams in this manual are included solely for illustrative purposes Because of the many variables and requirements associated with any particular installation Rockwell Automation Inc cannot assume responsibility or liability for actual use based on the examples and diagrams

No patent liability is assumed by Rockwell Automation Inc with respect to use of information circuits equipment or software described in this manual

Reproduction of the contents of this manual in whole or in part without written permission of Rockwell Automation Inc is prohibited

Throughout this manual when necessary we use notes to make you aware of safety considerations

Allen-Bradley Rockwell Automation and TechConnect are trademarks of Rockwell Automation Inc

Trademarks not belonging to Rockwell Automation are property of their respective companies

WARNINGIdentifies information about practices or circumstances that can cause an explosion in a hazardous environment which may lead to personal injury or death property damage or economic loss

IMPORTANT Identifies information that is critical for successful application and understanding of the product

ATTENTION Identifies information about practices or circumstances that can lead to personal injury or death property damage or economic loss Attentions help you identify a hazard avoid a hazard and recognize the consequence

SHOCK HAZARD Labels may be on or inside the equipment for example a drive or motor to alert people that dangerous voltage may be present

BURN HAZARD Labels may be on or inside the equipment for example a drive or motor to alert people that surfaces may reach dangerous temperatures

Table of ContentsPreface Purpose of this Manual 5

How to Use this Manual 5

Chapter 1Communicating with IO Introduction 7

Requested Packet Interval 8Communication Format 9

Direct or Rack-Optimized Connection 9Ownership 10

Electronic Keying 12Address IO Data 13Buffering IO 14

Buffer IO 14

Chapter 2Organizing Tags Introduction 17

Tag Type 18Data Type 19Scope 21

Guidelines for Tags 22Create a Tag 25Create an Array 26

Create an Array 29Create a User-Defined Data Type 30

Guidelines for User-Defined Data Types 32Create a User-Defined Data Type 32

Describe a User-Defined Data Type 34Turn Pass-Through and Append Descriptions On or Off 35Paste a Pass-Through Description 35

Address Tag Data 36Assigning Alias Tags 37

Display Alias Information 38Assign an Alias 39

Assigning an Indirect Address 40Expressions 42Array Subscript Out of Range 43

Tag Documentation 43Base Tag Documentation 44Alias Tag Documentation 44Produced Tag Documentation 44Consumed Tag Documentation 44Language Switching 44

Chapter 3Force IO Introduction 47

Precautions 47

3Publication 1756-PM004B-EN-P - July 2008 3

Table of Contents

Enable Forces 48Disable or Remove a Force 48

Check Force Status 49FORCE LED 50GSV Instruction 50

When to Use an IO Force 51Force an Input Value 51Force an Output Value 52

Add an IO Force 52Remove or Disable Forces 53

Remove an Individual Force 53Disable All IO Forces 54Remove All IO Forces 54

4 Publication 1756-PM004B-EN-P - July 2008

Preface

Purpose of this Manual This manual shows how to access IO and tag data in Logix5000 controllers This manual is one of a set of related manuals that show common procedures for programming and operating Logix5000 controllers For a complete list of common procedures manuals refer to the Logix 5000 Controllers Common Procedures Programming Manual publication 1756-PM001

The term Logix5000 controller refers to any controller that is based on the Logix5000 operating system such as

bull CompactLogix controllersbull ControlLogix controllersbull DriveLogix controllersbull FlexLogix controllersbull SoftLogix5800 controllers

How to Use this Manual Some text is formatted differently from the rest of the text

Text that is Identifies For example Means

Italic the actual name of an item that you see on your screen or in an example

Right-click User-Defined hellip Right-click the item that is named User-Defined

courier information that you must supply based on your application (a variable)

Right-click name_of_program hellip

You must identify the specific program in your application Typically it is a name or variable that you have defined

enclosed in brackets a keyboard key Press [Enter] Press the Enter key

Publication 1756-PM004B-EN-P - July 2008 5

Preface

Notes

6 Publication 1756-PM004B-EN-P - July 2008

Chapter 1

Communicating with IO

Introduction To communicate with an IO module in your system you add the module to the IO Configuration folder of the controller

When you add the module you also define a specific configuration for the module While the configuration options vary from module to module there are some common options that you typically configure

bull Requested Packet Intervalbull Communication Formatbull Electronic Keying

Add IO modules here

7Publication 1756-PM004B-EN-P - July 2008 7

Chapter 1 Communicating with IO

Requested Packet Interval The Logix5000 controller uses connections to transmit IO data

In Logix5000 controllers IO values update at a period that you configure via the IO configuration folder of the project The values update asynchronous to the execution of logic At the specified interval the controller updates a value independently from the execution of logic

bull Programs within a task access input and output data directly from controller-scoped memory

bull Logic within any task can modify controller-scoped databull Data and IO values are asynchronous and can change during the

course of a taskrsquos executionbull An input value referenced at the beginning of a taskrsquos execution can be

different when referenced laterbull To prevent an input value from changing during a scan copy the value

to another tag and use the data from there (buffer the values)

Term Definition

Connection A communication link between two devices such as between a controller and an IO module PanelView terminal or another controller

Connections are allocations of resources that provide more reliable communications between devices than unconnected messages The number of connections that a single controller can have is limited

You indirectly determine the number of connections the controller uses by configuring the controller to communicate with other devices in the system The following types of communication use connections

bull IO modules

bull produced and consumed tags

bull certain types of Message (MSG) instructions (not all types use a connection)

Requested packet interval (RPI)

The RPI specifies the period at which data updates over a connection For example an input module sends data to a controller at the RPI that you assign to the module

bull Typically you configure an RPI in milliseconds (ms) The range is 02 ms (200 microseconds) to 750 ms

bull If a ControlNet network connects the devices the RPI reserves a slot in the stream of data flowing across the ControlNet network The timing of this slot may not coincide with the exact value of the RPI but the control system guarantees that the data transfers at least as often as the RPI

ATTENTION Take care to ensure that data memory contains the appropriate values throughout a taskrsquos execution You can duplicate or buffer data at the beginning of the scan to provide reference values for your logic

8 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Communication Format The communication format that you choose determines the data structure for the tags that are associated with the module Many IO modules support different formats Each format uses a different data structure The communication format that you choose also determines

bull Direct or Rack-Optimized Connectionbull Ownership

Direct or Rack-Optimized Connection

The Logix5000 controller uses connections to transmit IO data These connections can be direct connections or rack-optimized connections

Term Definition

Direct connection A direct connection is a real-time data transfer link between the controller and an IO module The controller maintains and monitors the connection with the IO module Any break in the connection such as a module fault or the removal of a module while under power sets fault bits in the data area associated with the module

Rack-optimized connection

For digital IO modules you can select rack-optimized communication A rack-optimized connection consolidates connection usage between the controller and all the digital IO modules in the chassis (or DIN rail) Rather than having individual direct connections for each IO module there is one connection for the entire chassis (or DIN rail)

A direct connection is any connectionthat does not use the Rack Optimization

Come Format

Rack-optimizedconnection

Publication 1756-PM004B-EN-P - July 2008 9

Chapter 1 Communicating with IO

Ownership

In a Logix5000 system modules multicast data This means that multiple devices can receive the same data at the same time from a single device

When you choose a communication format you have to choose whether to establish an owner or listen-only relationship with the module

Owner controller The controller that creates the primary configuration and communication connection to a module The owner controller writes configuration data and can establish a connection to the module

Listen-only connection An IO connection where another controller ownsprovides the configuration data for the IO module A controller using a listen-only connection only monitors the module It does not write configuration data and can only maintain a connection to the IO module when the owner controller is actively controlling the IO module

An owner connection is anyconnection that does not includeListen-Only in its Comm Format

Listen-only connection

10 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 2: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Important User InformationSolid 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-11 available from your local Rockwell Automation sales office or online at httpliteraturerockwellautomationcom) describes some important differences between solid state equipment and hard-wired electromechanical devices Because of this difference and also because of the wide variety of uses for solid state equipment all persons responsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable

In no event will Rockwell Automation Inc be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment

The examples and diagrams in this manual are included solely for illustrative purposes Because of the many variables and requirements associated with any particular installation Rockwell Automation Inc cannot assume responsibility or liability for actual use based on the examples and diagrams

No patent liability is assumed by Rockwell Automation Inc with respect to use of information circuits equipment or software described in this manual

Reproduction of the contents of this manual in whole or in part without written permission of Rockwell Automation Inc is prohibited

Throughout this manual when necessary we use notes to make you aware of safety considerations

Allen-Bradley Rockwell Automation and TechConnect are trademarks of Rockwell Automation Inc

Trademarks not belonging to Rockwell Automation are property of their respective companies

WARNINGIdentifies information about practices or circumstances that can cause an explosion in a hazardous environment which may lead to personal injury or death property damage or economic loss

IMPORTANT Identifies information that is critical for successful application and understanding of the product

ATTENTION Identifies information about practices or circumstances that can lead to personal injury or death property damage or economic loss Attentions help you identify a hazard avoid a hazard and recognize the consequence

SHOCK HAZARD Labels may be on or inside the equipment for example a drive or motor to alert people that dangerous voltage may be present

BURN HAZARD Labels may be on or inside the equipment for example a drive or motor to alert people that surfaces may reach dangerous temperatures

Table of ContentsPreface Purpose of this Manual 5

How to Use this Manual 5

Chapter 1Communicating with IO Introduction 7

Requested Packet Interval 8Communication Format 9

Direct or Rack-Optimized Connection 9Ownership 10

Electronic Keying 12Address IO Data 13Buffering IO 14

Buffer IO 14

Chapter 2Organizing Tags Introduction 17

Tag Type 18Data Type 19Scope 21

Guidelines for Tags 22Create a Tag 25Create an Array 26

Create an Array 29Create a User-Defined Data Type 30

Guidelines for User-Defined Data Types 32Create a User-Defined Data Type 32

Describe a User-Defined Data Type 34Turn Pass-Through and Append Descriptions On or Off 35Paste a Pass-Through Description 35

Address Tag Data 36Assigning Alias Tags 37

Display Alias Information 38Assign an Alias 39

Assigning an Indirect Address 40Expressions 42Array Subscript Out of Range 43

Tag Documentation 43Base Tag Documentation 44Alias Tag Documentation 44Produced Tag Documentation 44Consumed Tag Documentation 44Language Switching 44

Chapter 3Force IO Introduction 47

Precautions 47

3Publication 1756-PM004B-EN-P - July 2008 3

Table of Contents

Enable Forces 48Disable or Remove a Force 48

Check Force Status 49FORCE LED 50GSV Instruction 50

When to Use an IO Force 51Force an Input Value 51Force an Output Value 52

Add an IO Force 52Remove or Disable Forces 53

Remove an Individual Force 53Disable All IO Forces 54Remove All IO Forces 54

4 Publication 1756-PM004B-EN-P - July 2008

Preface

Purpose of this Manual This manual shows how to access IO and tag data in Logix5000 controllers This manual is one of a set of related manuals that show common procedures for programming and operating Logix5000 controllers For a complete list of common procedures manuals refer to the Logix 5000 Controllers Common Procedures Programming Manual publication 1756-PM001

The term Logix5000 controller refers to any controller that is based on the Logix5000 operating system such as

bull CompactLogix controllersbull ControlLogix controllersbull DriveLogix controllersbull FlexLogix controllersbull SoftLogix5800 controllers

How to Use this Manual Some text is formatted differently from the rest of the text

Text that is Identifies For example Means

Italic the actual name of an item that you see on your screen or in an example

Right-click User-Defined hellip Right-click the item that is named User-Defined

courier information that you must supply based on your application (a variable)

Right-click name_of_program hellip

You must identify the specific program in your application Typically it is a name or variable that you have defined

enclosed in brackets a keyboard key Press [Enter] Press the Enter key

Publication 1756-PM004B-EN-P - July 2008 5

Preface

Notes

6 Publication 1756-PM004B-EN-P - July 2008

Chapter 1

Communicating with IO

Introduction To communicate with an IO module in your system you add the module to the IO Configuration folder of the controller

When you add the module you also define a specific configuration for the module While the configuration options vary from module to module there are some common options that you typically configure

bull Requested Packet Intervalbull Communication Formatbull Electronic Keying

Add IO modules here

7Publication 1756-PM004B-EN-P - July 2008 7

Chapter 1 Communicating with IO

Requested Packet Interval The Logix5000 controller uses connections to transmit IO data

In Logix5000 controllers IO values update at a period that you configure via the IO configuration folder of the project The values update asynchronous to the execution of logic At the specified interval the controller updates a value independently from the execution of logic

bull Programs within a task access input and output data directly from controller-scoped memory

bull Logic within any task can modify controller-scoped databull Data and IO values are asynchronous and can change during the

course of a taskrsquos executionbull An input value referenced at the beginning of a taskrsquos execution can be

different when referenced laterbull To prevent an input value from changing during a scan copy the value

to another tag and use the data from there (buffer the values)

Term Definition

Connection A communication link between two devices such as between a controller and an IO module PanelView terminal or another controller

Connections are allocations of resources that provide more reliable communications between devices than unconnected messages The number of connections that a single controller can have is limited

You indirectly determine the number of connections the controller uses by configuring the controller to communicate with other devices in the system The following types of communication use connections

bull IO modules

bull produced and consumed tags

bull certain types of Message (MSG) instructions (not all types use a connection)

Requested packet interval (RPI)

The RPI specifies the period at which data updates over a connection For example an input module sends data to a controller at the RPI that you assign to the module

bull Typically you configure an RPI in milliseconds (ms) The range is 02 ms (200 microseconds) to 750 ms

bull If a ControlNet network connects the devices the RPI reserves a slot in the stream of data flowing across the ControlNet network The timing of this slot may not coincide with the exact value of the RPI but the control system guarantees that the data transfers at least as often as the RPI

ATTENTION Take care to ensure that data memory contains the appropriate values throughout a taskrsquos execution You can duplicate or buffer data at the beginning of the scan to provide reference values for your logic

8 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Communication Format The communication format that you choose determines the data structure for the tags that are associated with the module Many IO modules support different formats Each format uses a different data structure The communication format that you choose also determines

bull Direct or Rack-Optimized Connectionbull Ownership

Direct or Rack-Optimized Connection

The Logix5000 controller uses connections to transmit IO data These connections can be direct connections or rack-optimized connections

Term Definition

Direct connection A direct connection is a real-time data transfer link between the controller and an IO module The controller maintains and monitors the connection with the IO module Any break in the connection such as a module fault or the removal of a module while under power sets fault bits in the data area associated with the module

Rack-optimized connection

For digital IO modules you can select rack-optimized communication A rack-optimized connection consolidates connection usage between the controller and all the digital IO modules in the chassis (or DIN rail) Rather than having individual direct connections for each IO module there is one connection for the entire chassis (or DIN rail)

A direct connection is any connectionthat does not use the Rack Optimization

Come Format

Rack-optimizedconnection

Publication 1756-PM004B-EN-P - July 2008 9

Chapter 1 Communicating with IO

Ownership

In a Logix5000 system modules multicast data This means that multiple devices can receive the same data at the same time from a single device

When you choose a communication format you have to choose whether to establish an owner or listen-only relationship with the module

Owner controller The controller that creates the primary configuration and communication connection to a module The owner controller writes configuration data and can establish a connection to the module

Listen-only connection An IO connection where another controller ownsprovides the configuration data for the IO module A controller using a listen-only connection only monitors the module It does not write configuration data and can only maintain a connection to the IO module when the owner controller is actively controlling the IO module

An owner connection is anyconnection that does not includeListen-Only in its Comm Format

Listen-only connection

10 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 3: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Table of ContentsPreface Purpose of this Manual 5

How to Use this Manual 5

Chapter 1Communicating with IO Introduction 7

Requested Packet Interval 8Communication Format 9

Direct or Rack-Optimized Connection 9Ownership 10

Electronic Keying 12Address IO Data 13Buffering IO 14

Buffer IO 14

Chapter 2Organizing Tags Introduction 17

Tag Type 18Data Type 19Scope 21

Guidelines for Tags 22Create a Tag 25Create an Array 26

Create an Array 29Create a User-Defined Data Type 30

Guidelines for User-Defined Data Types 32Create a User-Defined Data Type 32

Describe a User-Defined Data Type 34Turn Pass-Through and Append Descriptions On or Off 35Paste a Pass-Through Description 35

Address Tag Data 36Assigning Alias Tags 37

Display Alias Information 38Assign an Alias 39

Assigning an Indirect Address 40Expressions 42Array Subscript Out of Range 43

Tag Documentation 43Base Tag Documentation 44Alias Tag Documentation 44Produced Tag Documentation 44Consumed Tag Documentation 44Language Switching 44

Chapter 3Force IO Introduction 47

Precautions 47

3Publication 1756-PM004B-EN-P - July 2008 3

Table of Contents

Enable Forces 48Disable or Remove a Force 48

Check Force Status 49FORCE LED 50GSV Instruction 50

When to Use an IO Force 51Force an Input Value 51Force an Output Value 52

Add an IO Force 52Remove or Disable Forces 53

Remove an Individual Force 53Disable All IO Forces 54Remove All IO Forces 54

4 Publication 1756-PM004B-EN-P - July 2008

Preface

Purpose of this Manual This manual shows how to access IO and tag data in Logix5000 controllers This manual is one of a set of related manuals that show common procedures for programming and operating Logix5000 controllers For a complete list of common procedures manuals refer to the Logix 5000 Controllers Common Procedures Programming Manual publication 1756-PM001

The term Logix5000 controller refers to any controller that is based on the Logix5000 operating system such as

bull CompactLogix controllersbull ControlLogix controllersbull DriveLogix controllersbull FlexLogix controllersbull SoftLogix5800 controllers

How to Use this Manual Some text is formatted differently from the rest of the text

Text that is Identifies For example Means

Italic the actual name of an item that you see on your screen or in an example

Right-click User-Defined hellip Right-click the item that is named User-Defined

courier information that you must supply based on your application (a variable)

Right-click name_of_program hellip

You must identify the specific program in your application Typically it is a name or variable that you have defined

enclosed in brackets a keyboard key Press [Enter] Press the Enter key

Publication 1756-PM004B-EN-P - July 2008 5

Preface

Notes

6 Publication 1756-PM004B-EN-P - July 2008

Chapter 1

Communicating with IO

Introduction To communicate with an IO module in your system you add the module to the IO Configuration folder of the controller

When you add the module you also define a specific configuration for the module While the configuration options vary from module to module there are some common options that you typically configure

bull Requested Packet Intervalbull Communication Formatbull Electronic Keying

Add IO modules here

7Publication 1756-PM004B-EN-P - July 2008 7

Chapter 1 Communicating with IO

Requested Packet Interval The Logix5000 controller uses connections to transmit IO data

In Logix5000 controllers IO values update at a period that you configure via the IO configuration folder of the project The values update asynchronous to the execution of logic At the specified interval the controller updates a value independently from the execution of logic

bull Programs within a task access input and output data directly from controller-scoped memory

bull Logic within any task can modify controller-scoped databull Data and IO values are asynchronous and can change during the

course of a taskrsquos executionbull An input value referenced at the beginning of a taskrsquos execution can be

different when referenced laterbull To prevent an input value from changing during a scan copy the value

to another tag and use the data from there (buffer the values)

Term Definition

Connection A communication link between two devices such as between a controller and an IO module PanelView terminal or another controller

Connections are allocations of resources that provide more reliable communications between devices than unconnected messages The number of connections that a single controller can have is limited

You indirectly determine the number of connections the controller uses by configuring the controller to communicate with other devices in the system The following types of communication use connections

bull IO modules

bull produced and consumed tags

bull certain types of Message (MSG) instructions (not all types use a connection)

Requested packet interval (RPI)

The RPI specifies the period at which data updates over a connection For example an input module sends data to a controller at the RPI that you assign to the module

bull Typically you configure an RPI in milliseconds (ms) The range is 02 ms (200 microseconds) to 750 ms

bull If a ControlNet network connects the devices the RPI reserves a slot in the stream of data flowing across the ControlNet network The timing of this slot may not coincide with the exact value of the RPI but the control system guarantees that the data transfers at least as often as the RPI

ATTENTION Take care to ensure that data memory contains the appropriate values throughout a taskrsquos execution You can duplicate or buffer data at the beginning of the scan to provide reference values for your logic

8 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Communication Format The communication format that you choose determines the data structure for the tags that are associated with the module Many IO modules support different formats Each format uses a different data structure The communication format that you choose also determines

bull Direct or Rack-Optimized Connectionbull Ownership

Direct or Rack-Optimized Connection

The Logix5000 controller uses connections to transmit IO data These connections can be direct connections or rack-optimized connections

Term Definition

Direct connection A direct connection is a real-time data transfer link between the controller and an IO module The controller maintains and monitors the connection with the IO module Any break in the connection such as a module fault or the removal of a module while under power sets fault bits in the data area associated with the module

Rack-optimized connection

For digital IO modules you can select rack-optimized communication A rack-optimized connection consolidates connection usage between the controller and all the digital IO modules in the chassis (or DIN rail) Rather than having individual direct connections for each IO module there is one connection for the entire chassis (or DIN rail)

A direct connection is any connectionthat does not use the Rack Optimization

Come Format

Rack-optimizedconnection

Publication 1756-PM004B-EN-P - July 2008 9

Chapter 1 Communicating with IO

Ownership

In a Logix5000 system modules multicast data This means that multiple devices can receive the same data at the same time from a single device

When you choose a communication format you have to choose whether to establish an owner or listen-only relationship with the module

Owner controller The controller that creates the primary configuration and communication connection to a module The owner controller writes configuration data and can establish a connection to the module

Listen-only connection An IO connection where another controller ownsprovides the configuration data for the IO module A controller using a listen-only connection only monitors the module It does not write configuration data and can only maintain a connection to the IO module when the owner controller is actively controlling the IO module

An owner connection is anyconnection that does not includeListen-Only in its Comm Format

Listen-only connection

10 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 4: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Table of Contents

Enable Forces 48Disable or Remove a Force 48

Check Force Status 49FORCE LED 50GSV Instruction 50

When to Use an IO Force 51Force an Input Value 51Force an Output Value 52

Add an IO Force 52Remove or Disable Forces 53

Remove an Individual Force 53Disable All IO Forces 54Remove All IO Forces 54

4 Publication 1756-PM004B-EN-P - July 2008

Preface

Purpose of this Manual This manual shows how to access IO and tag data in Logix5000 controllers This manual is one of a set of related manuals that show common procedures for programming and operating Logix5000 controllers For a complete list of common procedures manuals refer to the Logix 5000 Controllers Common Procedures Programming Manual publication 1756-PM001

The term Logix5000 controller refers to any controller that is based on the Logix5000 operating system such as

bull CompactLogix controllersbull ControlLogix controllersbull DriveLogix controllersbull FlexLogix controllersbull SoftLogix5800 controllers

How to Use this Manual Some text is formatted differently from the rest of the text

Text that is Identifies For example Means

Italic the actual name of an item that you see on your screen or in an example

Right-click User-Defined hellip Right-click the item that is named User-Defined

courier information that you must supply based on your application (a variable)

Right-click name_of_program hellip

You must identify the specific program in your application Typically it is a name or variable that you have defined

enclosed in brackets a keyboard key Press [Enter] Press the Enter key

Publication 1756-PM004B-EN-P - July 2008 5

Preface

Notes

6 Publication 1756-PM004B-EN-P - July 2008

Chapter 1

Communicating with IO

Introduction To communicate with an IO module in your system you add the module to the IO Configuration folder of the controller

When you add the module you also define a specific configuration for the module While the configuration options vary from module to module there are some common options that you typically configure

bull Requested Packet Intervalbull Communication Formatbull Electronic Keying

Add IO modules here

7Publication 1756-PM004B-EN-P - July 2008 7

Chapter 1 Communicating with IO

Requested Packet Interval The Logix5000 controller uses connections to transmit IO data

In Logix5000 controllers IO values update at a period that you configure via the IO configuration folder of the project The values update asynchronous to the execution of logic At the specified interval the controller updates a value independently from the execution of logic

bull Programs within a task access input and output data directly from controller-scoped memory

bull Logic within any task can modify controller-scoped databull Data and IO values are asynchronous and can change during the

course of a taskrsquos executionbull An input value referenced at the beginning of a taskrsquos execution can be

different when referenced laterbull To prevent an input value from changing during a scan copy the value

to another tag and use the data from there (buffer the values)

Term Definition

Connection A communication link between two devices such as between a controller and an IO module PanelView terminal or another controller

Connections are allocations of resources that provide more reliable communications between devices than unconnected messages The number of connections that a single controller can have is limited

You indirectly determine the number of connections the controller uses by configuring the controller to communicate with other devices in the system The following types of communication use connections

bull IO modules

bull produced and consumed tags

bull certain types of Message (MSG) instructions (not all types use a connection)

Requested packet interval (RPI)

The RPI specifies the period at which data updates over a connection For example an input module sends data to a controller at the RPI that you assign to the module

bull Typically you configure an RPI in milliseconds (ms) The range is 02 ms (200 microseconds) to 750 ms

bull If a ControlNet network connects the devices the RPI reserves a slot in the stream of data flowing across the ControlNet network The timing of this slot may not coincide with the exact value of the RPI but the control system guarantees that the data transfers at least as often as the RPI

ATTENTION Take care to ensure that data memory contains the appropriate values throughout a taskrsquos execution You can duplicate or buffer data at the beginning of the scan to provide reference values for your logic

8 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Communication Format The communication format that you choose determines the data structure for the tags that are associated with the module Many IO modules support different formats Each format uses a different data structure The communication format that you choose also determines

bull Direct or Rack-Optimized Connectionbull Ownership

Direct or Rack-Optimized Connection

The Logix5000 controller uses connections to transmit IO data These connections can be direct connections or rack-optimized connections

Term Definition

Direct connection A direct connection is a real-time data transfer link between the controller and an IO module The controller maintains and monitors the connection with the IO module Any break in the connection such as a module fault or the removal of a module while under power sets fault bits in the data area associated with the module

Rack-optimized connection

For digital IO modules you can select rack-optimized communication A rack-optimized connection consolidates connection usage between the controller and all the digital IO modules in the chassis (or DIN rail) Rather than having individual direct connections for each IO module there is one connection for the entire chassis (or DIN rail)

A direct connection is any connectionthat does not use the Rack Optimization

Come Format

Rack-optimizedconnection

Publication 1756-PM004B-EN-P - July 2008 9

Chapter 1 Communicating with IO

Ownership

In a Logix5000 system modules multicast data This means that multiple devices can receive the same data at the same time from a single device

When you choose a communication format you have to choose whether to establish an owner or listen-only relationship with the module

Owner controller The controller that creates the primary configuration and communication connection to a module The owner controller writes configuration data and can establish a connection to the module

Listen-only connection An IO connection where another controller ownsprovides the configuration data for the IO module A controller using a listen-only connection only monitors the module It does not write configuration data and can only maintain a connection to the IO module when the owner controller is actively controlling the IO module

An owner connection is anyconnection that does not includeListen-Only in its Comm Format

Listen-only connection

10 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 5: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Preface

Purpose of this Manual This manual shows how to access IO and tag data in Logix5000 controllers This manual is one of a set of related manuals that show common procedures for programming and operating Logix5000 controllers For a complete list of common procedures manuals refer to the Logix 5000 Controllers Common Procedures Programming Manual publication 1756-PM001

The term Logix5000 controller refers to any controller that is based on the Logix5000 operating system such as

bull CompactLogix controllersbull ControlLogix controllersbull DriveLogix controllersbull FlexLogix controllersbull SoftLogix5800 controllers

How to Use this Manual Some text is formatted differently from the rest of the text

Text that is Identifies For example Means

Italic the actual name of an item that you see on your screen or in an example

Right-click User-Defined hellip Right-click the item that is named User-Defined

courier information that you must supply based on your application (a variable)

Right-click name_of_program hellip

You must identify the specific program in your application Typically it is a name or variable that you have defined

enclosed in brackets a keyboard key Press [Enter] Press the Enter key

Publication 1756-PM004B-EN-P - July 2008 5

Preface

Notes

6 Publication 1756-PM004B-EN-P - July 2008

Chapter 1

Communicating with IO

Introduction To communicate with an IO module in your system you add the module to the IO Configuration folder of the controller

When you add the module you also define a specific configuration for the module While the configuration options vary from module to module there are some common options that you typically configure

bull Requested Packet Intervalbull Communication Formatbull Electronic Keying

Add IO modules here

7Publication 1756-PM004B-EN-P - July 2008 7

Chapter 1 Communicating with IO

Requested Packet Interval The Logix5000 controller uses connections to transmit IO data

In Logix5000 controllers IO values update at a period that you configure via the IO configuration folder of the project The values update asynchronous to the execution of logic At the specified interval the controller updates a value independently from the execution of logic

bull Programs within a task access input and output data directly from controller-scoped memory

bull Logic within any task can modify controller-scoped databull Data and IO values are asynchronous and can change during the

course of a taskrsquos executionbull An input value referenced at the beginning of a taskrsquos execution can be

different when referenced laterbull To prevent an input value from changing during a scan copy the value

to another tag and use the data from there (buffer the values)

Term Definition

Connection A communication link between two devices such as between a controller and an IO module PanelView terminal or another controller

Connections are allocations of resources that provide more reliable communications between devices than unconnected messages The number of connections that a single controller can have is limited

You indirectly determine the number of connections the controller uses by configuring the controller to communicate with other devices in the system The following types of communication use connections

bull IO modules

bull produced and consumed tags

bull certain types of Message (MSG) instructions (not all types use a connection)

Requested packet interval (RPI)

The RPI specifies the period at which data updates over a connection For example an input module sends data to a controller at the RPI that you assign to the module

bull Typically you configure an RPI in milliseconds (ms) The range is 02 ms (200 microseconds) to 750 ms

bull If a ControlNet network connects the devices the RPI reserves a slot in the stream of data flowing across the ControlNet network The timing of this slot may not coincide with the exact value of the RPI but the control system guarantees that the data transfers at least as often as the RPI

ATTENTION Take care to ensure that data memory contains the appropriate values throughout a taskrsquos execution You can duplicate or buffer data at the beginning of the scan to provide reference values for your logic

8 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Communication Format The communication format that you choose determines the data structure for the tags that are associated with the module Many IO modules support different formats Each format uses a different data structure The communication format that you choose also determines

bull Direct or Rack-Optimized Connectionbull Ownership

Direct or Rack-Optimized Connection

The Logix5000 controller uses connections to transmit IO data These connections can be direct connections or rack-optimized connections

Term Definition

Direct connection A direct connection is a real-time data transfer link between the controller and an IO module The controller maintains and monitors the connection with the IO module Any break in the connection such as a module fault or the removal of a module while under power sets fault bits in the data area associated with the module

Rack-optimized connection

For digital IO modules you can select rack-optimized communication A rack-optimized connection consolidates connection usage between the controller and all the digital IO modules in the chassis (or DIN rail) Rather than having individual direct connections for each IO module there is one connection for the entire chassis (or DIN rail)

A direct connection is any connectionthat does not use the Rack Optimization

Come Format

Rack-optimizedconnection

Publication 1756-PM004B-EN-P - July 2008 9

Chapter 1 Communicating with IO

Ownership

In a Logix5000 system modules multicast data This means that multiple devices can receive the same data at the same time from a single device

When you choose a communication format you have to choose whether to establish an owner or listen-only relationship with the module

Owner controller The controller that creates the primary configuration and communication connection to a module The owner controller writes configuration data and can establish a connection to the module

Listen-only connection An IO connection where another controller ownsprovides the configuration data for the IO module A controller using a listen-only connection only monitors the module It does not write configuration data and can only maintain a connection to the IO module when the owner controller is actively controlling the IO module

An owner connection is anyconnection that does not includeListen-Only in its Comm Format

Listen-only connection

10 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 6: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Preface

Notes

6 Publication 1756-PM004B-EN-P - July 2008

Chapter 1

Communicating with IO

Introduction To communicate with an IO module in your system you add the module to the IO Configuration folder of the controller

When you add the module you also define a specific configuration for the module While the configuration options vary from module to module there are some common options that you typically configure

bull Requested Packet Intervalbull Communication Formatbull Electronic Keying

Add IO modules here

7Publication 1756-PM004B-EN-P - July 2008 7

Chapter 1 Communicating with IO

Requested Packet Interval The Logix5000 controller uses connections to transmit IO data

In Logix5000 controllers IO values update at a period that you configure via the IO configuration folder of the project The values update asynchronous to the execution of logic At the specified interval the controller updates a value independently from the execution of logic

bull Programs within a task access input and output data directly from controller-scoped memory

bull Logic within any task can modify controller-scoped databull Data and IO values are asynchronous and can change during the

course of a taskrsquos executionbull An input value referenced at the beginning of a taskrsquos execution can be

different when referenced laterbull To prevent an input value from changing during a scan copy the value

to another tag and use the data from there (buffer the values)

Term Definition

Connection A communication link between two devices such as between a controller and an IO module PanelView terminal or another controller

Connections are allocations of resources that provide more reliable communications between devices than unconnected messages The number of connections that a single controller can have is limited

You indirectly determine the number of connections the controller uses by configuring the controller to communicate with other devices in the system The following types of communication use connections

bull IO modules

bull produced and consumed tags

bull certain types of Message (MSG) instructions (not all types use a connection)

Requested packet interval (RPI)

The RPI specifies the period at which data updates over a connection For example an input module sends data to a controller at the RPI that you assign to the module

bull Typically you configure an RPI in milliseconds (ms) The range is 02 ms (200 microseconds) to 750 ms

bull If a ControlNet network connects the devices the RPI reserves a slot in the stream of data flowing across the ControlNet network The timing of this slot may not coincide with the exact value of the RPI but the control system guarantees that the data transfers at least as often as the RPI

ATTENTION Take care to ensure that data memory contains the appropriate values throughout a taskrsquos execution You can duplicate or buffer data at the beginning of the scan to provide reference values for your logic

8 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Communication Format The communication format that you choose determines the data structure for the tags that are associated with the module Many IO modules support different formats Each format uses a different data structure The communication format that you choose also determines

bull Direct or Rack-Optimized Connectionbull Ownership

Direct or Rack-Optimized Connection

The Logix5000 controller uses connections to transmit IO data These connections can be direct connections or rack-optimized connections

Term Definition

Direct connection A direct connection is a real-time data transfer link between the controller and an IO module The controller maintains and monitors the connection with the IO module Any break in the connection such as a module fault or the removal of a module while under power sets fault bits in the data area associated with the module

Rack-optimized connection

For digital IO modules you can select rack-optimized communication A rack-optimized connection consolidates connection usage between the controller and all the digital IO modules in the chassis (or DIN rail) Rather than having individual direct connections for each IO module there is one connection for the entire chassis (or DIN rail)

A direct connection is any connectionthat does not use the Rack Optimization

Come Format

Rack-optimizedconnection

Publication 1756-PM004B-EN-P - July 2008 9

Chapter 1 Communicating with IO

Ownership

In a Logix5000 system modules multicast data This means that multiple devices can receive the same data at the same time from a single device

When you choose a communication format you have to choose whether to establish an owner or listen-only relationship with the module

Owner controller The controller that creates the primary configuration and communication connection to a module The owner controller writes configuration data and can establish a connection to the module

Listen-only connection An IO connection where another controller ownsprovides the configuration data for the IO module A controller using a listen-only connection only monitors the module It does not write configuration data and can only maintain a connection to the IO module when the owner controller is actively controlling the IO module

An owner connection is anyconnection that does not includeListen-Only in its Comm Format

Listen-only connection

10 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 7: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 1

Communicating with IO

Introduction To communicate with an IO module in your system you add the module to the IO Configuration folder of the controller

When you add the module you also define a specific configuration for the module While the configuration options vary from module to module there are some common options that you typically configure

bull Requested Packet Intervalbull Communication Formatbull Electronic Keying

Add IO modules here

7Publication 1756-PM004B-EN-P - July 2008 7

Chapter 1 Communicating with IO

Requested Packet Interval The Logix5000 controller uses connections to transmit IO data

In Logix5000 controllers IO values update at a period that you configure via the IO configuration folder of the project The values update asynchronous to the execution of logic At the specified interval the controller updates a value independently from the execution of logic

bull Programs within a task access input and output data directly from controller-scoped memory

bull Logic within any task can modify controller-scoped databull Data and IO values are asynchronous and can change during the

course of a taskrsquos executionbull An input value referenced at the beginning of a taskrsquos execution can be

different when referenced laterbull To prevent an input value from changing during a scan copy the value

to another tag and use the data from there (buffer the values)

Term Definition

Connection A communication link between two devices such as between a controller and an IO module PanelView terminal or another controller

Connections are allocations of resources that provide more reliable communications between devices than unconnected messages The number of connections that a single controller can have is limited

You indirectly determine the number of connections the controller uses by configuring the controller to communicate with other devices in the system The following types of communication use connections

bull IO modules

bull produced and consumed tags

bull certain types of Message (MSG) instructions (not all types use a connection)

Requested packet interval (RPI)

The RPI specifies the period at which data updates over a connection For example an input module sends data to a controller at the RPI that you assign to the module

bull Typically you configure an RPI in milliseconds (ms) The range is 02 ms (200 microseconds) to 750 ms

bull If a ControlNet network connects the devices the RPI reserves a slot in the stream of data flowing across the ControlNet network The timing of this slot may not coincide with the exact value of the RPI but the control system guarantees that the data transfers at least as often as the RPI

ATTENTION Take care to ensure that data memory contains the appropriate values throughout a taskrsquos execution You can duplicate or buffer data at the beginning of the scan to provide reference values for your logic

8 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Communication Format The communication format that you choose determines the data structure for the tags that are associated with the module Many IO modules support different formats Each format uses a different data structure The communication format that you choose also determines

bull Direct or Rack-Optimized Connectionbull Ownership

Direct or Rack-Optimized Connection

The Logix5000 controller uses connections to transmit IO data These connections can be direct connections or rack-optimized connections

Term Definition

Direct connection A direct connection is a real-time data transfer link between the controller and an IO module The controller maintains and monitors the connection with the IO module Any break in the connection such as a module fault or the removal of a module while under power sets fault bits in the data area associated with the module

Rack-optimized connection

For digital IO modules you can select rack-optimized communication A rack-optimized connection consolidates connection usage between the controller and all the digital IO modules in the chassis (or DIN rail) Rather than having individual direct connections for each IO module there is one connection for the entire chassis (or DIN rail)

A direct connection is any connectionthat does not use the Rack Optimization

Come Format

Rack-optimizedconnection

Publication 1756-PM004B-EN-P - July 2008 9

Chapter 1 Communicating with IO

Ownership

In a Logix5000 system modules multicast data This means that multiple devices can receive the same data at the same time from a single device

When you choose a communication format you have to choose whether to establish an owner or listen-only relationship with the module

Owner controller The controller that creates the primary configuration and communication connection to a module The owner controller writes configuration data and can establish a connection to the module

Listen-only connection An IO connection where another controller ownsprovides the configuration data for the IO module A controller using a listen-only connection only monitors the module It does not write configuration data and can only maintain a connection to the IO module when the owner controller is actively controlling the IO module

An owner connection is anyconnection that does not includeListen-Only in its Comm Format

Listen-only connection

10 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 8: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 1 Communicating with IO

Requested Packet Interval The Logix5000 controller uses connections to transmit IO data

In Logix5000 controllers IO values update at a period that you configure via the IO configuration folder of the project The values update asynchronous to the execution of logic At the specified interval the controller updates a value independently from the execution of logic

bull Programs within a task access input and output data directly from controller-scoped memory

bull Logic within any task can modify controller-scoped databull Data and IO values are asynchronous and can change during the

course of a taskrsquos executionbull An input value referenced at the beginning of a taskrsquos execution can be

different when referenced laterbull To prevent an input value from changing during a scan copy the value

to another tag and use the data from there (buffer the values)

Term Definition

Connection A communication link between two devices such as between a controller and an IO module PanelView terminal or another controller

Connections are allocations of resources that provide more reliable communications between devices than unconnected messages The number of connections that a single controller can have is limited

You indirectly determine the number of connections the controller uses by configuring the controller to communicate with other devices in the system The following types of communication use connections

bull IO modules

bull produced and consumed tags

bull certain types of Message (MSG) instructions (not all types use a connection)

Requested packet interval (RPI)

The RPI specifies the period at which data updates over a connection For example an input module sends data to a controller at the RPI that you assign to the module

bull Typically you configure an RPI in milliseconds (ms) The range is 02 ms (200 microseconds) to 750 ms

bull If a ControlNet network connects the devices the RPI reserves a slot in the stream of data flowing across the ControlNet network The timing of this slot may not coincide with the exact value of the RPI but the control system guarantees that the data transfers at least as often as the RPI

ATTENTION Take care to ensure that data memory contains the appropriate values throughout a taskrsquos execution You can duplicate or buffer data at the beginning of the scan to provide reference values for your logic

8 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Communication Format The communication format that you choose determines the data structure for the tags that are associated with the module Many IO modules support different formats Each format uses a different data structure The communication format that you choose also determines

bull Direct or Rack-Optimized Connectionbull Ownership

Direct or Rack-Optimized Connection

The Logix5000 controller uses connections to transmit IO data These connections can be direct connections or rack-optimized connections

Term Definition

Direct connection A direct connection is a real-time data transfer link between the controller and an IO module The controller maintains and monitors the connection with the IO module Any break in the connection such as a module fault or the removal of a module while under power sets fault bits in the data area associated with the module

Rack-optimized connection

For digital IO modules you can select rack-optimized communication A rack-optimized connection consolidates connection usage between the controller and all the digital IO modules in the chassis (or DIN rail) Rather than having individual direct connections for each IO module there is one connection for the entire chassis (or DIN rail)

A direct connection is any connectionthat does not use the Rack Optimization

Come Format

Rack-optimizedconnection

Publication 1756-PM004B-EN-P - July 2008 9

Chapter 1 Communicating with IO

Ownership

In a Logix5000 system modules multicast data This means that multiple devices can receive the same data at the same time from a single device

When you choose a communication format you have to choose whether to establish an owner or listen-only relationship with the module

Owner controller The controller that creates the primary configuration and communication connection to a module The owner controller writes configuration data and can establish a connection to the module

Listen-only connection An IO connection where another controller ownsprovides the configuration data for the IO module A controller using a listen-only connection only monitors the module It does not write configuration data and can only maintain a connection to the IO module when the owner controller is actively controlling the IO module

An owner connection is anyconnection that does not includeListen-Only in its Comm Format

Listen-only connection

10 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 9: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Communicating with IO Chapter 1

Communication Format The communication format that you choose determines the data structure for the tags that are associated with the module Many IO modules support different formats Each format uses a different data structure The communication format that you choose also determines

bull Direct or Rack-Optimized Connectionbull Ownership

Direct or Rack-Optimized Connection

The Logix5000 controller uses connections to transmit IO data These connections can be direct connections or rack-optimized connections

Term Definition

Direct connection A direct connection is a real-time data transfer link between the controller and an IO module The controller maintains and monitors the connection with the IO module Any break in the connection such as a module fault or the removal of a module while under power sets fault bits in the data area associated with the module

Rack-optimized connection

For digital IO modules you can select rack-optimized communication A rack-optimized connection consolidates connection usage between the controller and all the digital IO modules in the chassis (or DIN rail) Rather than having individual direct connections for each IO module there is one connection for the entire chassis (or DIN rail)

A direct connection is any connectionthat does not use the Rack Optimization

Come Format

Rack-optimizedconnection

Publication 1756-PM004B-EN-P - July 2008 9

Chapter 1 Communicating with IO

Ownership

In a Logix5000 system modules multicast data This means that multiple devices can receive the same data at the same time from a single device

When you choose a communication format you have to choose whether to establish an owner or listen-only relationship with the module

Owner controller The controller that creates the primary configuration and communication connection to a module The owner controller writes configuration data and can establish a connection to the module

Listen-only connection An IO connection where another controller ownsprovides the configuration data for the IO module A controller using a listen-only connection only monitors the module It does not write configuration data and can only maintain a connection to the IO module when the owner controller is actively controlling the IO module

An owner connection is anyconnection that does not includeListen-Only in its Comm Format

Listen-only connection

10 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 10: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 1 Communicating with IO

Ownership

In a Logix5000 system modules multicast data This means that multiple devices can receive the same data at the same time from a single device

When you choose a communication format you have to choose whether to establish an owner or listen-only relationship with the module

Owner controller The controller that creates the primary configuration and communication connection to a module The owner controller writes configuration data and can establish a connection to the module

Listen-only connection An IO connection where another controller ownsprovides the configuration data for the IO module A controller using a listen-only connection only monitors the module It does not write configuration data and can only maintain a connection to the IO module when the owner controller is actively controlling the IO module

An owner connection is anyconnection that does not includeListen-Only in its Comm Format

Listen-only connection

10 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 11: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Communicating with IO Chapter 1

Use the following table to choose the type of ownership for a module

There is a noted difference in controlling input modules versus controlling output modules

If the module is an

And another controller And you want to Then use this type of connection

Input module Does not own the module Owner (not listen-only)

Owns the module Maintain communication with the module if it loses communication with the other controller

Owner (not listen-only)

Use the same configuration as the other owner controller

Stop communication with the module if it loses communication with the other controller

Listen-only

Output module Does not own the module Owner (ie not listen-only)

Owns the module Listen-only

Controlling This ownership Description

Input modules Owner An input module is configured by a controller that establishes a connection as an owner This configuring controller is the first controller to establish an owner connection

Once an input module has been configured (and owned by a controller) other controllers can establish owner connections to that module This lets additional owners to continue to receive multicast data if the original owner controller breaks its connection to the module All other additional owners must have the identical configuration data and identical communications format that the original owner controller has otherwise the connection attempt is rejected

Listen-only Once an input module has been configured (and owned by a controller) other controllers can establish a listen-only connection to that module These controllers can receive multicast data while another controller owns the module If all owner controllers break their connections to the input module all controllers with listen-only connections no longer receive multicast data

Output modules Owner An output module is configured by a controller that establishes a connection as an owner Only one owner connection is allowed for an output module If another controller attempts to establish an owner connection the connection attempt is rejected

Listen-only Once an output module has been configured (and owned by one controller) other controllers can establish listen-only connections to that module These controllers can receive multicast data while another controller owns the module If the owner controller breaks its connection to the output module all controllers with listen-only connections no longer receive multicast data

Publication 1756-PM004B-EN-P - July 2008 11

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 12: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 1 Communicating with IO

Electronic Keying

When you configure a module you specify the slot number for the module However it is possible to place a different module in that slot either on purpose or accidently

Electronic keying lets you protect your system against the accidental placement of the wrong module in a slot The keying option you choose determines how closely any module in a slot must match the configuration for that slot

ATTENTION Be careful when you disable electronic keying If used incorrectly this option can lead to personal injury or death property damage or economic loss

If Then Select

All information must match

bull type

bull catalog number

bull vendor

bull major and minor revision number

Exact Match

All information except the minor revision number Compatible Module

No information must match Disable Keying

12 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 13: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Communicating with IO Chapter 1

Address IO Data IO information is presented as a set of tagsbull Each tag uses a structure of data The structure depends on the specific

features of the IO modulebull The name of the tags is based on the location of the IO module in the

system

An IO address follows this format

When you add a module to the IOConfiguration folderhellip

hellipthe software automatically creates controller-scoped tags for the module

Location Slot Type Member SubMember Bit

= Optional

Where Is

Location Network location

LOCAL = same chassis or DIN rail as the controller

ADAPTER_NAME = identifies remote communication adapter or bridge module

Slot Slot number of IO module in its chassis or DIN rail

Type Type of data

I = input

O = output

C = configuration

S = status

Member Specific data from the IO module depends on what type of data the module can store

bull For a digital module a Data member usually stores the input or output bit values

bull For an analog module a Channel member (CH) usually stores the data for a channel

SubMember Specific data related to a Member

Bit Specific point on a digital IO module depends on the size of the IO module (0-31 for a 32-point module)

Publication 1756-PM004B-EN-P - July 2008 13

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 14: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 1 Communicating with IO

Buffering IO Buffering is a technique in which logic does not directly reference or manipulate the tags of real IO devices Instead the logic uses a copy of the IO data Buffer IO in the following situations

bull To prevent an input or output value from changing during the execution of a program (IO updates asynchronous to the execution of logic)

bull To copy an input or output tag to a member of a structure or element of an array

Buffer IO

To buffer IO perform these actions

1 On the rung before the logic for the function (s) copy or move the data from the required input tags to their corresponding buffer tags

2 In the logic of the function (s) reference the buffer tags

3 On the rung after the function (s) copy the data from the buffer tags to the corresponding output tags

14 Publication 1756-PM004B-EN-P - July 2008

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 15: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Communicating with IO Chapter 1

This example copies inputs and outputs to the tags of a structure for a drill machine

EXAMPLE Buffer IO

The main routine of the program executes the following subroutines in this sequence

The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine

The drill routine executes the logic for the drill machine

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices

42369

Jump to SubroutineRoutine name map_inputs

JSRJump to SubroutineRoutine name drill

JSRJump to SubroutineRoutine name map_outputs

JSR

_1791_8ACIData[0]0 drill[1]depth_limit

_1791_8ACIData[0]4 drill[1]home_limit

drill[1]part_advance

ONSone_shots0

drill[1]forward

drill[1]depth_limit drill[1]forward

drill[1]depth_limit

drill[1]retract

drill[1]home_limit drill[1]retract

drill[1]forward _1791_8ACOData[0]0

drill[1]retract _1791_8ACOData[0]1

Publication 1756-PM004B-EN-P - July 2008 15

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 16: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 1 Communicating with IO

This example uses the CPS instruction to copy an array of data that represent the input devices of a DeviceNet network

EXAMPLE Buffer IO

Local0IData stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0 To synchronize the inputs with the application the CPS instruction copies the input data to input_buffer

bull While the CPS instruction copies the data no IO updates can change the databull As the application executes it uses for its inputs the input data in input_buffer

42578

Synchronous Copy FileSource Local0IData[0]Dest input_buffer[0]Length 20

CPS

16 Publication 1756-PM004B-EN-P - July 2008

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 17: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2

Organizing Tags

Introduction With a Logix5000 controller you use a tag (alphanumeric name) to address data (variables)

The controller uses the tag name internally and doesnrsquot need to cross-reference a physical address

bull In conventional programmable controllers a physical address identifies each item of datandash Addresses follow a fixed numeric format that depend on the type of

data such as N78 F83ndash Symbols are required to make logic easier to interpret

bull In Logix5000 controllers there is no fixed numeric format The tag name itself identifies the data This lets youndash organize your data to mirror your machineryndash document (through tag names) your application as you develop it

Term Definition

Tag A text-based name for an area of the controllerrsquos memory where data is stored

bull Tags are the basic mechanism for allocating memory referencing data from logic and monitoring data

bull The minimum memory allocation for a tag is four bytes

bull When you create a tag that stores data that requires less than four bytes the controller allocates four bytes but the data only fills the part it needs

17Publication 1756-PM004B-EN-P - July 2008 17

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 18: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Tag Type

The tag type defines how the tag operates within your project

If you plan to use produced or consumed tags you must follow additional guidelines as you organize your tags

EXAMPLE Tags

Digital IO device

Analog IO device

Integer value

Storage bit

Counter

Timer

If you want the tag to Then choose this type

Store a value or values for use by logic within the project

Base

Represent another tag Alias

Send data to another controller Produced

Receive data from another controller Consumed

18 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 19: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

Data Type

The following table outlines the most common data types and when to use each

Term Definition

Data type The data type defines the type of data that a tag stores such as a bit integer floating-point value string etc

Structure A data type that is a combination of other data types

bull A structure is formatted to create a unique data type that matches a specific need

bull Within a structure each individual data type is called a member

bull Like tags members have a name and data type

bull A Logix5000 controller contains a set of predefined structures (data types) for use with specific instructions such as timers counters Function Blocks etc

bull You can create your own structures called a user-defined data type

For Select

Analog device in floating-point mode REAL

Analog device in integer mode (for very fast sample rates) INT

ASCII characters String

Bit BOOL

Counter COUNTER

Digital IO point BOOL

Floating-point number REAL

Integer (whole number) DINT

Sequencer CONTROL

Timer TIMER

Publication 1756-PM004B-EN-P - July 2008 19

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 20: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

The minimum memory allocation for a tag is 4 bytes When you create a tag that stores data that requires less than four bytes the controller allocates 4 bytes but the data only fills the part it needs

The COUNTER and TIMER data types are examples of commonly used structures

To copy data to a structure use the COP instruction

Refer to the Logix5000 Controllers General Instruction Set Reference Manual publication 1756-RM003

Data type Bits

31 16 15 8 7 1 0

BOOL Not used 0 or 1

SINT Not used -128 to +127

INT Not used -32768 to +32767

DINT -2147483648 to +2147483647

REAL -340282347E38 to -117549435E-38 (negative values)

0

117549435E-38 to 340282347E38 (positive values)

42365

To expand a structure and display its members click the + sign

To collapse a structure and hide its members click the ndash sign

COUNTER structure

TIMER structure

Data types of the members

Members of running_seconds

20 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 21: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

Scope

When you create a tag you define it as either a controller tag (global data) or a program tag for a specific program (local data)

A Logix5000 controller lets you divide your application into multiple programs each with its own data There is no need to manage conflicting tag names between programs This makes it easier to re-use both code and tag names in multiple programs

Controller tags (global data)

Task

Program

Project

Other routines

Main routine

IO data

Program tags (local data)

System-shared data

Controller tags (global data)

Program_A

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Tag_1

Tag_2

Program_B

Other routines

Main routine Tag_4

Tag_5

Program tags (local data)

Data at the program scope is isolated from other programs

bull Routines cannot access data that is at the program scope of another program

bull You can re-use the tag name of a program-scoped tag in multiple programs

For example both Program_A and Program_B can have a program tag named Tag_4

Data

All programs have access todata that is at the controller

scope

Publication 1756-PM004B-EN-P - July 2008 21

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 22: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Avoid using the same name for a both controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

Guideline Details

1 Create user-defined data types User-defined data types (structures) let you organize data to match your machine or process A user-defined data type provides these advantages

bull One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type

bull Each individual piece of data (member) gets a descriptive name This automatically creates an initial level of documentation for your logic

bull You can use the data type to create multiple tags with the same data lay-out

For example use a user-defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type

2 Use arrays to quickly create a group of similar tags

An array creates multiple instances of a data type under a common tag name

bull Arrays let you organize a block of tags that use the same data type and perform a similar function

bull You organize the data in 1 2 or 3 dimensions to match what the data represents

For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank

Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data

bull Typically use a BOOL array for the bit-level objects of a PanelView screen

bull Otherwise use the individual bits of a DINT tag or an array of DINTs

22 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 23: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

3 Take advantage of program-scoped tags

If you want multiple tags with the same name define each tag at the program scope (program tags) for a different program This lets you re-use both logic and tag names in multiple programs

Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program

Certain tags must be controller scope (controller tag)

If you want to use the tag Then assign this scope

In more than one program in the project

Controller scope (controller tags)In a Message (MSG) instruction

To produce or consume data

To communicate with a PanelView terminal

None of the above Program scope (program tags)

4 For integers use the DINT data type To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers

bull A Logix5000 controller typically compares or manipulates values as 32-bit values (DINTs or REALs)

bull The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value

bull If the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value

bull The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory

Guideline Details

Publication 1756-PM004B-EN-P - July 2008 23

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 24: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

5 Limit a tag name to 40 characters Here are the rules for a tag name

bull only alphabetic characters (A-Z or a-z) numeric characters (0-9) and underscores (_)

bull must start with an alphabetic character or an underscore

bull no more than 40 characters

bull no consecutive or trailing underscore characters (_)

bull not case sensitive

6 Use mixed case Although tags are not case sensitive (upper case A is the same as lower case a) mixed case is easier to read

These tags are easier to read Than these tags

Tank_1 TANK_1

Tank1 TANK1

tank_1

tank1

7 Consider the alphabetical order of tags

RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together

Guideline Details

Starting each tag for a tank with Tank keeps the tags together

Tag Name

Tank_North

Tank_South

hellip

Otherwise the tags may end up separated from each other

Tag Name

North_Tank

hellip

hellip

hellip

South_Tank

Other tags that start with the letters o p q etc

24 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 25: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

Create a Tag

The Tags window lets you create and edit tags using a spreadsheet-style view of the tags

1 From the Logic menu select Edit Tags

2 Select a scope for the tag

3 Type a name data type and description (optional) for the tag

IMPORTANT RSLogix 5000 software automatically creates tags when you

bull add an element to a sequential function chart (SFC)bull add a Function Block instruction to a Function Block

diagram

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

Publication 1756-PM004B-EN-P - July 2008 25

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 26: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Create an Array Logix5000 controllers also let you use arrays to organize data

A subscript (s) identifies each individual element within the array A subscript starts at 0 and extends to the number of elements minus 1 (zero based)

Term Definition

Array A tag that contains a block of multiple pieces of data

bull An array is similar to a file

bull Within an array each individual piece of data is called an element

bull Each element uses the same data type

bull An array tag occupies a contiguous block of memory in the controller each element in sequence

bull You can use array and sequencer instructions to manipulate or index through the elements of an array

bull You organize the data into a block of 1 2 or 3 dimensions

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

26 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 27: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

The following example compares a structure to an array

This is a tag that uses the Timer structure (data type)

Tag Name Data Type

Timer_1 TIMER

Timer_1PRE DINT

Timer_1ACC DINT

Timer_1EN BOOL

Timer_1TT BOOL

Timer_1DN BOOL

minus

+

+

This is a tag that uses an array of the Timer data type

Tag Name Data Type

Timers TIMER[3]

Timer[0] TIMER

Timer[1] TIMER

Timer[2] TIMER

minus

+

+

+

EXAMPLE Single dimension array

In this example a single timer instruction times the duration of several steps Each step requires a different preset value Because all the values are the same data type (DINTs) an array is used

42367

To expand an array and display its elements click the + sign

To collapse an array and hide its elements click the ndash sign

This array contains six elements of the DINT data type

Six DINTsElements of timer_presets

Publication 1756-PM004B-EN-P - July 2008 27

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 28: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

EXAMPLE Two dimension array

A drill machine can drill one to five holes in a book The machine requires a value for the position of each hole from the leading edge of the book To organize the values into configurations a two dimension array is used The first subscript indicates the hole to which the value corresponds and the second subscript indications how many holes will be drilled (one to five)

In the Tags window the elements are in the order depicted below

Subscript of second dimension Description

0 1 2 3 4 5

Subscript of first dimension

0

1 15 25 125 125 125 Position of first hole from leading edge of book

2 80 55 35 35 Position of second hole from leading edge of book

3 975 75 55 Position of third hole from leading edge of book

4 975 75 Position of fourth hole from leading edge of book

5 975 Position of fifth hole from leading edge of book

42367

The right-most dimension increments to its maximum value then starts over

This array contains a two-dimensional grid of elements six elements by six elements

When the right-most dimension starts over the dimension to the left increments by one

28 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 29: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

Create an Array

To create an array you create a tag and assign dimensions to the data type

1 From the Logic menu select Edit Tags

2 Type a name for the tag and select a scope for the tag

3 Assign the array dimensions

42350

If you will use the tag Then select

In more than one program within the project

name_of_controller(controller)

As a producer or consumer

In a message

In only one program within the project Program that will use the tag

If the tag is Then type Where

One dimension array data_type[x] data_type is the type of data that the tag stores

x is the number of elements in the first dimension

y is the number of elements in the second dimension

z is the number of elements in the third dimension

Two dimension array data_type[xy]

Three dimension array data_type[xyz]

Publication 1756-PM004B-EN-P - July 2008 29

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 30: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Create a User-Defined Data Type

User-defined data types (structures) let you organize your data to match your machine or process

EXAMPLE User-defined data type that stores a recipe

In a system of several tanks each tank can run a variety of recipes Because the recipe requires a mix of data types (REAL DINT BOOL etc) a user-defined data type is used

An array that is based on this data type would look like this

Name (of data type) TANK

Member Name Data Type

Temp REAL

Deadband REAL

Step DINT

Step_time TIMER

Preset DINT[6]

Mix BOOL

42368

Array of recipes

First recipeThis array contains three elements of the TANK data type

Members of therecipe

30 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 31: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

EXAMPLE User-defined data type that stores the data that is required to run a machine

Because several drill stations require the following mix of data use a user-defined data type

An array that is based on this data type looks like

Name (of data type) DRILL_STATION

Member Name Data Type

Part_advance BOOL

Hole_sequence CONTROL

Type DINT

Hole_position REAL

Depth REAL

Total_depth REAL

42583

Array of drills

First drillThis array contains four elements of the DRILL_STATION data type

Data for the drill

Publication 1756-PM004B-EN-P - July 2008 31

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 32: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Guidelines for User-Defined Data Types

When you create a user-defined data type keep the following in mind

bull If you include members that represent IO devices you must use logic to copy the data between the members in the structure and the corresponding IO tags Refer to Address IO Data on page 13

bull If you include an array as a member limit the array to a single dimension Multi-dimension arrays are not permitted in a user-defined data type

bull When you use the BOOL SINT or INT data types place members that use the same data type in sequence

Create a User-Defined Data Type

1 From the User-Defined folder under Data Types right-click User-Defined and select New Data Type

More efficient

BOOL

BOOL

BOOL

DINT

DINT

Less efficient

BOOL

DINT

BOOL

DINT

BOOL

32 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 33: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

2 Type a name for the array description for the array

3 For each member of the array type a name data type style and description (optional)

Limit any arrays to a single dimension

To display the value (s) of the member in a different style (radix) select the style

4 Click Apply

5 Add as many members as needed

42196

Publication 1756-PM004B-EN-P - July 2008 33

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 34: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Describe a User-Defined Data Type

RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user-defined data types This greatly reduces the amount of time you have to spend documenting your project

As you organize your user-defined data types keep in mind the following features of RSLogix 5000 software

RSLogix 5000 software uses different colors for descriptions

RSLogix 5000 software 130 or later

Pass through of descriptions ndash When possible RSLogix 5000 software looks for an available description for a tag element or member

bull Descriptions in user-defined data types ripple through to the tags that use that data type

bull Description of an array tag ripples through to the elements and members of the array

Paste pass-through description ndash Use the data type and array description as a basis for more specific descriptions

In this example Tank became West Tank

Append description to base tag ndash RSLogix 5000 software automatically builds a description for each member of a tag that uses a user-defined data type It starts with the description of the tag and then adds the description of the member from the data type

A description in this color Is a

Gray Pass-through description

Black Manually entered description

34 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 35: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

Turn Pass-Through and Append Descriptions On or Off

Paste a Pass-Through Description

To use a pass-through description as the starting point for a more specific description

1 In RSLogix 5000 software choose Tools gt Options

2 Select the Application gt Display

3 Turn on (check) or turn off (uncheck) the desired options

1 Right-click the pass-through description and choose Paste Pass-Through

2 Edit the description and press Ctrl] + [Enter]

Publication 1756-PM004B-EN-P - July 2008

35

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 36: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Address Tag Data An tag name follows this format

Name [Element] Member [Element] Bit

or

[Index]

= Optional

Where Is

Name Name that identifies this specific tag

Element Subscript or subscripts that point to a specific element within an array

bull Use the element identifier only if the tag or member is an array

bull Use one subscript for each dimension of the array For example [5] [28] [327]

To indirectly (dynamically) reference an element use a tag or numeric expression that provides the element number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS (Tag_4)

bull Keep the value of the tag or numeric expression within the dimensions of the array For example if a dimension of an array contains 10 elements then the value of the tag or numeric expression must be 0 to 9 (10 elements)

Member Specific member of a structure

bull Use the member identifier only if the tag is a structure

bull If the structure contains another structure as one of its members use additional levels of theMember format to identify the required member

Bit Specific bit of an integer data type (SINT INT or DINT)

Index To indirectly (dynamically) reference a bit of an integer use a tag or numeric expression that provides the bit number

bull A numeric expression uses a combination of tags constants operators and functions to calculate a value For example Tag_1-Tag_2 Tag_3+4 ABS(Tag_4)

bull Keep the value of the tag or numeric expression within the range of bits of the integer tag For example if the integer tag is a Dint (32-bits) then the value of the index must be 0 to 31 (32-bits)

36 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 37: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

Assigning Alias Tags An alias tag lets you create one tag that represents another tagbull Both tags share the same value (s)bull When the value (s) of one of the tags changes the other tag reflects the

change as well

Use aliases in the following situationsbull Program logic in advance of wiring diagramsbull Assign a descriptive name to an IO devicebull Provide a more simple name for a complex tagbull Use a descriptive name for an element of an array

The tags window displays alias information

A common use of alias tags is to program logic before wiring diagrams are available

1 For each IO device create a tag with a name that describes the device such as conveyor for the conveyor motor

2 Program your logic using the descriptive tag names (You can even test your logic without connecting to the IO)

3 Later when wiring diagrams are available add the IO modules to the IO configuration of the controller

4 Finally convert the descriptive tags to aliases for their respective IO points or channels

drill_1_depth_limit is an alias for Local2IData3 (a digital input point) When the input turns on the alias tag also turns on

drill_1_on is an alias for Local0OData2 (a digital output point) When the alias tag turns on the output tag also turns on

north_tank is an alias for tanks[01]

42360

The (C) indicates that the tag is at the controller scope

Publication 1756-PM004B-EN-P - July 2008 37

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 38: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

The following logic was initially programmed using descriptive tag names such as stop and conveyor_on Later the tags were converted to aliases for the corresponding IO devices

42351

Display Alias Information

To show (in your logic) the tag to which an alias points do the following

1 From the Tools menu select Options

2 Select the Ladder Display tab

3 Check the Show Tag Alias Information check box

4 Click OK

stopltLocal2IData1gt

startltLocal2IData0gt

machine_on

machine_ondrill_1_on

ltLocal0OData2gt drill_1part_advance

conveyor_onltLocal0OData0gt

stop is an alias for Local2IData1 (the stop button on the operator panel)

conveyor_on is an alias for Local0OData0

(the starter contactor for the conveyor motor)

38 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 39: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

Assign an Alias

To assign a tag as an alias tag for another tag do the following

1 From the Logic menu select Edit Tags

2 Select the scope of the tag

3 To the right of the tag name click the Alias For cell

The cell displays a gt

4 Click the gt

5 Select the tag that the alias will represent

6 Press [Enter] or click another cell

42360

To Do this

Select a tag Double-click the tag name

Select a bit number A Click the tag name

B To the right of the tag name click gt

C Click the required bit

Publication 1756-PM004B-EN-P - July 2008 39

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 40: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Assigning an Indirect Address

If you want an instruction to access different elements in an array use a tag in the subscript of the array (an indirect address) By changing the value of the tag you change the element of the array that your logic references

The following table outlines some common uses for an indirect address

When index equals 1 array[index] points here

array[0] 4500

array[1] 6000

array[2] 3000

array[3] 2500

When index equals 2 array[index] points here

To Use a tag in the subscript and

Select a recipe from an array of recipes Enter the number of the recipe in the tag

Load a specific machine setup from an array of possible setups

Enter the desired setup in the tag

Load parameters or states from an array one element at a time

A Perform the required action on the first element

B Use an ADD instruction to increment the tag value and point to the next element in the array

Log error codes

Perform several actions on an array element and then index to the next element

40 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 41: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

The following example loads a series of preset values into a timer one value (array element) at a time

EXAMPLE Step through an array

The timer_presets array stores a series of preset values for the timer in the next rung The north_tankstep tag points to which element of the array to use For example when north_tankstep equals 0 the instruction loads timer_presets[0] into the timer (60000 ms)

When north_tankstep_time is done the rung increments north_tankstep to the next number and that element of the timer_presets array loads into the timer

When north_tankstep exceeds the size of the array the rung resets the tag to start at the first element in the array (The array contains elements 0 to 3)

42358

MoveSource timer_presets[north_tankstep]

60000Dest north_tankstep_timePRE

60000

MOV

north_tankstep_timeDN

ENDN

Timer On DelayTimer north_tankstep_timePreset 60000Accum 0

TON

north_tankstep_timeDNAddSource A 1

Source B north_tankstep0

Dest north_tankstep0

ADD

EqualSource A north_tankstep

0Source B 4

EQUMoveSource 0

Dest north_tankstep0

MOV

Publication 1756-PM004B-EN-P - July 2008 41

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 42: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Expressions

You can also use an expression to specify the subscript of an arraybull An expression uses operators such as + or - to calculate a valuebull The controller computes the result of the expression and uses it as the

array subscript

You can use these operators to specify the subscript of an array

Format your expressions as follows

Operator Description

+ Add

- Subtractnegate

Multiply

Divide

ABS Absolute value

AND AND

FRD BCD to integer

MOD Modulo

NOT Complement

OR OR

SQR Square root

TOD Integer to BCD

TRN Truncate

XOR Exclusive OR

Operator Description

If the operator requires Use this format Examples

One value (tag or expression) operator(value) ABS(tag_a)

Two values (tags constants or expressions)

value_a operator value_b bull tag_b + 5

bull tag_c AND tag_d

bull (tag_e 2) MOD (tag_f tag_g)

42

Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 43: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

Array Subscript Out of Range

Every instruction generates a major fault if the array subscript is out of range Transitional instructions also generate a major fault even if the rung is false The controller checks the array subscript in these instructions even if the rung is false

For more information on handling major faults refer to the Major and Minor Faults Programming Manual publication 1756-PM014

Tag Documentation Since you can create four different types of tags the descriptions you document for each tag will vary You can create tags of these types

bull Base bull Aliasbull Produced bull Consumed

EXAMPLEe

IMPORTANT RSLogix 5000 programming software automatically assigns what are called pass-through descriptions of the tags you have created descriptions you may or may not want to use

Publication 1756-PM004B-EN-P - July 2008 43

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 44: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Base Tag Documentation

When you create a tag without specifying a tag type RSLogix 5000 will automatically assign your tag a default type of Base

Since base tags enable you to create your own internal data storage you can document in your tag description the nature of the data being stored

Alias Tag Documentation

By creating an Alias tag you can assign your own name to an existing tag structure tag member or bit In the description of your Alias tag you can describe the tag to which your alias tag refers

Produced Tag Documentation

A Produced tag refers to a tag that is consumed by another controller In the description of your Produced tag you can describe the remote controllers to which you want to make your Produced tag available through controller-to-controller messaging

Consumed Tag Documentation

A Consumed tag refers to a tag that is produced by another controller and whose data you want to use in your controller In the description of your Consumed tag you can describe the ways in which you want to use a produced tagrsquos data or the data-producing controller

Language Switching

With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language-specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current languages content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user

44 Publication 1756-PM004B-EN-P - July 2008

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 45: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Organizing Tags Chapter 2

Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the importexport utility to translate the documentation off-line and then import it back into the project Once you enable language switching in RSLogix 5000 software you can dynamically switch between languages as you use the software

Project documentation that supports multiple translations within a project includes

bull Component descriptions in tags routines programs user-defined data types and Add-On Instructions

bull Equipment phasesbull Trendsbull Controllersbull Alarm Messages (in ALARM_ANALOG and ALARM_DIGITAL

configuration)bull Tasksbull Property descriptions for modules in the Controller Organizerbull Rung comments SFC text boxes and FBD text boxes

For more information on enabling a project to support multiple translations of project documentation see the online help

Publication 1756-PM004B-EN-P - July 2008 45

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 46: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 2 Organizing Tags

Notes

46 Publication 1756-PM004B-EN-P - July 2008

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 47: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 3

Force IO

Introduction Use a force to override data that your logic either uses or produces For example use forces to

bull test and debug your logicbull check wiring to an output devicebull temporarily keep your process functioning when an input device has

failed

Use forces only as a temporary measure They are not intended to be a permanent part of your application

Precautions When you use forces take these precautions

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull Enabling SFC forces causes your machine or process to go to a different state or phase

bull Removing forces may still leave forces in the enabled statebull If forces are enabled and you install a force the new force immediately

takes effect

47Publication 1756-PM004B-EN-P - July 2008 47

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 48: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 3 Force IO

Enable Forces

For a force to take effect you enable forces You can only enable and disable forces at the controller level

bull You can enable IO forces and SFC forces separately or at the same time

bull You cannot enable or disable forces for a specific module tag collection or tag element

When forces are in effect (enabled) a appears next to the forced element

Disable or Remove a Force

To stop the effect of a force and let your project execute as programmed disable or remove the force

bull You can disable or remove IO and SFC forces at the same time or separately

bull Removing a force on an alias tag also removes the force on the base tag

IMPORTANT If you download a project that has forces enabled the programming software prompts you to enable or disable forces after the download completes

state to which the element is forced

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

48 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 49: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Force IO Chapter 3

Check Force Status Before you use a force determine the status of forces for the controller You can check force status

The Online toolbar shows the status of forces It shows the status of IO forces and SFC forces separately

To determine the status of Use any of the following

IO forces bull Online toolbar

bull FORCE LED

bull GSV instruction

SFC forces Online toolbar

Forces tab

This Means

Enabled bull If the project contains any forces of this type they are overriding your logic

bull If you add a force of this type the new force immediately takes effect

Disabled Forces of this type are inactive If the project contains any forces of this type they are not overriding your logic

Installed At least one force of this type exists in the project

None Installed No forces of this type exist in the project

Publication 1756-PM004B-EN-P - July 2008 49

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 50: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 3 Force IO

FORCE LED

If your controller has a FORCE LED use the LED to determine the status of any IO forces

GSV Instruction

This example shows how to use a GSV instruction to get the status of forces

where

Force_Status is a DINT tag

IMPORTANT The FORCE LED shows only the status of IO forces It does not show that status of SFC forces

If the FORCE LED is Then

Off bull No tags contain force values

bull IO forces are inactive (disabled)

Flashing bull At least one tag contains a force value

bull IO forces are inactive (disabled)

Solid bull IO forces are active (enabled)

bull Force values may or may not exist

IMPORTANT The ForceStatus attribute shows only the status of IO forces It does not show the status of SFC forces

To determine if Examine this bit For this value

Forces are installed 0 1

No forces are installed 0 0

Forces are enabled 1 1

Forces are disabled 1 0

50 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 51: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Force IO Chapter 3

When to Use an IO Force Use an IO force tobull override an input value from another controller (ie a consumed tag)bull override an input value from an input devicebull override your logic and specify an output value for another controller

(ie a produced tag)bull override your logic and specify the state of an output device

When you force an IO value

bull You can force all IO data except for configuration databull If the tag is an array or structure such as an IO tag force a BOOL

SINT INT DINT or REAL element or memberbull If the data value is a SINT INT or DINT you can force the entire

value or you can force individual bits within the value Individual bits can have a force status ofndash No forcendash Force onndash Force off

bull You can also force an alias to an IO structure member produced tag or consumed tagndash An alias tag shares the same data value as its base tag so forcing an

alias tag also forces the associated base tagndash Removing a force from an alias tag removes the force from the

associated base tag

Force an Input Value

Forcing an input or consumed tagbull overrides the value regardless of the value of the physical device or

produced tagbull does not affect the value received by other controllers monitoring that

input or produced tag

IMPORTANT Forcing increases logic execution time The more values you force the longer it takes to execute the logic

IMPORTANT IO forces are held by the controller and not by the programming workstation Forces remain even if the programming workstation is disconnected

Publication 1756-PM004B-EN-P - July 2008 51

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 52: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 3 Force IO

Force an Output Value

Forcing an output or produced tag overrides the logic for the physical device or other controller (s) Other controllers monitoring that output module in a listen-only capacity will also see the forced value

Add an IO Force To override an input value output value produced tag or consumed tag use an IO force

1 What is the state of the IO Forces indicator

2 Open the routine that contains the tag that you want to force

3 Right-click the tag and choose Monitorhellip If necessary expand the tag to show the value that you want to force (eg BOOL value of a DINT tag)

4 Install the force value

ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you use a force determine how the force will effect your machine or process and keep personnel away from the machine area

bull Enabling IO forces causes input output produced or consumed values to change

bull If forces are enabled and you install a force the new force immediately takes effect

If Then note

Off No IO forces currently exist

Flashing No IO forces are active But at least one force already exists in your project When you enable IO forces all existing IO forces will also take effect

Solid IO forces are enabled (active) When you install (add) a force it immediately takes effect

To force a Do this

BOOL value Right-click the tag and choose Force ON or Force OFF

Non-BOOL value In the Force Mask column for the tag type the value to which you want to force the tag Then press the Enter key

52 Publication 1756-PM004B-EN-P - July 2008

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 53: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Force IO Chapter 3

5 Are IO forces enabled (See step 1)

Remove or Disable Forces

Remove an Individual Force

1 Open the routine that contains the force that you want to remove

2 What is the language of the routine

If Then

No From the Logic menu choose IO Forcing gt Enable All IO Forces Then choose Yes to confirm

Yes Stop

ATTENTION Changes to forces can cause unexpected machine motion that could injure personnel Before you disable or remove forces determine how the change will effect your machine or process and keep personnel away from the machine area

If you want to And Then

Stop an individual force Leave other forces enabled and in effect Remove an Individual Force

Stop all IO forces but leave all SFC forces active

Leave the IO forces in the project Disable All IO Forces

Remove the IO forces from the project Remove All IO Forces

ATTENTION If you remove an individual force forces remain in the enabled state and any new force immediately takes effect

Before you remove a force determine how the change will effect your machine or process and keep personnel away from the machine area

If Then

SFC Go to step 4

Ladder logic Go to step 4

Function block Go to step 3

Structured text Go to step 3

Publication 1756-PM004B-EN-P - July 2008 53

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 54: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Chapter 3 Force IO

3 Right-click the tag that has the force and choose Monitorhellip If necessary expand the tag to show the value that is forced for example BOOL value of a DINT tag

4 Right-click the tag or element that has the force and choose Remove Force

Disable All IO Forces

From the Logic menu choose IO Forcing gt Disable All IO Forces Then choose Yes to confirm

Remove All IO Forces

From the Logic menu choose IO Forcing gt Remove All IO Forces Then choose Yes to confirm

54 Publication 1756-PM004B-EN-P - July 2008

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 55: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

How Are We DoingYour comments on our technical publications will help us serve you better in the futureThank you for taking the time to provide us feedback

You can complete this form and mail (or fax) it back to us or email us at

RADocumentCommentsrarockwellcom

Please complete the sections below Where applicable rank the feature (1=needs improvement 2=satisfactory and 3=outstanding)

Pub TitleType Logix5000 Controllers IO and Tag Data

Cat No 1756 ControlLogix 1768 CompactLogix 1769 CompactLogix 1789 SoftLogix 1794 FlexLogix PowerFlex 700S with DriveLogix

Pub No 1756-PM004B-EN-P Pub Date July 2008 Part No None

Overall Usefulness 1 2 3 How can we make this publication more useful for you

Completeness(all necessary information

is provided)

1 2 3 Can we add more information to help you

procedurestep illustration feature

example guideline other

explanation definition

Technical Accuracy(all provided information

is correct)

1 2 3 Can we be more accurate

text illustration

Clarity(all provided information is

easy to understand)

1 2 3 How can we make things clearer

Other Comments You can add additional comments on the back of this form

Your Name

Your TitleFunction Would you like us to contact you regarding your comments

LocationPhone ___No there is no need to contact me

___Yes please call me

___Yes please email me at _______________________

___Yes please contact me via _____________________

Return this form to Rockwell Automation Technical Communications 1 Allen-Bradley Dr Mayfield Hts OH 44124-9705

Fax 440-646-3525 Email RADocumentCommentsrarockwellcom

Publication CIG-CO521D-EN-P- July 2007

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 56: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Other Comments

PLEASE FOLD HERE

NO POSTAGE NECESSARY IF MAILED

IN THE UNITED STATES

BUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO 18235 CLEVELAND OH

POSTAGE WILL BE PAID BY THE ADDRESSEE

1 ALLEN-BRADLEY DRMAYFIELD HEIGHTS OH 44124-9705

PLEASE FASTEN HERE (DO NOT STAPLE)

PLEA

SE R

EMOV

E

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 57: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

Rockwell Automation Support

Rockwell Automation provides technical information on the Web to assist you in using its products At httpsupportrockwellautomationcom 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

For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit httpsupportrockwellautomationcom

Installation Assistance

If you experience a problem within the first 24 hours of installation please review the information thats contained in this manual You can also contact a special Customer Support number for initial help in getting your product up and running

New Product Satisfaction Return

Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures

United States 14406463434Monday ndash Friday 8am ndash 5pm EST

Outside United States

Please contact your local Rockwell Automation representative for any technical support issues

United States Contact your distributor You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor in order to complete the return process

Outside United States

Please contact your local Rockwell Automation representative for the return procedure

Publication 1756-PM004B-EN-P - July 2008 57Supersedes Publication 1756-PM004A-EN-P - July 2007 Copyright copy 2008 Rockwell Automation Inc All rights reserved Printed in the USA

  • 1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data Programming Manual
  • Table of Contents
  • Preface
    • Purpose of this Manual
    • How to Use this Manual
      • Communicating with IO
        • Introduction
        • Requested Packet Interval
        • Communication Format
        • Electronic Keying
        • Address IO Data
        • Buffering IO
          • Organizing Tags
            • Introduction
            • Guidelines for Tags
            • Create a Tag
            • Create an Array
            • Create a User-Defined Data Type
            • Describe a User-Defined Data Type
            • Address Tag Data
            • Assigning Alias Tags
            • Assigning an Indirect Address
            • Tag Documentation
              • Force IO
                • Introduction
                • Precautions
                • Check Force Status
                • When to Use an IO Force
                • Add an IO Force
                • Remove or Disable Forces
                  • Back Cover
                    • ltlt ASCII85EncodePages false AllowTransparency false AutoPositionEPSFiles false AutoRotatePages None Binding Left CalGrayProfile (Gray Gamma 22) CalRGBProfile (sRGB IEC61966-21) CalCMYKProfile (Euroscale Uncoated v2) sRGBProfile (sRGB IEC61966-21) CannotEmbedFontPolicy Error CompatibilityLevel 16 CompressObjects Tags CompressPages true ConvertImagesToIndexed true PassThroughJPEGImages true CreateJDFFile false CreateJobTicket true DefaultRenderingIntent Default DetectBlends true DetectCurves 00000 ColorConversionStrategy LeaveColorUnchanged DoThumbnails false EmbedAllFonts true EmbedOpenType false ParseICCProfilesInComments true EmbedJobOptions true DSCReportingLevel 0 EmitDSCWarnings false EndPage -1 ImageMemory 1048576 LockDistillerParams true MaxSubsetPct 99 Optimize true OPM 1 ParseDSCComments false ParseDSCCommentsForDocInfo false PreserveCopyPage true PreserveDICMYKValues true PreserveEPSInfo false PreserveFlatness true PreserveHalftoneInfo true PreserveOPIComments false PreserveOverprintSettings true StartPage 1 SubsetFonts false TransferFunctionInfo Apply UCRandBGInfo Preserve UsePrologue false ColorSettingsFile (None) AlwaysEmbed [ true Arial-BoldMT ArialMT CourierNewPS-ItalicMT CourierNewPSMT TimesNewRomanPS-BoldMT TimesNewRomanPS-ItalicMT TimesNewRomanPSMT ] NeverEmbed [ true HelveticaNeue-Condensed Times-Roman ] AntiAliasColorImages false CropColorImages true ColorImageMinResolution 150 ColorImageMinResolutionPolicy OK DownsampleColorImages true ColorImageDownsampleType Bicubic ColorImageResolution 150 ColorImageDepth 8 ColorImageMinDownsampleDepth 1 ColorImageDownsampleThreshold 100000 EncodeColorImages true ColorImageFilter FlateEncode AutoFilterColorImages false ColorImageAutoFilterStrategy JPEG ColorACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt ColorImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000ColorACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000ColorImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasGrayImages false CropGrayImages true GrayImageMinResolution 150 GrayImageMinResolutionPolicy OK DownsampleGrayImages true GrayImageDownsampleType Bicubic GrayImageResolution 150 GrayImageDepth 8 GrayImageMinDownsampleDepth 2 GrayImageDownsampleThreshold 100000 EncodeGrayImages true GrayImageFilter FlateEncode AutoFilterGrayImages false GrayImageAutoFilterStrategy JPEG GrayACSImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt GrayImageDict ltlt QFactor 015 HSamples [1 1 1 1] VSamples [1 1 1 1] gtgt JPEG2000GrayACSImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt JPEG2000GrayImageDict ltlt TileWidth 256 TileHeight 256 Quality 30 gtgt AntiAliasMonoImages false CropMonoImages true MonoImageMinResolution 900 MonoImageMinResolutionPolicy OK DownsampleMonoImages true MonoImageDownsampleType Bicubic MonoImageResolution 900 MonoImageDepth -1 MonoImageDownsampleThreshold 100000 EncodeMonoImages true MonoImageFilter CCITTFaxEncode MonoImageDict ltlt K -1 gtgt AllowPSXObjects true CheckCompliance [ None ] PDFX1aCheck false PDFX3Check false PDFXCompliantPDFOnly false PDFXNoTrimBoxError true PDFXTrimBoxToMediaBoxOffset [ 000000 000000 000000 000000 ] PDFXSetBleedBoxToMediaBox true PDFXBleedBoxToTrimBoxOffset [ 000000 000000 000000 000000 ] PDFXOutputIntentProfile (None) PDFXOutputConditionIdentifier () PDFXOutputCondition () PDFXRegistryName (httpwwwcolororg) PDFXTrapped False SyntheticBoldness 1000000 Description ltlt JPN ltFEFF3053306e8a2d5b9a306f300130d330b830cd30b9658766f8306e8868793a304a3088307353705237306b90693057305f00200050004400460020658766f830924f5c62103059308b3068304d306b4f7f75283057307e305930023053306e8a2d5b9a30674f5c62103057305f00200050004400460020658766f8306f0020004100630072006f0062006100740020304a30883073002000520065006100640065007200200035002e003000204ee5964d30678868793a3067304d307e30593002gt DEU ltFEFF00560065007200770065006e00640065006e0020005300690065002000640069006500730065002000450069006e007300740065006c006c0075006e00670065006e0020007a0075006d002000450072007300740065006c006c0065006e00200076006f006e0020005000440046002d0044006f006b0075006d0065006e00740065006e002c00200075006d002000650069006e00650020007a0075007600650072006c00e40073007300690067006500200041006e007a006500690067006500200075006e00640020004100750073006700610062006500200076006f006e00200047006500730063006800e40066007400730064006f006b0075006d0065006e00740065006e0020007a0075002000650072007a00690065006c0065006e002e00200044006900650020005000440046002d0044006f006b0075006d0065006e007400650020006b00f6006e006e0065006e0020006d006900740020004100630072006f0062006100740020006f0064006500720020006d00690074002000640065006d002000520065006100640065007200200035002e003000200075006e00640020006800f600680065007200200067006500f600660066006e00650074002000770065007200640065006e002egt FRA ltFEFF004f007000740069006f006e00730020007000650072006d0065007400740061006e007400200064006500200063007200e900650072002000640065007300200064006f00630075006d0065006e007400730020005000440046002000700072006f00660065007300730069006f006e006e0065006c007300200066006900610062006c0065007300200070006f007500720020006c0061002000760069007300750061006c00690073006100740069006f006e0020006500740020006c00270069006d007000720065007300730069006f006e002e00200049006c002000650073007400200070006f0073007300690062006c0065002000640027006f00750076007200690072002000630065007300200064006f00630075006d0065006e007400730020005000440046002000640061006e00730020004100630072006f0062006100740020006500740020005200650061006400650072002c002000760065007200730069006f006e002000200035002e00300020006f007500200075006c007400e9007200690065007500720065002egt PTB ltFEFF005500740069006c0069007a006500200065007300740061007300200063006f006e00660069006700750072006100e700f5006500730020007000610072006100200063007200690061007200200064006f00630075006d0065006e0074006f0073002000500044004600200063006f006d00200075006d0061002000760069007300750061006c0069007a006100e700e3006f0020006500200069006d0070007200650073007300e3006f00200061006400650071007500610064006100730020007000610072006100200064006f00630075006d0065006e0074006f007300200063006f006d0065007200630069006100690073002e0020004f007300200064006f00630075006d0065006e0074006f0073002000500044004600200070006f00640065006d0020007300650072002000610062006500720074006f007300200063006f006d0020006f0020004100630072006f006200610074002c002000520065006100640065007200200035002e00300020006500200070006f00730074006500720069006f0072002egt DAN ltFEFF004200720075006700200064006900730073006500200069006e0064007300740069006c006c0069006e006700650072002000740069006c0020006100740020006f0070007200650074007400650020005000440046002d0064006f006b0075006d0065006e007400650072002c0020006400650072002000650072002000650067006e006500640065002000740069006c0020007000e5006c006900640065006c006900670020007600690073006e0069006e00670020006f00670020007500640073006b007200690076006e0069006e006700200061006600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e007400650072006e00650020006b0061006e002000e50062006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f00670020006e0079006500720065002egt NLD ltFEFF004700650062007200750069006b002000640065007a006500200069006e007300740065006c006c0069006e00670065006e0020006f006d0020005000440046002d0064006f00630075006d0065006e00740065006e0020007400650020006d0061006b0065006e00200064006900650020006700650073006300680069006b00740020007a0069006a006e0020006f006d0020007a0061006b0065006c0069006a006b006500200064006f00630075006d0065006e00740065006e00200062006500740072006f0075007700620061006100720020007700650065007200200074006500200067006500760065006e00200065006e0020006100660020007400650020006400720075006b006b0065006e002e0020004400650020005000440046002d0064006f00630075006d0065006e00740065006e0020006b0075006e006e0065006e00200077006f007200640065006e002000670065006f00700065006e00640020006d006500740020004100630072006f00620061007400200065006e002000520065006100640065007200200035002e003000200065006e00200068006f006700650072002egt ESP ltFEFF0055007300650020006500730074006100730020006f007000630069006f006e006500730020007000610072006100200063007200650061007200200064006f00630075006d0065006e0074006f0073002000500044004600200071007500650020007000650072006d006900740061006e002000760069007300750061006c0069007a006100720020006500200069006d007000720069006d0069007200200063006f007200720065006300740061006d0065006e0074006500200064006f00630075006d0065006e0074006f007300200065006d00700072006500730061007200690061006c00650073002e0020004c006f007300200064006f00630075006d0065006e0074006f00730020005000440046002000730065002000700075006500640065006e00200061006200720069007200200063006f006e0020004100630072006f00620061007400200079002000520065006100640065007200200035002e003000200079002000760065007200730069006f006e0065007300200070006f00730074006500720069006f007200650073002egt SUO ltFEFF004e00e4006900640065006e002000610073006500740075007300740065006e0020006100760075006c006c006100200076006f006900740020006c0075006f006400610020006a0061002000740075006c006f00730074006100610020005000440046002d0061007300690061006b00690072006a006f006a0061002c0020006a006f006900640065006e0020006500730069006b0061007400730065006c00750020006e00e400790074007400e400e40020006c0075006f00740065007400740061007600610073007400690020006c006f00700070007500740075006c006f006b00730065006e002e0020005000440046002d0061007300690061006b00690072006a0061007400200076006f0069006400610061006e0020006100760061007400610020004100630072006f006200610074002d0020006a0061002000520065006100640065007200200035002e00300020002d006f0068006a0065006c006d0061006c006c0061002000740061006900200075007500640065006d006d0061006c006c0061002000760065007200730069006f006c006c0061002egt ITA ltFEFF00550073006100720065002000710075006500730074006500200069006d0070006f007300740061007a0069006f006e00690020007000650072002000630072006500610072006500200064006f00630075006d0065006e007400690020005000440046002000610064006100740074006900200070006500720020006c00610020007300740061006d00700061002000650020006c0061002000760069007300750061006c0069007a007a0061007a0069006f006e006500200064006900200064006f00630075006d0065006e0074006900200061007a00690065006e00640061006c0069002e0020004900200064006f00630075006d0065006e00740069002000500044004600200070006f00730073006f006e006f0020006500730073006500720065002000610070006500720074006900200063006f006e0020004100630072006f00620061007400200065002000520065006100640065007200200035002e003000200065002000760065007200730069006f006e006900200073007500630063006500730073006900760065002egt NOR ltFEFF004200720075006b00200064006900730073006500200069006e006e007300740069006c006c0069006e00670065006e0065002000740069006c002000e50020006f00700070007200650074007400650020005000440046002d0064006f006b0075006d0065006e00740065007200200073006f006d002000700061007300730065007200200066006f00720020007000e5006c006900740065006c006900670020007600690073006e0069006e00670020006f00670020007500740073006b007200690066007400200061007600200066006f0072007200650074006e0069006e006700730064006f006b0075006d0065006e007400650072002e0020005000440046002d0064006f006b0075006d0065006e00740065006e00650020006b0061006e002000e50070006e006500730020006d006500640020004100630072006f0062006100740020006f0067002000520065006100640065007200200035002e00300020006f0067002000730065006e006500720065002egt SVE ltFEFF0041006e007600e4006e00640020006400650020006800e4007200200069006e0073007400e4006c006c006e0069006e006700610072006e00610020006e00e40072002000640075002000760069006c006c00200073006b0061007000610020005000440046002d0064006f006b0075006d0065006e007400200073006f006d00200070006100730073006100720020006600f600720020007000e5006c00690074006c006900670020007600690073006e0069006e00670020006f006300680020007500740073006b0072006900660074002000610076002000610066006600e4007200730064006f006b0075006d0065006e0074002e0020005000440046002d0064006f006b0075006d0065006e00740065006e0020006b0061006e002000f600700070006e006100730020006d006500640020004100630072006f0062006100740020006f00630068002000520065006100640065007200200035002e003000200065006c006c00650072002000730065006e006100720065002egt ENU (Rockwell Job Options for Web-only PDF Files) gtgtgtgt setdistillerparamsltlt HWResolution [2540 2540] PageSize [792000 1224000]gtgt setpagedevice

                      IN RN pub type specs

                      dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
                      Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
                      Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
                      1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF
Page 58: Logix5000 Controllers I/O and Tag Data Programming · PDF fileCatalog Numbers 1756 ControlLogix, 1769 ... refer to the Logix 5000 Controllers ... In Logix5000 controllers, I/O values

IN RN pub type specs

dPrint ContentComp Split Shipment Indicator Flag WCSS Item Number Customer Item Number Item Description Producing Plant Job Number Replenishing Plant Plant Code Product Code PackagingOrdering UOM Qty per PackagingOrdering UOM List Price Per Ea Transfer Cost per Ea Sell Price per Ea Standard Cost (per Ea) Min Order Qty (in eaches) Multiple Order Qty (in Eaches Chargeback Price Item Reference 1 Item Reference 2 Revision Field Max Order Qty (in eaches) Sequentially Numbered Item Sequentially Numbered Item - Details Priced for Digital or Offset Content File Location Item Category Form (F) Book (B) Item Subtype Orientation Sides Printed CSSJLS Stock Componet Paper Size Width Paper Size Length No of Forms to a Sheet Page Qty Sheets Qty CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size of Tabs Binder Size Binder Color Binder Ring Type Binder Transparency (clearview or matt) Thermal Tape Color Trim Size Width Trim Size Length Stitching Location Drilling Size Drilling Location Glue Location Pad Fold Type Fold At Poly Box Comments Cross Reference Item Number 1
Publication Number Publication Title PackagingOrdering Unit Of Measure Qty per PackagingOrdering Unit of Measure Min Order Qty Multiple Order Qty Business Group Cost Center Revision Date Max Order Qty Black amp Whiteor Color Item CategoryForm (F) or Book (B) BindingStitching Orientation Sides Printed Printing Paper Size Width Printing Paper Size Length Number of Forms to a Sheet Page Count of Publication Number of Sheets Required to Print CSSJLS Production Stock Paper Stock Type Paper Stock Weight Paper Stock Color Stack Offset Tab Size Number of Tabs Needed Binder Size Binder Color Binder Ring Type Binder Transparency Thermal Tape Color Finished Trim Size Width Finished Trim Size Length Stitching Location Drill Hole Size Number and Location of Drill Holes Glue Location Number of Pages per Pad Fold Type Fold At Number of Pieces per Poly wrap Number of Pieces per Box Comments Part Number
Are these items being setup on dPrint (Yes or No) If yes Inv Mgmt to check Print Management flag on item setup The contentComp will be provided by the CSC once the spec files are loaded to the DAS (the files must be named with the WCSS item ) The contentcomp must be hardcoded to the Item message Field in WCSS Must be a 10 Digit number that starts with an 8 Required Setting this to yes will allow warehouse product to ship out before the JIT item is completed Setting this to no will hold all warehoused items until the printing of this item is complete Please indicate Y or N Note Each item with a Y will always ship separately even if produced at the same time as like items Optional 15 Characters Max If the WCSS number provided already exists in the system then Inventory Management will assign a random WCSS number 30 characters maximum Cannot use quote symbol that is---- Required Which plantPrint Center will produce this item Required To be provided from the producing plant for JIT su Required What is the plant code of the plant that has owning rights to the dPrint files If produced at multiple plants there can be only one owning plant Required What is the plant code of the facility that will produce this item (see Plant and Whse Codes tab below) Required Enter one of the applicable product Method of packaging for publication shipmentClick here for explanation of each value in the pull-down Required This field auto-calculates (transfer cost divided by 5) Used to determine Standard Cost on WCSS (which is 50 of the list price for these product codes) Required Transfer Cost per orderingpackaging unit of measure Required Price that will be billed to customer upon order If Price Breaks enter Price Breaks and note them on separate spreadsheet Required Replacement Cost per Packagingordering UOM Click here for an explanation of this field otherwise type NA Optional Used to assist customer with internal Chargebacks to end users (per packagingordering UOM) IMPORTANT This information must match the DocMan recordClick here for explanation of each value in the pull-down menu IMPORTANT This information must match the DocMan record IMPORTANT This information must match the DocMan recordDate on the publication Click here for explanation of each value in the pull-down menu Indicate Yes or No Enter Yes if the item is a sequentially numbered item Describe the details behind the sequentially numbered item such as- Record Sequence Shipped whse will record the sequence numbers that shipped- Ship in Sequence Record required to ship products in particular sequence and the whse records the numbers Required If PDF is to be retained in the DAS enter DAS in this field if item is part of eCreate or Custom Docs put CUSTOM in this field Typically a BookClick here for explanation of each value in the pull-down menu Click here for explanation of each value in the pull-down Click here for explanation of each value in the pull-down menu Optional Use when finished product stored in the warehouse is to be inserted into the construction of a JIT book IMPORTANT Not Trim Size widthThis is the width of the paper on which the publication is printed IMPORTANT Not Trim Size lengthThis is the length of the paper on which the publication is printed Click here for explanation of how to determine the information required Click here for explanation of how to determine the information required Optional Use when product is being printed on Shell Stock Provide warehoused WCSS Item number of product to be used in the production of JIT item Click here for explanation of how to determine the information required The pull-down menu lists the most common choicesClick here for a full list of the available choicesIf you use a choice not in the pull-down list type the value in the cell below the pull-down menu If item uses tabs otherwise NA If needed otherwise type NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If item used in a binder otherwise NA If publication is thermal tape bound otherwise NA Click here to see the available finished trim sizesThe sizes are listed - width x length Click here to see the available finished trim sizesThe sizes are listed - width x length If publication is Book [B] and stapled otherwise NA Click here for a list of possible drill locations If publication uses padding otherwise NA If publication is a notepad or message pad otherwise NA Click here for explanation of each value in the pull-down menu Folding of final document optional The location(s) of the fold Click here for explanation of each value in the pull-down menu Use this column to list- Cover Stock- Text Stock- Cover Ink- Text Ink- Spine if necessaryAlso use to indicate any other production or finishing requirements not provided in previous columnsClick here for an explanation of the available Cover Stock Cover Ink and Text Ink values List only if pubication is used in manufacturing otherwise leave blank
1756-PM004B-EN-P Logix5000 Controllers IO and Tag Data EA 1 1 Marketing Commercial CMKMAY IA ControlVisNet - 19021 07152008 5 Black amp White B THERMAL PORTRAIT HEAD2HEAD RRD must provide this information RRD must provide this information 2 58 29 PLAIN 20 White RRD must provide this information NA NA NA NA NA NA BLACK (preferred) 85 11 SIDE NA NA NA NA HALF NA 25 RRD must provide this information Cover Stock = 90 White IndexText Stock = 20 White Opaque BondCover Ink = BlackText Ink = BlackSpine = If included as last page of PDF