Vijeo Designer 6.2 Scripting?

Jwharp

Member
Join Date
Jul 2020
Location
Georgia
Posts
2
I work for an OEM. I am trying to develop a generic HMI program that will display an overview screen displaying between 2 and 6 "widgets", depending on the site. I have it working where selecting or deselecting whether each "widget" will change the value of an internal INT variable to show the total number of "widgets". I want to add a visibility animation to a button for 2,3,4,5, or 6 "widgets". In that way I want one button only to appear which take the user to the correct overview screen depending on the plant configuration. I can only use a discrete variable for the visibility animation. I think writing a script is a way to accomplish this, but I'm not very familiar with doing so. I think the script would be something like...

if (integer variable=2)
then (2 active widgets.write (1))

if (integer variable=3)
then (3 active widgets.write (1))

etc....

Any help or advice on this would be appreciated.
 
On visibility it should work if you write syntax to visibility.
integer variable==2




if you need inverted status you can write syntax
!(integer variable==2)





On scripting you need first create variables, then read values to script variables before comparing


int mycompare; //create int varible



mycompare = myint.getintValue(); //get value from Vijeo Designer side to script



if (mycompare==2)
{

mybool.write(1); // write from script

}


I can check correct syntaxes next week.
 

Similar Topics

Good Day all. I am currently busy with a schneider HMI design in vijeo designer and i want to know how you can animate an image to move on the x...
Replies
2
Views
182
Hello, I have been tasked with adding some analog signals for display and alarm setup in some old Schneider Electric HMIGTO HMI-panels. I have...
Replies
4
Views
181
Since upgrading to V6.2 12.24 SP12 24-21 the M221 PLC is no longer recognised by the HMI. The screen still works but it does not talk with the...
Replies
3
Views
1,001
Hey all, I am using Vijeo Designer v6.2.8.12 for a mineral plant project. For that, I needed to incorporate three different plants' HMI page in...
Replies
2
Views
1,203
Hi, Is there a way to get an alarm ack/active flag in Vijeo Designer to store in a internal var? I found under action there are alarms action you...
Replies
1
Views
1,462
Back
Top Bottom