You need to use python to do this. Set up your confirmation how you normally would, then click on the scripting tab. You should now have a basis to work from.
As a hint, you’d use something like:
msg = 'are you sure you want to switch to %s mode?'
if event.source.state == 0:
msg = msg % 'Off'
I’m not at my desk, so sorry for the somewhat vague reply
hey hello ,
i have a doubt related to multistate button
I have a machine udt defined and there are some instances of the udt . i have a multi state button to control the machine in a template . I have binded the control value and indicator value of the multistate button to the machine status tag. When i am changing the state using multistate button the machine status tag gets changed but the machine still remains on .its like i am not able to control the machine
The Multi-State button on my Machine template seems to reflect the Machine’s current status, but clicking the button doesn’t seem to change the Machine’s state even though tag gets changed…
Could anyone help me out with this
I should clarify, is the Control property the only property bound bidirectionally?
I read your first post again: you’re saying that when you press the multistate button, the tag you’ve bound to the control property changes value, but the status of the multistate indicator doesn’t?
Are these the same tags or are they independent? If independent, then the issue lies in the PLC. If the same tag for control and indication, then it would seem there’s an issue in your indicator property binding - make sure this is not set to bidirectional.