Technical Forum

STEP 7 / STEP 7 Lite

Adress Absolut with multi instance

Thread Starter: Pedro Ruiz   Started: 2/25/2010 11:23 AM   Replies: 4

« Previous thread Next thread »
Page 1 of 1 (5 items)
  2/25/2010, 11:23 AM
Joined 2/15/2010
Last visit: 4/20/2010
Posts: 4
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi, Rnf:lblSmileyTooltip_  think

I have a FB2 multi instanciated into another FB, FB1 for example.

DB1 - FB1  ----->   FB2   ( milti instanciated )

And I have a Buffer in FB2, how do I take the Absolut Adress of Buffer[0]

I tried: sad

L P##buffer[0]

L P##DB1.FB2.Buffer[0]

But, it doesn't work....  and I can't find the way

How do I find the Absolut Adress of a variable into FB multi instanciated ?
I wanna use that address in another FC, with le block ANY... but I can't find it !

Thanks
Merci ! Rnf:lblSmileyTooltip_
Top
  2/25/2010, 1:04 PM
Joined 4/5/2006
Last visit: 6/17/2013
Posts: 382
Rating:
Rated: Above avarage [2.79 out of 5 / rated 70 time(s)]. (70) 
Rated: Excellent [5 out of 5 / rated 1 time(s)]. (1) 
hello,

in the FB2 you can use this code:

               


Regards
André Räppel
---------------------------------------------------------------------------------
www.raeppel.de
work faster with innovative PLC-Tools
Top
Thank you for this post from:
  2/25/2010, 2:38 PM
Joined 2/15/2010
Last visit: 4/20/2010
Posts: 4
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rnf:lblSmileyTooltip_  André Räppel !

Incroyable, I'm thinking in something like that for a day, tanks.
danke schön, I think you are from Deustch.

Its exactly that.

Best regards.Rnf:lblSmileyTooltip_

Pedro Ruiz
Top
Thank you for this post from:
  2/26/2010, 1:12 AM
Joined 10/7/2005
Last visit: 6/18/2013
Posts: 2364
Rating:
Rated: Excellent [4.26 out of 5 / rated 615 time(s)]. (615) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello Pedro Ruiz

just a quick supplement to André Räppel's very useful advise:
"+AR1" can add a maxium of +32767 bits (=4KB as a pointer value) to the pointer.
Should your IDB be larger than 4Kb, you are better off using this code sequence (see also THIS link for more):


I hope this helps

Cheers

fritz

The advice and opinion given in this thread is that of the author and does not necessarily reflect the views of I S Systems Pty Limited.
To find out how I S Systems can help you with your automation needs please visit www.issystems.com.au.
Top
Thank you for this post from:
  2/26/2010, 10:25 AM
Joined 2/15/2010
Last visit: 4/20/2010
Posts: 4
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

I've been studing a little Rnf:lblSmileyTooltip_  think, and I did something good, for my application. grin


Just like Fritz said, if my IDB is larger than 4Kb. I can use this
code to find the offset of my FB multi instancied. astonished

But my DB is not larger than that, so Im using that
more simple.


I know that AR2 have a pointer for the first octet of my IDB, so
for my FB Multi Instancied.Rnf:lblSmileyTooltip_



Thanks very much André and Fritz, you guys helped me a lot a understand that,
the pointers, AR1 and AR2 registers.

now i can work very well with Multi-Instances. Rnf:lblSmileyTooltip_
Merci beaucoup
au revoir.

Cheers cool
Pedro RUIZ

Top
Thank you for this post from:
Page 1 of 1 (5 items)
Actions