Applies To:
  • CitectSCADA 5.xx 6.xx, 7.xx

Summary:
DIGITAL aliases cause sub-optimal performance with ABCLX  

Solution:
The Allen Bradley protocol (CLX) implements bit aliasing in such a way that each aliased bit from a controller tag consumes an entire byte. For Example, to request all 8 aliased bits from a single byte will generate 8 bytes of data that is polled across the network even though the same information could be requested in a single byte. This would be done by using the ABCLX bit syntax

For Example:

Below are eight digital aliases created in the PLC for a tag with address "Tag1". Each of these digital tag aliases will consume 1 byte each as described above.

PLC Tag Alias Name 

Address

Type

Tag1_Bit0

Tag1/0

DIGITAL

Tag1_Bit1

Tag1/1

DIGITAL

Tag1_Bit2

Tag1/2

DIGITAL

Tag1_Bit3

Tag1/3

DIGITAL

Tag1_Bit4

Tag1/4

DIGITAL

Tag1_Bit5

Tag1/5

DIGITAL

Tag1_Bit6

Tag1/6

DIGITAL

Tag1_Bit7

Tag1/7

DIGITAL

To use these aliases on citect end, you will need to create tags with addresses as shown below

Citect Tag Name 

  TagAddress

Type

Digital0

  Tag1_Bit0

DIGITAL

Digital1

  Tag1_Bit1

DIGITAL

Digital2

  Tag1_Bit2

DIGITAL

Digital3

  Tag1_Bit3

DIGITAL

Digital4

  Tag1_Bit4

DIGITAL

Digital5

  Tag1_Bit5

DIGITAL

Digital6

  Tag1_Bit6

DIGITAL

Digital7

  Tag1_Bit7

DIGITAL

Instead of the above approach, Bit addressing can be used, which would not require you to create a digital alias on the PLC but the same digital bits can be addressed in citect using the follwoing addressing syntax. So for a tag addrees "Tag1" in PLC end, digital tags mapped to individual bits would be defined as below 

Citect Tag Name

  Address

Type

Tag1

  Tag1

INT

Digtal0 

  Tag1/0

DIGITAL

Digital1

  Tag1/1

DIGITAL

Digital2

  Tag1/2

DIGITAL

Digital3

  Tag1/3

DIGITAL

Digital4

  Tag1/4

DIGITAL

Digital5

  Tag1/5

DIGITAL

Digital6

  Tag1/6

DIGITAL

Digital7

  Tag1/7

DIGITAL

This would acquire all of the information in a single byte as ABCLX recognises multiple requests for data and makes requests in the most efficient way possible - in this case it requests the single byte and Citect extracts all eight bits from this single byte.

This means that you can gain 8 times the efficiency purely by using the ABCLX bit access syntax over the aliasing of the bits in the PLC.

NOTE:

The above mentioned approach suggests using ABCLX bit access for optimal system performance but final evaluation of PLC logic to capture any changes to the control logic should be carried out by end users themselves.

 

Keywords:
 

Attachments