11/10/2020 1:35 PM | |
Joined: 9/23/2005 Last visit: 8/13/2024 Posts: 4347 Rating:
|
Hi, “Simple Samples” are small projects that demonstrate simple features. The target is give a quick overview about the theme and be used as start point for related discussions. Follow there are a short description and the configuration main steps. Description: One simple way to check the status of a communication between WinCC Unified and a S7 controller is looking for the quality code of a used tag. The tip here is read the tag fist to get his quality code. Follow there is a script example of that: var value; // first: read the tag let tag1 = Tags("Clock_Byte1"); let tagValue1 = tag1.Read(); // second: read the quality code value = tag1.QualityCode; return value; The quality code is a byte and contain detailed information about the tag status. The TIA System Help listed these status (Informatin System - Visualize process - Visualize process for Runtime Unified - Programing Scripts - WinCC Unified Object model - Objects- Tag area - Special properties - "Quality code" property) E.g. we could resume the status as follow:
Attached there is a sample program that shows this feature.
AttachmentConnectionStatus_20201110_0848.zip (951 Downloads) |
Last edited by: Denilson Pegaia at: 11/10/2020 15:32:12Denilson Pegaia |
|
This contribution was helpful to
6 thankful Users |
Follow us on