Technical Forum

STEP 7 / STEP 7 Lite

DB indirect access in STL

Thread Starter: ET_Oscar   Started: 2/13/2007 12:56 PM   Replies: 4

« Previous thread Next thread »
Page 1 of 1 (5 items)
  2/13/2007, 12:56 PM
Joined 2/9/2007
Last visit: 12/13/2011
Posts: 19
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!

I'm trying to copy a few DBs around, and I need to indirectly access a number of source DBs and copy them to other destination DBs. I must use indirect access because I only know the involved DBs at run time. I tried using SFC20 but I can't seem to feed it a indirect DB number.

Can you give me a small example?

Thanks!

Óscar Sarabando

Software and Automation Engineering
Metalúrgica Progresso
Vale de Cambra, Portugal
http://www.progresso.pt
<< The best way to predict the Future is to make it happen! >>
Top
  2/13/2007, 1:39 PM
Joined 4/24/2006
Last visit: 6/18/2013
Posts: 4741
Rating:
Rated: Excellent [4.12 out of 5 / rated 430 time(s)]. (430) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello ET_Oscar,

Have you seen this link:
http://support.automation.siemens.com/WW/view/en/22422028

Perhaps it's usefull

Best regards,

Wizard
Top
  2/13/2007, 6:51 PM
Joined 12/5/2005
Last visit: 6/6/2013
Posts: 221
Rating:
Rated: Outstanding [3.56 out of 5 / rated 9 time(s)]. (9) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

In the ANY pointer that you use with SFC20, you can change the DB Number used.

Do you know to use the ANY Pointer?

You can also made this by using the LOOP and OPN  instructions. OPN instruction can be used by indirect value


Márcio Santos
www.marcioroberto.wordpress.com
Top
  2/14/2007, 12:19 PM
Joined 2/9/2007
Last visit: 12/13/2011
Posts: 19
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) 
Thanks Wizard! E obrigado, Marcio! blink

I managed to do it with your help.

Thanks!

Óscar Sarabando

Software and Automation Engineering
Metalúrgica Progresso
Vale de Cambra, Portugal
http://www.progresso.pt
<< The best way to predict the Future is to make it happen! >>
Top
  2/14/2007, 12:59 PM
Joined 4/24/2006
Last visit: 6/18/2013
Posts: 4741
Rating:
Rated: Excellent [4.12 out of 5 / rated 430 time(s)]. (430) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
You are welcome grin

Best regards,

Wizard
Top
Page 1 of 1 (5 items)
Actions