5/18/2020 12:53 PM | |
Joined: 2/24/2015 Last visit: 1/25/2023 Posts: 306 Rating: (78) |
1. Tags("StatusWord").Read() - WinCC function to read tag value 2. 2 ** BitNum - creating mask with single bit (for example 7) 3. Tags("StatusWord").Read() & 2 ** BitNum - Bitwise AND with mask. Check single bit 4. Boolean(..) - converting to boolean. You can read about bitwise operations in Javascript here - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators |
Last edited by: Konstantin_D at: 05/18/2020 12:55:32 |
|
5/18/2020 1:56 PM | |
Posts: 152 Rating: (5) |
Thanks Konstantin, Now I setup this script on my object, but still it is now working. |
5/18/2020 2:00 PM | |
Posts: 152 Rating: (5) |
When I compile the WinCC Unified I get this error. I am not sure what it means. |
Follow us on