Nick-W

TIA V15 AnyPointer

4 posts in this topic

I have a strange anomaly with a piece of code that works fine with S7-300.

In S7-1500 the pointer decides it's pointing to an Instance p#DB20.DIX0.0 BYTE 240

In S7-300 it points to P#DB20.DBX0.0 BYTE 240.

Any ideas?

 

Thanks

5c5ce3b2a72c7_AnyPointer.jpg.457be3a5346

 

Share this post


Link to post
Share on other sites

Have you tuned optimised access off for the DB you are reading/writing to?

Share this post


Link to post
Share on other sites

No,  this is my first TIA project from scratch. S5 / S7 no problem lol

 

The call passes the value of the anypointer from the FC to the FB and I can see the value passed is p#DB20.dbx0.0 

 

if if you have a link to any docs on the optimisation that would help  

 

Thanks 

 

Share this post


Link to post
Share on other sites

Right click on the DB.

 

Choose properties. 

 

Click on optimized block access. 

 

It will change the DB structure to absolute rather than symbolic. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now