Allen-Bradley Control/CompactLogix Tags

The ControlLogix, CompactLogix, and FlexLogic PLCs are tag-based PLC architectures and do not have PLC addressing like the SLC and MicroLogix series.

There are five main types of tags:

Enter Tags

You can enter tags in the C-more Programming Software one of two ways:

Manually Add a Tag

You can manually add any type of tag to C-more from the Database tab.

  1. Select Tag Name Database.

  • The Tag-Name Database window opens.

  1. Click the Add button on the lower left portion of the window.

  • The Tag Name-Add window opens.

Here, you can enter required tag name parameter field information.

  • Device Name: select the corresponding C-moreconnected Control\CompactLogix PLC device from Protocol Manager

  • Tag Name: use a tag name to easily identify the tag

  • Tag Data Type: select the data type (Discrete, BCD int 16, ASCII String, etc.) that matches the PLC data type

  • Characters: this field is only active with ASCII String data type to identify the Number of Characters for the ASCII String

  • Retentive: this box is only active when you enter Internal Tags (Device Name= <INTERNAL>)

  • Tick the box to set the tag as Retentive

  • If the C-more panel loses power, SDRAM stores the tag value, and when power is restored, the tag retains that value

Data Types

These memory type values are available for the Allen-Bradley Tag-Based Control/CompactLogix PLC:

  • DINT: 32-bit 2 compliment integer: 2,147,483,648 to 2,147,483,647

  • INT: 16-bit 2 compliment integer: 32,768 to 32,767

  • SINT: 8-bit 2 compliment integer: 128 to 127

  • STRING: ASCII string value

  • CONTROL: complex Instructions

  • COUNTER: a counter

  • MESSAGE: memory for communication between remote devices

  • PID: memory for PID control functions

  • TIMER: a timer

  • BOOL: a Boolean TRUE or FALSE value

  • REAL: 32-bit floating point value +/-1.1754944e-38 to +/-3.4028237e38

Memory Type and Address

Memory Type and Address are listed together in the Tag Name Database window PLC Address column.

Below, the PLC Address is "INT THIS_IS_AN_INT_TAG" where "INT" is the memory type and "THIS_IS_AN_INT_TAG" is the actual address.

Program Scope Tags

While Controller Scope tags are globally accessible, Program Scope tags are only accessible from specific programs. You can use Program Scope tags with C-more or other HMI, but they require additional syntax before the tag name.

Enter Program Scope tags as follows:

Program:aaaa.bbbb

Where "aaaa" is the PLC program name, and the tag name is "bbbb."

The PLC Program Name is "Main Program" and the PLC Tag Name is "DINT_PROGRAM_TAG" so the PLC Address you enter in C-more is:

PROGRAM:MAIN PROGRAM.DINT_PROGRAM_TAG

Related Topics Link IconRelated Topics

CM128