rpraveenkum
Nov 21 2006, 02:17 AM
How to program the Indirect addressing in the FBD inRSL5000
TWControls
Nov 21 2006, 07:16 AM
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
Nov 21 2006, 07:35 AM
I want to do some thing like this
dom33dom
Nov 21 2006, 08:04 AM
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
Nov 21 2006, 08:15 AM
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
Nov 21 2006, 08:58 AM
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
Nov 21 2006, 10:45 AM
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
Nov 21 2006, 10:58 PM
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.