rajsiyer

Difference between 'Local Static' and 'Local Temp' variables within a FB

2 posts in this topic

Hi friends, Can anybody tell me when to use a local-Static variable and when to use a Local Temp variable whilst creating a Function-Block in S7 -1500 using TIA portal. Thanks for looking in. Best wishes.

Share this post


Link to post
Share on other sites
A Static variable will retain its value / status between execution of the FB The Local variable will not retain its value. The Static variable will end up in the instance DB connected to the FB.

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