dalporto
Lifetime Supporting Member
Hi.
Here's what I want to do and I'm not sure where to start. I did it back then using Citect so I'm pretty sure it can be done.
I have a lot of commands that acts the same, mostly open / close, trip / close, start / stop, so usually in the popup i have 5 buttons: the 2 "SELECT" command buttons, a "CLEAR" button to clear the selected command before to pick another, an "EXIT" popup button, and an "EXECUTE" command which is mandatory for the confirmation scheme. There will also be a text box saying NO COMMAND SELECTED / 52T1 TRIP COMMAND SELECTED / 52T1 TRIP COMMAND EXECUTED etc.
I want to have it into 1 single popup and re-use it. So from the main page I'd select 52T1 breaker commands and the popup would open showing the title "52T1 Breaker" and the commands would display "TRIP" and "CLOSE". If I select the TRIP, message display would be "52T1 TRIP COMMAND SELECTED", and that would set an memory integer to "1", which would point to the right command. Then, when when I push "EXECUTE", that would send the right command, let say here UHI_52T1_TRIP_CMD to the PLC and display "52T1 TRIP COMMAND EXECUTED" for 1 second then close the popup and reset Integers and Srings to start values.
I know what's need to be done, but I'm not sure where to put the code. Also, I'm not too familiar with the InTouch script syntax.
Let start with the first thing.
Let say I have 2 breakers on my main 1-Line page, 52T1 and 52T2. They will open the same popup page that will be called let say CMD_POPUP; How can I tell the popup it has been opened from which button?
Open via an action script? Show "CMD_POPUP"; then set a string or an integer to something? What would the script looks like?
Then I would list my commands and text lists under the "While Showing" of the popup?
I'd be glad to find a couple examples of scrip edition.
Thanks.
Here's what I want to do and I'm not sure where to start. I did it back then using Citect so I'm pretty sure it can be done.
I have a lot of commands that acts the same, mostly open / close, trip / close, start / stop, so usually in the popup i have 5 buttons: the 2 "SELECT" command buttons, a "CLEAR" button to clear the selected command before to pick another, an "EXIT" popup button, and an "EXECUTE" command which is mandatory for the confirmation scheme. There will also be a text box saying NO COMMAND SELECTED / 52T1 TRIP COMMAND SELECTED / 52T1 TRIP COMMAND EXECUTED etc.
I want to have it into 1 single popup and re-use it. So from the main page I'd select 52T1 breaker commands and the popup would open showing the title "52T1 Breaker" and the commands would display "TRIP" and "CLOSE". If I select the TRIP, message display would be "52T1 TRIP COMMAND SELECTED", and that would set an memory integer to "1", which would point to the right command. Then, when when I push "EXECUTE", that would send the right command, let say here UHI_52T1_TRIP_CMD to the PLC and display "52T1 TRIP COMMAND EXECUTED" for 1 second then close the popup and reset Integers and Srings to start values.
I know what's need to be done, but I'm not sure where to put the code. Also, I'm not too familiar with the InTouch script syntax.
Let start with the first thing.
Let say I have 2 breakers on my main 1-Line page, 52T1 and 52T2. They will open the same popup page that will be called let say CMD_POPUP; How can I tell the popup it has been opened from which button?
Open via an action script? Show "CMD_POPUP"; then set a string or an integer to something? What would the script looks like?
Then I would list my commands and text lists under the "While Showing" of the popup?
I'd be glad to find a couple examples of scrip edition.
Thanks.