CLX to SLC messaging

HallerGK

Member
Join Date
Jan 2009
Location
Indiana
Posts
26
I've been researching this for a while, but I can't seem to find a solution.
The Setup:
I've got a ControlLogix and an SLC-5/03 on a network. There is data on that SLC I need to read into the controlLogix. However,the SLC controls vital equipment, and I cannot upload/download from/to the SLC, so Producer/consumer is out of the question, and so is the the possibility of a write from the SLC to the CLX. The only option I see left is to use a message instruction to perform an SLC Typed Read.

One problem, the date I need is not in the N7 or B3 files. It's in the output file.
O0:5.0
O0:6.0
O0:7.0
but the CLX will not allow me to use the Output file as the source.
Are there any solutions?
 
If the data files are already created in the SLC5/03 and not being used. Then you can move the output data to the N7 or B3 or any others that are unused files by online editing of the SLC no download necessary.
 
1# we didn't install the SLC, so we don't have the origional applications. What was given to us won't work.
2# We cannot connect to this thing for any editing whatsoever. This SLC is so old it may never work again.
We can only communicate with it via another PLC
but thanks nonetheless.
 
Last edited:
Interposing Relays

How far are these processors away from each other?

If you are only looking to collect output data, is it possible to put an interposing relay on the outputs (or take contacts from the ouputs relay if there are some available), and then take the inputs back to the CLX PLC when they are engaged?

This way you don't have to worry about getting into the PLC, if I understand your question properly.
 
they are about 75 yards away, in different buildings, and the wires run underground. The connection is ethernet/ip.

All this stuff was already installed and cannot be changed. The question is, how can I set up a message instruction in the CLX to read the output file of this SLC?
 
Is this the same application described in this thread from yesterday ?

http://plctalk.net/qanda/showthread.php?t=44910

The PCCC Object method through the 1761-NET-ENI should work with Output data files the same as it works with Timers.

I would recommend doing a careful bench test if you can. I'd be happy to correspond with the steps I took to determine the correct PCCC syntax. Send me a PM or e-mail.
 
My 2 cents

Attached you will find how i read data from a slc 5/05 to a compactlogix (CLX).

First figure is the MSG cmd that i use to read data.

Second and third figure are MSG config.

N22:40 is the data I read from the SLC
Control_Flujo receives data from N22:40
LocalENB my ethetnet interface (local)
192.168.105.53 slc ip address

msg1.JPG msg2.JPG msg3.JPG
 
The 0xA2 function works for reading an Output file directly. The file types are described in the DF1 Protocol manual.

I sent an SLC-5/03 the following PCCC Execute payload via a Net-ENI and read the data word from the O:7.0 module:

0f 00 00 01 a2 02 00 8b 07 00

0F = PCCC Command
00 = PCCC Status = No Errors
00 01 = Transaction Sequence Word. I didn't have to increment this, though some controllers may require it.
A2 = PCCC Function
02 = Data Length in bytes
00 = Data File Number (Output = zero)
8b = Output File Type
07 = Slot 7
00 = Word 0
 
HallerGK where are you in IN? I am in the Louisville Ky. if you are local I may be able to help you out.
 
Ken, The example you sent me is worth gold. DF1 Encapsulated in Ethernet/IP, Genius. I'm getting ready to test it out today. Is there a length limitation on the response? Also, am I correct to use the same Service code and class as in the Timer example?
=====================================
widelto, Thank you for your input.
==================================
Jeff, No thanks, that's what the message board is for.
=======================================================
Once this works, I'll post a link to a copy of the applicaton for posterity
 
Last edited:
I hope it did not come across as sales pitch. On the board if I offer help I am extending an open hand to help NOT to make a profit. I like to help the people that I can. Sorry if it came across as sales pitch.
 
No I didn't take it as a sales pitch, and I hope I don't offend you but, I make it a point to never visit anyone I meet online. Personal rule, I seen way too many weird things on tv.
 
It worked, Here is the solution to use messaging to read data from the output files from an slc 5/03 to a control logix
1st - set up your message in the ladder logic
2nd - create two new tags, both SINT arrays about 20 items long
===========================================================
Tag Name value style datatype description
OutputMSGTesting 0 Decimal BOOL Used to enable the message

PCCC_G2_1_Reply {...} {...}Decimal SINT[20]
PCCC_G2_1_Reply[0] 16#4f Hex SINT PCCC Command
PCCC_G2_1_Reply[1] 16#00 Hex SINT PCCC Status
PCCC_G2_1_Reply[2] 16#00 Hex SINT TNSW Byte 1
PCCC_G2_1_Reply[3] 16#01 Hex SINT TNSW Byte 2
PCCC_G2_1_Reply[4] 2#1010_1010 Binary SINT data byte 1
PCCC_G2_1_Reply[5] 2#0010_1010 Binary SINT data byte 2 and so on
PCCC_G2_1_Reply[6] 16#00 Hex SINT
PCCC_G2_1_Reply[7]16#00HexSINT
PCCC_G2_1_Reply[8]16#00HexSINT
PCCC_G2_1_Reply[9]16#00HexSINT
PCCC_G2_1_Reply[10]16#00HexSINT
PCCC_G2_1_Reply[11]0DecimalSINT
PCCC_G2_1_Reply[12]0DecimalSINT
PCCC_G2_1_Reply[13]0DecimalSINT
PCCC_G2_1_Reply[14]0DecimalSINT
PCCC_G2_1_Reply[15]0DecimalSINT
PCCC_G2_1_Reply[16]0DecimalSINT
PCCC_G2_1_Reply[17]0DecimalSINT
PCCC_G2_1_Reply[18]0DecimalSINT
PCCC_G2_1_Reply[19]0DecimalSINT

PCCC_G2_1_Request {...}{...} Decimal SINT[20]
PCCC_G2_1_Request[0] 16#0f Hex SINT PCCC Command 0x0F
PCCC_G2_1_Request[1] 16#00 Hex SINT PCCC Status
PCCC_G2_1_Request[2] 16#00 Hex SINT TNSW Byte 1
PCCC_G2_1_Request[3] 16#01 Hex SINT TNSW Byte 2
PCCC_G2_1_Request[4] 16#a2 Hex SINT PCCC Function 0xA1 = SLC Typed Read
PCCC_G2_1_Request[5] 16#02 Hex SINT Number of Bytes in Command
PCCC_G2_1_Request[6] 16#00 Hex SINT Data file Number (output=zero)
PCCC_G2_1_Request[7] 16#8b Hex SINT Data Table Type 0x86 = Timer, 8b=output
PCCC_G2_1_Request[8] 16#07 Hex SINT Element Number (slot#)
PCCC_G2_1_Request[9] 16#00 Hex SINT Sub-Element Number (word)
PCCC_G2_1_Request[10] 16#00 Hex SINT
PCCC_G2_1_Request[11] 16#00 Hex SINT
PCCC_G2_1_Request[12] 0 Decimal SINT
PCCC_G2_1_Request[13] 0 Decimal SINT
PCCC_G2_1_Request[14] 0 Decimal SINT
PCCC_G2_1_Request[15] 0 Decimal SINT
PCCC_G2_1_Request[16] 0 Decimal SINT
PCCC_G2_1_Request[17] 0 Decimal SINT
PCCC_G2_1_Request[18] 0 Decimal SINT
PCCC_G2_1_Request[19] 0 Decimal SINT
=================================================================

then in the message configuration use these settings
Message Type: CIP Generic
Service Type: Custom
Source Element: ##the name of your request tag##
Source Lenght(in bytes): ##the length of your request tag## mine is 9
Destination: ##the name of your reply tag##
Service Code: 4d
Class: 67
Instance: 1
Attribute:1
=============
In the communication Tab,
for your path use
TheNameOfYourEtherNet/IPCard , 2 , TheIPAddressOfTheSLC

=============================
Step 4: Pray that your God has found favor with you today.
Step 5: Enjoy!
 
Last edited:

Similar Topics

Hi all I am replacing an SLC5/05 with a Compact Logix. Having converted the program I am now looking at the Ethernet messaging. I have Mapped the...
Replies
8
Views
2,527
Hello, I was ticking along at improving some data reading from a SLC to CLX earlier today, and could not get it to work as I wanted 1st...
Replies
4
Views
2,831
I'll start off by saying I'm unfamiliar with communications between PLC's, hence my question here. We have a machine with a ControlLogix & a SLC...
Replies
7
Views
2,767
Anyone know if I can msg between a ControlLogix L71 (A) and an SLC5/05 (C) via backplane of second ControlLogix L71 (B)? ControlLogix (A) and SLC...
Replies
4
Views
2,671
Hi there everyone! Long time lurker, first time poster. I am doing an SLC-5/03 to CompactLogix migration and am having an issue with a barcode...
Replies
1
Views
1,037
Back
Top Bottom