Slc 5/04 Indexed Addressing

Johnzo

Member
Join Date
Sep 2015
Location
Ontario
Posts
9
I have an automatic storage and retrieval system which uses indexed addressing to store the data for each stored and retrieved product.
This system has 10 racks which store 12 items in each rack and each item uses 14 words of data to identify it.

I need to add 2 more words of additional data but cannot find any info or logic samples to help me figure out what is going on in this programme.

I was ok using the additional 2 words at first as it appeared that words 14 & 15 were spare throughout the many COPy's as the product goes through its processes's, but in a manual or maintenance mode the following statement is used and I don't know what it means as far as where the data goes, how it is pointed etc.

Can anyone help me with this?

COPy #N190:40 to #N[N16:10]:[N16:11] Len14

And the reverse at retrieval

COPy #N[N16:10]:[N16:11] to #N190:40 Len14

Thanks in advance for any help ; )
 
COPy #N190:40 to #N[N16:10]:[N16:11] Len14

And the reverse at retrieval

COPy #N[N16:10]:[N16:11] to #N190:40 Len14
N16:10 points to the File Number to Copy To/From
N16:11 points to the first Element to Copy To/From

Presumably, if you change the length of the COP Instruction to Len 16, it should work, but without seeing the PLC Code, we can only guess.

If you Right Click on an empty spot in the Ladder Logic, select Properties, the the Address Display Tab, there is a Check Box towards the bottom "Display Value for Indirect Address" that may help you understand what is going on.

Stu.....
 
Thanks Stu,

I did what you said and now see a value of 212 for #N16:10 and 0 for #N16:11.

Does this mean that 212 = N212 starting at 0 for a length of 15 (my mistake, the length is 15 not 14, which negates using the last 2 words)?

My next question is by what mechanism does N212 become involved in this. Where in the logic is N212 called into play?
 
Yes, in this case the COP Instruction will move the 15 Words starting at N212:0 To/From N19:40.

It is hard to answer your specific question without seeing the PLC Code. If you search for N16:10/N16:11, you should find some more PLC Code that moves the Value into it based on some criteria. i.e. Product Selection 1,2,3.....X

Stu....
 
Ok, I now see that N212 is a variable word number representing a physical storage location, this makes sense now.

In other threads I have read about S:24 playing a role with indexed addressing, is this the case and if so, how?

Thanks again for the help Stu!
 
I should have paid more attention. What you have in your PLC is Indirect Addressing, not Indexed Addressing. S:24 is used for Indexed Addressing, but not Indirect Addressing.

You might want to have a look at the SLC500 Instruction Reference to understand the difference. You can get it here;

http://www.rockwellautomation.com/global/literature-library/overview.page

Search for 1747-RM001E, and if that doesn't work, try searching for "SLC500 Instruction Reference".

Stu....
 
I thought if it had a "#" it was indexed addressing?

Looking at the file you sent it may be indexed indirect addressing!

I think I can muddle my way through this now, thanks again Stu, big help, have a great weekend!
 
The # indicates a File Instruction. The PLC does use the Index Register during the Execution of the Instruction.

Have a look at Page E-15 of the Instruction Reference Manual.

Stu....
 

Similar Topics

I have a complex SLC program that used doubel index addressing. For example N[N47:162]:[N47:1]. When it coverts through the AB conversion tool...
Replies
4
Views
4,064
Hi everyone, I've got an SLC 5/03 that's suddenly started doing some funny things. I'm wondering if it might indicate the PLC is failing. When...
Replies
2
Views
1,957
I’m attempting to send a temperature from a SLC-5/02 to an EZiMarquee display. The vendor said to use a MSG instruction to send the data to the...
Replies
1
Views
90
Hello all. I have a few SLCs in my plant and of late we've seen a weird issue: The system will be running normally and then randomly the outputs...
Replies
2
Views
103
I am working on setting up a Prosoft Datalogger model PLX51-DLplus-232. This unit will be collecting data from a SLC 5/05 on the DB9 port set to...
Replies
3
Views
104
Back
Top Bottom