Jump to content

UDFB local tags dont change state


vanecuci

Recommended Posts

I have a problem with the local tags in my UDFB. They don't change their state. For example, when I try to set a coil that has a local tag, the local tag's value remains unchanged (zero). I am using the latest version of unilogic. What can I be doing wrong?   Thanks in advance.

Link to comment
Share on other sites

You have not done anything wrong, when a tag is set for a local property it exists only within that subroutine and the tags are not retained and cannot be viewed. Only global tags have the ability to be retained and viewed. When an operand is set as a local tag it will decrease processing time required by the CPU within a specific subroutine but it only exists for that scan. Local tags are used for temporary memory when the CPU is processing information but discarded as soon as the scan leaves the subroutine/UDFB.

 

You can select the tag within UniLogic and convert it back to a global tag for viewing and troubleshooting in online mode. Once the application is complete then you can modify any necessary tags back to local to decrease scan time.

Link to comment
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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.