PLC5 Conversion Indirect Addressing: #N[N187:4]:[N187:5]

jk_

Member
Join Date
May 2020
Location
BC
Posts
2
Can anyone explain to me what this would mean in a COP instruction?

Source: #N[N187:4]:[N187:5]

Dest: #N[N187:1]:0

Length: 20

I am doing a PLC5 conversion to rslogix5000 and some (most) of it has been a nightmare -.-
 
Can anyone explain to me what this would mean in a COP instruction?

Source: #N[N187:4]:[N187:5]

Dest: #N[N187:1]:0

Length: 20

I am doing a PLC5 conversion to rslogix5000 and some (most) of it has been a nightmare -.-

Lets say N187:4=28 , N187:5=45 and N187:1=60

then the copy instruction would be like

Source N28:45
Dest N60:0

So if the length is 20, it will copy N28:45 to N60:0 until N60:19

hope you understood

respect the migration you basically have 2 options.

1st- Create a 2 dim array and stay with that code. This one will probably cnsume a lotmore memory
2nd- Modify the code to reach the same objective
 
Last edited:
any ideas?

Lets say N187:4=28 , N187:5=45 and N187:1=60

then the copy instruction would be like

Source N28:45
Dest N60:0

So if the length is 20, it will copy N28:45 to N60:0 until N60:19

hope you understood

respect the migration you basically have 2 options.

1st- Create a 2 dim array and stay with that code. This one will probably cnsume a lotmore memory
2nd- Modify the code to reach the same objective

Thanks!
I figured it out by cross-referencing "#N[N187:4]:[N187:5]" and "#N[N187:1]:0" and seeing where it took me.
This is what I have so far:

Source: "SorterData.B.LugData[SorterData.WS.TargetRecNum].Word[0]"
Dest: Not sure how I want to do this yet
Length: 20

Since there are different UDT tags which the destination will be copied to.. any ideas?
 
Last edited:
Why don’t you use the conversion tool? It will convert that for you automatically. It may not look good, but will most likely work.

After you convert, then go through and cleanup and redo the areas you don’t like.
 
For future reference, a hint for those wondering about indirect addresses.....

  1. Right-click on a blank area of the ladder display and select Properties
  2. Click on the Address Display tab
  3. Select the checkbox for "Display Value for Indirect Address"

This will allow you to see the address that is actually being used. From the example above you would see the original

N[N187:4]:[N187:5]

Changed to.....

N[28]:[45]

Then if you hover your cursor over the address you would see the original address as a tooltip.

OG
 
Its been a long time since I've used Logix 5. Does the hove thing work the other way? That is, if I hover over N187:4 in N[N187:4]:[N187:5], do I see the value of N187:4, do I see the referenced value from N[N187:4]:[N187:5] or do I see nothing?

Keith
 

Similar Topics

Hey everyone, Just used the PLC5/Logix migration utility to convert a program, and while addressing the PCEs, I noticed a lot of errors for "XIC...
Replies
12
Views
1,972
what would be the simplest way to convert this to CLX Thanks
Replies
17
Views
3,753
I have an indirect PLC5 code conversion I can not figure out how to convert to CLX Anyone have a solution Thanks
Replies
11
Views
4,144
Hey everyone, Just a question regarding the conversion of FAL element addressing between a PLC-5 and Logix5000-series processor. In the...
Replies
3
Views
1,618
I have a box erecting machine that uses a PLC5/20 and SFC currently. I need to convert the equipment to run in its new home which will be...
Replies
0
Views
1,334
Back
Top Bottom