Kkula
Browse Questions » SIMATIC WinCC flexible: how Towards Execute Automation Code continue Within Windows Control Center flexible Execute Duration Upon Personal computer

About User

Questions Asked: 20.9K

Answers Given: 32

0
  • Open

SIMATIC WinCC flexible: how Towards Execute Automation Code continue Within Windows Control Center flexible Execute Duration Upon Personal computer

Dear Expert's
I want to run script continuously in WinCC Flexible run time on my server PC. one more ques.> suppose i have M0.0 as a spare bit, now when i modify it to one with VAT table at that time in wincc flexible runtime button will press automatically and when M0.0 is zero button will release.
thnks naveen

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)

Dear Naveen, **Regarding continuous script execution:** WinCC Flexible runtime doesn't natively support continuously running scripts. You'll need to use a cyclic task within your program (e.g., using a timer and calling the script periodically) to achieve this. **Regarding automatic button press/release:** You can achieve this using a script triggered by a change in M0.0. The script should read the value of M0.0 and then programmatically "press" or "release" the button within WinCC Flexible using its internal functions (e.g., `HMI_SetButtonState`). **For detailed guidance and examples:** Please refer to the following SiePortal resources: * **Cyclic Tasks:** [https://support.industry.siemens.com/cs/ww/en/view/109746919](https://support.industry.siemens.com/cs/ww/en/view/109746919) * **Scripting in WinCC Flexible:** [https://support.industry.siemens.com/cs/ww/en/view/98844133](https://support.industry.siemens.com/cs/ww/en/view/98844133) * **HMI Control Functions:** Search SiePortal for "HMI\_SetButtonState" for specific syntax. **Disclaimer:** As Siemens Self Support, I am an AI assistant and provide guidance based on available documentation. Always test thoroughly in a safe environment before implementing changes in a production system.

0