The current application has two checkboxes, one to disable the tags alarm with the '?Digital.Disable' and one to set a PLC bit for that alarm with the '?Control&Value="1"'. They have some level alarms that were four separate alarms that they now want combined so that was easy enough to add a calculation digital point and disable the four alarms. Now just the calculation digital point goes into alarm when any of the four are true and the checkbox just disables the new calculation digital point.
Now I'm trying to figure out how to make the one check box toggle the four PLC bits. Working with buttons I know you can't just have a pick action method set four values at once so I made a structured text program to look at one of the bits and if it's true make them all faults if it's false make them all true.
It's easy enough to make the pick action method with the structured text object selected and then the method set to execute and it works but for the life of me I can't figure out how to get it to work with the pick param and pick type animation. I know there's an execute method in the schema so I must have the syntax or the spelling or something wrong but it never does anything and it's really frustrating because the pick action keeps getting setup and it's confusing as to which ones actually working. The pick param and the pick type that you've configured under animations or the pick action that also looks like it's set up. I'm using pick type 5 and I think that should work with the execute method. I did try the others 17 and 19 and 20 and whatever and none of those work and they only seem to work with VB. Also the example for 19 makes it look like you can just put a message box command with a string and have it work and their example doesn't work.
So this works in a pick animation:
SCX:////CLogicSTProgram/...Tags DNP.Bioxide.Calcium Nitrate Tank 6701.Level SP.Toggle Rdy Tags

But this don't work in a pick param animation:
"SCX:////CLogicSTProgram/...Tags DNP.Bioxide.Calcium Nitrate Tank 6701.Level SP.Toggle Rdy Tags"+'?Execute'