Siemens OPN DB[MW]?

ylade

Member
Join Date
Sep 2007
Location
Ireland
Posts
23
Hi All,

I wish to Open a DB that will be constantly changing.
Eg OPN DB [MW] My code will look at the data words/Dwords/Stings from this DB. However, I also need the Data locations to change for example
L 10
T MW 20
L 44
T MW 30

OPN DB [MW20] // Opn Data Block 10 ----THis Seems possible
L DBD [MW 30] // L Double Word 44 ----- THis does no?

Any Ideas?
THankso_O
 
Try this

L 44
SLD 3
T MD 30

L DBD[MD30]

Be carefull MW32 can't be used somewhere else in the program
 
Last edited:
Stl

U need to use the adress register.

Some SLD3 stuff.

L MW30
SLD3
LAR 1
L [AR1,p#0.0]


I think it's something like that, if not, STL specialists on this forum will help you further.



Hi All,

I wish to Open a DB that will be constantly changing.
Eg OPN DB [MW] My code will look at the data words/Dwords/Stings from this DB. However, I also need the Data locations to change for example
L 10
T MW 20
L 44
T MW 30

OPN DB [MW20] // Opn Data Block 10 ----THis Seems possible
L DBD [MW 30] // L Double Word 44 ----- THis does no?

Any Ideas?
THankso_O
 
kay

yes, but I do like your indirect code more. (sounds *** kissing) 🍑

I don't use indirect adressing much as you all can see :).
 
I just used the code like he did :)
I don't really prefer one or the other.
I would say it depends on what his is triing to do. ;-)
 

Similar Topics

The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
6
Views
113
Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
5
Views
133
Hi need help why this “failure 5 emergency stop “ appears at every startup in the morning ? Have to shut off main switch at least 10 times on...
Replies
19
Views
293
i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
109
Hi everyone hope you'll well. Is it possible for me to download a Crack version of tia portal v13..sorry to say this but the software is very...
Replies
5
Views
198
Back
Top Bottom