100% found this document useful (1 vote)
490 views40 pages

Micrologix Contrologix ALE111 Comm Example Rev1

Uploaded by

mahabalsitharam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
490 views40 pages

Micrologix Contrologix ALE111 Comm Example Rev1

Uploaded by

mahabalsitharam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Document: Communication of ALE111 – Ethernet/IP protocol

Communication driver, with Allen-Bradley MicroLogix


PLC through Control Logix PLC.

YOKOGAWA ELECTRIC CORP.

YOKOGAWA

PREPARED BY: DHAGASH N. PATHAK


Doc No: DP9291-T50-001

YOKOGAWA Page 1 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
REV. List:

Checked Approved
Rev Comment Date Prepared By
By By
Dhagash
0 First Edition 03/01/09 John K
Pathak
Dhagash
1 Comments By John K 03/09/09 John K
Pathak

YOKOGAWA Page 2 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
Index
1 Introduction................................................................................................... 4
1.1 Scope....................................................................................................................... 4
1.2 Reference Documents: ............................................................................................. 4
2 General Specifications for LFS9291.............................................................. 5
2.1 Communication Protocol between ALE111 and Control Logix ................................ 5
2.2 Communication Capacity for LFS9291 .................................................................... 5
2.3 Data Types............................................................................................................... 5
3 System Architecture ...................................................................................... 7
3.1 Location of EtherNet/IP Communication Module of ControlLogix .......................... 7
4 Configuration in FCS FOR ALE111 ............................................................. 8
5 Data Transfer ................................................................................................ 9
5.1 Between MicroLogix and Control Logix .................................................................. 9
5.2 Between ALE111 and Control Logix ..................................................................... 11
6 Sample Data Exchanges .............................................................................. 11
6.1 Type-1 Integer Read: MicroLogix Integer data Read by Control Logix as an Integer
Array. Control Logix Integer Array Read by ALE111. ...................................................... 11
6.1.1 Configuration in MicroLogix.......................................................................... 11
6.1.2 Configuration in Control Logix ...................................................................... 12
6.1.3 Configuration in ALE111............................................................................... 13
6.2 Type-2 Integer Write: ALE111 writes to Control Logix in an Integer Array. Control
Logix Integer Array writes to MicroLogix Integer. ............................................................ 18
6.2.1 Configuration in ALE111............................................................................... 18
6.2.2 Configuration in Control Logix ...................................................................... 21
6.2.3 Configuration in MicroLogix.......................................................................... 22
6.3 Type-3 Bits Read: MicroLogix Binary data Read by Control Logix as an Integer.
Control Logix Integer data Read by ALE111 as Bits.......................................................... 23
6.3.1 Configuration in MicroLogix.......................................................................... 23
6.3.2 Configuration in Control Logix ...................................................................... 24
6.3.3 Configuration in ALE111............................................................................... 24
6.4 Type-4 Bits Write: Generate Bits data in ALE, Convert it to Integer and write to
Control Logix as an Integer Array. Cotrologix writes to MircroLogix in Binary file. ......... 28
6.4.1 Configuration in ALE111............................................................................... 28
6.4.2 Configuration in Control Logix ...................................................................... 31
6.4.3 Configuration in MicroLogix.......................................................................... 31
6.5 Type-5 Long Word(32 bit) Read: Control Logix reads the Long data of MicroLogix
in Double Integer. ALE111 read double integer of Control Logix. ..................................... 32
6.5.1 Configuration in MicroLogix: ........................................................................ 32
6.5.2 Configuration in Control Logix: ..................................................................... 33
6.5.3 Configuration in ALE111:.............................................................................. 33
6.6 Type-6 Long Word Write: ALE111 writes in double integer of Control Logix.
Control Logix writes in Long data file of MicroLogix. ...................................................... 37
6.6.1 Configuration in ALE111:.............................................................................. 37
6.6.2 Configuration in Control Logix: ..................................................................... 40
6.6.3 Configuration in MicroLogix: ........................................................................ 40

YOKOGAWA Page 3 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
1 Introduction
1.1 Scope

This document describes the configuration details for communication of the


Allen Bradley MicroLogix PLC with Yokogawa ALE111 Ethernet module.
Direct Communication between MicroLogix and ALE111 has not been
configured yet; therefore Control Logix PLC is used as a data concentrator
between ALE111 and MicroLogix PLC.
This document explains the configuration details of the ALE111, with some
sample configuration of Control Logix and MicroLogix.

LFS9291
Comm.
Package Message

LFS9292
CONTROL MICRO
ALE111 LOGIX LOGIX

LFS9291 Package Program to R/W


for R/W Control MicroLogix data
Logix Tags file.

1.2 Reference Documents:

[1] This document describes only the sample examples. Please refer to
Yokogawa Instruction manual “HZ9291-T50-001” manual (LFS9291),
which gives complete details of communication between ALE111 and
Control Logix.
[2] Communicating with RA Products Using Ethernet/IP Explicit Messaging
Release 1.1
[3] Rockwell Publication 1756-RM005A-EN-E-March-2000
[4] Yokogawa CS 3000/CentumVP Reference Manual.

YOKOGAWA Page 4 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
2 General Specifications for LFS9291

2.1 Communication Protocol between ALE111 and Control Logix

Item Specification
Communication protocol TCP/IP CIP EtherNet/IP protocol
Data code Binary
Type of messaging Explicit messaging

2.2 Communication Capacity for LFS9291

Item Specification
Maximum communication nodes of PLC 30 per ALE111 module
Maximum size of data access 1000 words (1 word = 16 bits) per ALE111
module
4000 words per FCS
Maximum communication definitions 208 definitions per ALE111 module

2.3 Data Types

You are required to know the proper data types in all three systems i.e. DCS,
MicroLogix and Control Logix. Following are some samples of the valid data
types.

MicroLogix:

Tag Address type Addressing


Address Description
B3:0 Binary Address file
N7:0 Integer Address file
L10:0 Long(Double Integer) Address file

YOKOGAWA Page 5 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
Figure above shows the sample of the standard MicroLogix data file structure.

Control Logix: User can assign name of the tags as per their project standard.

User defined type Tag Addressing


Tag Address Description
bitbuffer 32 Boolean Array
Dcsread1 Double Integer
Dcsread10 Integer
Bitbuffer3 10 Integer Array

YOKOGAWA Page 6 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
3 System Architecture

Micro logic: Model – MicroLogix 1500 LRP 1764 BWA


Control Logic: Processor – 1756-L55
Ethernet Module – 1756-ENBT/A
ALE111: Yokogawa Ethernet communication module.
LFS9291 package require.
PC : Installed with RSLogix-500 and RSLogix-5000

3.1 Location of EtherNet/IP Communication Module of ControlLogix

When this communication driver (LFS9291) is used for communicating with


ControlLogix, an EtherNet/Ip communication module of ControlLogix must be
installed in the CPU chassis of the ControlLogix. This driver cannot
communicate with the Ethernet/IP communication module of ControlLogix when
it is installed in the remote I/O chassis of the ControlLogix.

YOKOGAWA Page 7 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
4 Configuration in FCS FOR ALE111

The following items shall be set on the Set Details tab of the Create New IOM
dialog box or the Properties sheet called from the System View.

This is a common setting required for ALE111.


Other settings are Address Translation field, configuration in communication IO
builder and control drawings. These are application specific configuration and
they will change depending on the data and types of data transferring between
ALE111 and the Control Logix.
In this document, we will see configuration of Address Translation field,
configuration in communication IO builder and control drawings.

YOKOGAWA Page 8 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
5 Data Transfer

5.1 Between MicroLogix and Control Logix

For data transfer between MicroLogix to Control Logix, coding is required either
in the Control Logix or in the MicroLogix.
Remember that this data exchange is possible only in words level and not in bit
level. We have to be aware of the data types and register addresses of both
MicroLogix and Control Logix.

Fig. above shows the instruction used to data transfer between MicroLogix to
Control Logix.

Figure below shows the configuration for this instruction.

YOKOGAWA Page 9 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
In this tab, require configuration details for the message type. Select the
appropriate message type in this tab depending on device used for
communication.
Assign the data address of Control Logix and MicroLogix and assign the length
of the data to be read or write.

Here we have to assign the communication path.

Last tab gives the tag information.

YOKOGAWA Page 10 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
5.2 Between ALE111 and Control Logix

Refer to LFS9291 manual for more details of this communication, data


type requirement and configuration requirements.
This document will give some examples of configuration of sample
data which are exchanged between ALE111 and Control Logix.

There are many data type combinations possible between the


MicroLogix, Control Logix and ALE111. Following are the examples
of some possible data type combinations.

6 Sample Data Exchanges

Before starting the communication test, be sure that you have established
communication between your PC, MicroLogix and Control Logix through RS-
Linx.

6.1 Type-1 Integer Read: MicroLogix Integer data Read by Control


Logix as an Integer Array. Control Logix Integer Array Read by
ALE111.

6.1.1 Configuration in MicroLogix

Configure the integer register in MicroLogix from which the data are require to
read.
Set some values in registers and decide the length of data to be read.

YOKOGAWA Page 11 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
In this example, integer data file is N10 and data from N10:0 to N10:9 are
required to read. Length of data is 10.
6.1.2 Configuration in Control Logix

Create Integer array data file in Control Logix, where data from MicroLogix will
come.

YOKOGAWA Page 12 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
In this example, Integer array READ[0] to READ[19] is created. MicroLogix
data from N10:0 to N10:9 will be read by Control Logix in register READ[0] to
READ[9].

6.1.3 Configuration in ALE111

Data READ[0] to READ[9] from Control Logix are required to read by ALE111.
To read or write any data from Control Logix, tag names of that data are required
to assign in “Address Translation” window in ALE111.

Address translation window is as shown above.


Assign the tag name of Control Logix data with ALIAS name, data type and
length of data. Format for assigning address in address translation window is
explained in LFS9291 manual in detail. Address Translation window is require to
assign in IOM. Assign a ALE111 module under any of the node. Address
Translation window will be in the “Set Details” tab of the property of ALE111
YOKOGAWA Page 13 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
In this example, address translation window having ALIAS007. It can be
assigned as ALIAS001 or 2 or any number. These ALIAS names are required to
assign in communication IO builder. The ALIAS name you are assigning in
Address Translation window, should be used in communication IO %WW
builder. ALIAS007 is corresponds to the tag READ[0], its data type is I (integer)
and length of the data is 10 (Integer Array).

Configuration in communication IO builder:

YOKOGAWA Page 14 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
ALIAS name of the address translation window is assigned in Device & Address
tab of the communication IO builder.
Make sure that all the data read from Control Logix are read as an Input (32-Bit
Floating) in communication builder.
Create control drawing for these tags.

YOKOGAWA Page 15 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
While configuring “Address Translation” field and communication IO builder,
monitor the status of the ALE111. If any mistake is made in assignment, then
ALE111 card will fail.
Status of the ALE111 module should be healthy (Green) after you configure
“Address Translation” field and communication IO builder.

If the status of the card is healthy after configuring “Address Translation” field
and communication IO builder, you can read the data of Control Logix.
Call the faceplate of each tag and monitor the data in DCS.
Change some data in mircrologix, corresponding data will change in DCS.

YOKOGAWA Page 16 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
YOKOGAWA Page 17 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.2 Type-2 Integer Write: ALE111 writes to Control Logix in an
Integer Array. Control Logix Integer Array writes to MicroLogix
Integer.

6.2.1 Configuration in ALE111

Data WRITE[0] to WRITE[9] in Control Logix are required to write by ALE111.


To read or write any data from Control Logix, tag names of that data are required
to assign in “Address Translation” window in ALE111.

Assign the tag name of Control Logix data with ALIAS name, data type and
length of data. Format for assigning address in address translation window is

YOKOGAWA Page 18 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
explained in LFS9291 manual in detail. Here, ALIAS008 is corresponds to
Control Logix tag WRITE[0] and length of the data to be write is 10. “I” stand
for Integer data types of Control Logix.

Configure the communication IO builder as shown below.

Data type should be Output (32-Bit Floating), for all Integers, Double, Real Tags
except bit write.
Configure the control drawing as shown below.
Require MLD function block in control drawing for Integer data entry from DCS.

YOKOGAWA Page 19 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
Download the control drawing, call the faceplate of tags and enter values for all
10 tags. In this example, WRITE0, WRITE1, WRITE5, WRITE9 having value
22, 32, 42 and 52.

YOKOGAWA Page 20 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.2.2 Configuration in Control Logix

Create Integer array data file in Control Logix, from where the data will be
written in MicroLogix.

In this example, Integer array WRITE[0] to WRITE[19] is created. Data in


WRITE[0] to WRITE[9] will be written to the MicroLogix in data N7:0 to N7:9.
Values 22, 32, 42 and 52 are written from ALE111 to Control Logix in
WRITE[0], WRITE[1], WRITE[5] and WRITE[9] .

YOKOGAWA Page 21 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.2.3 Configuration in MicroLogix

Configure the integer register in MicroLogix to which the data will be written to
from the Control Logix.
Decide the length of data.

In this example, data from Control Logix will be written to MicroLogix in integer
data file N7:0 to N7:9. Length of data is 10.
Values 22, 32, 42 and 52 are written from Control Logix WRITE[0], WRITE[1],
WRITE[5] and WRITE[9] to MicroLogix in N7:0, N7:1, N7:5 and N7:9

YOKOGAWA Page 22 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.3 Type-3 Bits Read: MicroLogix Binary data Read by Control Logix
as an Integer. Control Logix Integer data Read by ALE111 as
Bits.

6.3.1 Configuration in MicroLogix

Configure the Binary register in MicroLogix from which the data are require to
read.
Make some bits ON and decide the length of data to be read

Binary file B3 contains 16 bits i.e. 0 to 15. In this example, binary data file is B3
and bits 0, 4, 9 and 14 are turned ON. Register B3 is require to read from
MicroLogix so length of data is 1 word (16 bits) (B3:0).

YOKOGAWA Page 23 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.3.2 Configuration in Control Logix

Create Integer data file (Which contains 16 bits in one register) in which the
MicroLogix data will come.

In this example, integer register “bitbuffer2” is created which is with 16 bits i.e.
bitbuffer2.0 to bitbuffer2.15. Status of MicroLogix bits B3:0/0, B3:0/4, B3:0/9
and B3:0/14 will be read in Control Logix bitbuffer2.0, bitbuffer2.4, bitbuffer2.9
and bitbuffer2.14.
6.3.3 Configuration in ALE111

Data from the Control Logix - bitbuffer2.0, bitbuffer2.4, bitbuffer2.9 and


bitbuffer2.14 are required to read by ALE111.
To read or write any data from Control Logix, tag names of that data are required
to be assigned in the “Address Translation” window of the ALE111.

YOKOGAWA Page 24 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
In this example address of the bitbuffer2 is require to assign in address translation
window. Bitbuffer2 is a integer file, but we can read the status of all 16 bits of
bitbuffer2 by assigning data type as B in address translation window. Here,
ALIAS009 is corresponds to tag bitbuffer2 of Control Logix and it will read 16
bits of that tag.

Configure the communication IO builder as shown below.

YOKOGAWA Page 25 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
In this example we are reading a file from Control Logix which is an integer file
i.e. bitbuffer2, we have to assign data type as Input (32-Bit Floating) in
communication builder.

Configure the WB IO builder as shown below.

YOKOGAWA Page 26 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
Download the communication and WB builder and call all the faceplate to check
the status of all bits. Here, you can see that Bit 1, Bit 5, Bit 10 and Bit 15 are
turned ON which is the status of bitbuffer2.0, bitbuffer2.4, bitbuffer2.9 and
bitbuffer2.14 and hence, it is the status of bits B3:0/0, B3:0/4, B3:0/9 and
B3:0/14

YOKOGAWA Page 27 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.4 Type-4 Bits Write: Generate Bits data in ALE, Convert it to
Integer and write to Control Logix as an Integer Array.
Cotrologix writes to MircroLogix in Binary file.

When ALE111 is communicating only with Control Logix, bit writes from ALE
to Control Logix is possible, in which data type in Control Logix side should be
Boolean or Boolean array. But this Boolean data can not transferred to the
MicroLogix as it should be in word format. That’s why in ALE side we have to
create bits which are required to transferred to MicroLogix and then these bits are
converted in to integer in ALE, and this word file are transferred to the Control
Logix. This word file then transferred to the MicroLogix in binary file.
6.4.1 Configuration in ALE111

To read or write any data from Control Logix, tag names of the PLC data are
required to be assigned in “Address Translation” window in ALE111.

YOKOGAWA Page 28 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
In this example we have created a 10 bits i.e. B1 to B9 in switch builder. This are
the bits which are required to transfer in MicroLogix. Here bit 2, 4, 7 and 9 are
turned ON.

YOKOGAWA Page 29 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
We need to convert these bits in to integer file as shown in below control
drawing.

Now this integer file is required to be assign in the communication IO builder and
this will corresponds to integer file of Control Logix bitbuffer3[0] to
bitbuffer3[9].

YOKOGAWA Page 30 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.4.2 Configuration in Control Logix

Check the Integer file data of bitbuffer3[1], bitbuffer3[3], bitbuffer3[6] and


bitbuffer3[8] which correspond to status of bits B2, B4, B7 and B9 respectively.

6.4.3 Configuration in MicroLogix

Control Logix integer file bitbuffer3 writes to binary file B12 of MicroLogix.
Check the bit status of B12 file which corresponds to status of bits B2, B4, B7
and B9 respectively.

YOKOGAWA Page 31 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.5 Type-5 Long Word(32 bit) Read: Control Logix reads the Long
data of MicroLogix in Double Integer. ALE111 read double
integer of Control Logix.

6.5.1 Configuration in MicroLogix:

Configure the Long register in MicroLogix from which the data are require to
read.
Set some values in registers and decide the length of data to be read.

In this example, Long register is L9 and data from L9:5 is require to read. So
length of the data is 1.

YOKOGAWA Page 32 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.5.2 Configuration in Control Logix:

Create Double Integer data file in Control Logix, where data from MicroLogix
will come.

In this example, value of L9:5 (Long file value), is read by Control Logix in
register dcsread2.

6.5.3 Configuration in ALE111:

Data from dcsread2 register of Control Logix is require to read by ALE111.


To read or write any data from Control Logix, tag names of that data are required
to assign in “Address Translation” window in ALE111.

YOKOGAWA Page 33 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
In this given example, ALIAS001 is corresponds to tag dcsread2 of Control
Logix and data type of that tag is Double (D).

Configure this ALIAS001 in communication IO builder as shown below.


As this is read from Control Logix, data type in communication IO builder should
be Input 32 Bit Floating.

CS-3K tag is Test 1 and configure it in control drawing as shown below.

YOKOGAWA Page 34 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
Download above configuration in CS-3K and monitor the data TEST1. Change
the value of register L9:9, corresponding change will occur in TEST1.
Figure below shows the Test1 faceplate.

YOKOGAWA Page 35 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
YOKOGAWA Page 36 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.6 Type-6 Long Word Write: ALE111 writes in double integer of
Control Logix. Control Logix writes in Long data file of
MicroLogix.

6.6.1 Configuration in ALE111:

ALE111 writes the double integer value in double integer register test15 of
Control Logix.
To read or write any data from Control Logix, tag names of that data are required
to assign in “Address Translation” window in ALE111.

In this example, ALIAS013 is assigned to tag tes15 of Control Logix and data
type of test15 is Double Integer (D).

YOKOGAWA Page 37 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
Configure the communication IO builder as shown below. Data types in this
builder should be Output 32 Bit floating.

Configure a CS-3K tag in control drawing as shown below. Here tag LONG of
CS-3K, will write in Control Logix tag test15.

Download this configuration, call the faceplate of LONG and set some value in it
i.e. 28, as shown in below face plate.

YOKOGAWA Page 38 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
YOKOGAWA Page 39 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1
6.6.2 Configuration in Control Logix:

Create a Double Integer tag name in Control Logix.

In this example, value from “LONG” i.e 28 will come in to “test15” double
integer file.
Figure above shows the test15 register with value.

6.6.3 Configuration in MicroLogix:

Value of “test15” register will come to long file L9:6, as shown below.

YOKOGAWA Page 40 of 40
MicroLogix-Control Logix-ALE111 Comm Example.doc Rev. 1

You might also like