I want to use a button as a counter in TwinCAT 3 HMI. For example, the work flow is like this way. I have 10 functions and I have to trigger one by one by pressing a single button to trigger the functions in TwinCAT 3. How can I do this?
Asked
Active
Viewed 110 times
1 Answers
2
First, you need to link the button to a function (e.g. by linking it to the 'OnMouseClick' event of the button).
The linked function acts as a master function which calls the correct function depending on an internal counter value. So basically, you design that master function in a way, that it
- increments a counter every time it is called and
- calls the correct function depending on the actual counter value.

Felix
- 1,066
- 1
- 5
- 22