2/21/2025 8:57 AM | |
Joined: 4/22/2021 Last visit: 4/12/2025 Posts: 26 Rating:
|
Hi Denilson / Experts I was pretending to do an script to evaluate a bit status into a tag, to perfrom some action, in a similar way as many HMI controls does, like to change position, color, etc. I did not found any system function to read a specific bit, so I sorted out by masking. Below simple sample code from what I did. This sample evaluates bit 6 from given tag, to modify object position depending if it is true or false. Is there some more efficient or better way to proceed?
Thank you for all observations. ------------------------------------------------------------------------------------------ |
Last edited by: Ecoleaf at: 02/21/2025 08:58:26Last edited by: Moderator_Lan at: 02/21/2025 12:15:23New subject after splitting |
|
Follow us on