Help - Search - Members - Calendar
Full Version: Indirect addressing in RSL5K
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
rpraveenkum
How to program the Indirect addressing in the FBD inRSL5000
TWControls
Hi Rpraveenkum

Can you give an example of how you are trying to address. The most common error with Rs5000 is you can't index with a multi-dimensional array. Example

MyArray[MyIndex] is good
MyArray[MyIndex[3]] will not work
rpraveenkum
I want to do some thing like this
dom33dom
Hello

In a Database:
You have to create an array of DINT ( for example TABLE[10] ).
And you create an index as a Dint ( for example INDEX ).

In FBD Routine :
You will be able to use in FBD like this : TABLE[INDEX].


Use Limit on INDEX to avoid problem with indirect adressing.

Bye





rpraveenkum
QUOTE(dom33dom @ Nov 21 2006, 06:04 PM) [snapback]44072[/snapback]

Hello

In a Database:
You have to create an array of DINT ( for example TABLE[10] ).
And you create an index as a Dint ( for example INDEX ).

In FBD Routine :
You will be able to use in FBD like this : TABLE[INDEX].


Use Limit on INDEX to avoid problem with indirect adressing.

Bye


I have done same as you explained DINT is an array & TE & TE1 are Index they work fine with Ladder But showing error with FBD
dom33dom
Hello,

You are right, I have just checked that the result was correct.

I send you an ACD file example with a step between your operation.
It is not possible for this kind of instruction to recieve directly an indirect adressing ( in FBD ).

My ACD file is in V15 version.

Bye
Autom8n
One way to get around this is:

1. Create dummy variables to pass to function block routine.
2. Jump to routine passing indirectly addressed variables as parameters.
3. Return result.

Example attached
rpraveenkum
Thanks for all
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.