Siemens S7 300 pointer issues (how to trace)

maico

Member
Join Date
Jun 2012
Location
Belfast
Posts
27
Hi All,
I have a system where there are parameters loaded into a DB from a DCS system. When I check the address's I find no locations in the program visible from the DB as I assume pointers are being used within the program. I just want to find out where these parameters are being used or find the pointers that are using this DB.
Where is the best place to start I have read loads of articles on pointers, within the program I have lots of commands like the one below but how do I trace this to the actual DB.

OPN DB [#ActivePhaseDB_Number]

any help would be great.
 
as suggested you will have to look where the db number is calculated, and if u use the cross reference. You will see where the pointer access the DBs because you will see a question mark near the db symbol. Its not a big help but at least you will be able to start from somewhere.
Using the inderect adressing is very fast and its cool too because you can significantly reduce your cycle time, but the drawback is troubleshooting.
 
OPN DB [#ActivePhaseDB_Number]

any help would be great.

anything with # indicates a variable declared in the current block.
For instance, if #ActivePhaseDB_Number is an IN variable of the current block, you have to look at the place where this block is called to see what value or parameter is given.

grtz,

Wimpie
 

Similar Topics

Hy Experts, I have some problem with this intsructions: - CREA_DBL - READ_DBL - WRIT_DBL I want to create a recipie management in 314 CPU via...
Replies
3
Views
3,570
Hello all. I have an ESA HMI that is connected to a Simatic S7-300 (CPU312). I have uploaded the program from the PLC which is written with Step7...
Replies
6
Views
1,450
Hello. There is a problem with Siemens S7 300. We got a replacement PLC but it does not run the program from the MMC. The new PLC is dated 2011...
Replies
3
Views
692
Hi to all, Our company does not usually use Siemens PLCs, but have a press with one in it. We are trying to change the IP address in our Simatic...
Replies
2
Views
1,070
G'day guys, I am setting up a s7-300 as a test rig for the workshop and when I downloaded the PLC is not going into run mode, I keep getting a...
Replies
35
Views
5,229
Back
Top Bottom