| View previous topic :: View next topic |
| Author |
Message |
adriwhite Junior

Joined: 29 Jul 2015 Posts: 5
|
Posted: 07/08/2015 10:58 Post subject: Open other panel with a script |
|
|
Hi!
I am new to programming PLC and HMI screens. Right now I'm migrating an old screen work with XBT L100 to a new screen with Vijeo Designer Schneider. I want to make a script so that when a variable is equal to a number, the script open the panel you desire.
For example, if the variable M102 = 26, I want the panel is open ID 26. I have this right now but not valid:
if (MW102.getIntValue () == 26)
{
open ("PASSWERRONEA.src");
}
Where "PASSWERRONEA.src" is the panel that I want to open.
Thanks for your help. |
|
| Back to top |
|
 |
Apilife Junior 2

Joined: 13 May 2013 Posts: 21
|
Posted: 11/08/2015 07:04 Post subject: |
|
|
Migrating XBTL1000 to Vijeo Designer while being a new programmer is not easy...
You don't need a script to switch panel like XBTL1000.
There are 2 solutions :
1 - Use the Dialog Table like XBTL1000. Look at the "Dialog Table Settings" of the comunication protocol.
2 - Use the _CurPanelID system variable. Look at its properties: you can associate a PLC variable to read number of panel from.
And read online help for more information... |
|
| Back to top |
|
 |
adriwhite Junior

Joined: 29 Jul 2015 Posts: 5
|
Posted: 07/09/2015 08:44 Post subject: |
|
|
| Apilife wrote: | Migrating XBTL1000 to Vijeo Designer while being a new programmer is not easy...
You don't need a script to switch panel like XBTL1000.
There are 2 solutions :
1 - Use the Dialog Table like XBTL1000. Look at the "Dialog Table Settings" of the comunication protocol.
2 - Use the _CurPanelID system variable. Look at its properties: you can associate a PLC variable to read number of panel from.
And read online help for more information... |
THANKS!!
I used _CurPanelID.write(x) system variable where "x" is the number of panel |
|
| Back to top |
|
 |
|