plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open other panel with a script

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Schneider Electric
View previous topic :: View next topic  
Author Message
adriwhite
Junior
Junior


Joined: 29 Jul 2015
Posts: 5

PostPosted: 07/08/2015 10:58    Post subject: Open other panel with a script Reply with quote

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
View user's profile Send private message
Apilife
Junior 2
Junior 2


Joined: 13 May 2013
Posts: 21

PostPosted: 11/08/2015 07:04    Post subject: Reply with quote

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
View user's profile Send private message
adriwhite
Junior
Junior


Joined: 29 Jul 2015
Posts: 5

PostPosted: 07/09/2015 08:44    Post subject: Reply with quote

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!! :-D :-D

I used _CurPanelID.write(x) system variable where "x" is the number of panel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Schneider Electric All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro