(2)| 5/18/2020 12:36 PM | |
|
Posts: 306 Rating:
|
I am using a script:
|
This contribution was helpful to
|
|
| 5/18/2020 12:53 PM | |
|
Posts: 306 Rating:
|
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:
|
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:
|
When I compile the WinCC Unified I get this error. I am not sure what it means. |
Follow us on