Sign in to follow this  
Followers 0
Guest Conne

Array adressing

3 posts in this topic

Hello I have a litle problem using arrays in Simatic step 7 ver5.3. I would like to use indirekt adressing in my user defined type. Example: "HMI_DB".LOGG.PROD[1].PRODALARM instead of the 1 i would like to use a variable. "HMI_DB".LOGG.PROD[MyPointer].PRODALARM but i have problem to get this work. Is there anyone that have a sugestion?? Best regards Conrad

Share this post


Link to post
Share on other sites
You need SCL programming package. Or you'll have to get familiar with S7 addressing registers and address artmethic.

Share this post


Link to post
Share on other sites
If you go to the Siemens support pages and enter "open a data block indirectly" in the search box, you'll get some good examples. Cheers Roy

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
Sign in to follow this  
Followers 0