Jump to content

Recommended Posts

Posted

On a Samba 7" is there a way to create a simple pop up message without changing screens?  I need to warn the operator before proceeding.  I had a browse but did not find anything, any pointer appreciated

 

Cheers

  • MVP 2023
Posted

No, the Vision PLCs do not support pop up windows. Why are you opposed to changing screens? If you are clever about it, you can make a screen that has the exact appearance of a pop up window and nobody would know the difference.

  • MVP 2023
Posted

This is probably not possible without changing the screen.

However, I usually select a place at the top or bottom of the screen - where with the help of a list of pictures or a list of texts i  implement tips for the operator.

If this tips are not active then this place either has a background color or is hidden by the Hide command. It's fast and convenient.

Posted

Or, if you have room on your screen,  you can make a binary text button that only shows under a certain condition.

Either make one of its states the same color as your background,  with no text.

or I believe you can link an operand to Hide or Disable View....

But again, it has to fit within your screen, it cannot pop-up over other display elements

  • MVP 2023
Posted

Actually, there is a way to have a psuedo-popup window. 

It's done using a little-known and poorly documented system bit - SB 25 - "Do not draw display background".  I used this for the PID tuning window on an oven project.

I used a V1210.  Here's the display with all the loops called "Setup" called from another screen.  Pressing any one of the "Tune" buttons set a different bit in an array:

image.png.921180ca1989f4f54a64a5830e130e44.png

I have code that watches for one of bits to go on and call this rung:

image.png.def06cb7c568ad17d3aebb2e8ad8dd8e.png

You will notice that the description from Unitronics for this bit is flat-out wrong.  The actual operation can be found in the Help if you search for "SB 25" (include quotes).

Which pops this display without drawing the background-

image.png.99baff887a2f97ec21fb7c1b205ed4b2.png

Giving this-

image.png.3c56a10a0ca882e1b4333de58d3fabfc.png

 

Note the PID Tune is now the active window and is modal - nothing on the Setup screen will respond because it's not active.  I have code that uses pointers to interact with the variables on the Tuning display that is not important for this discussion, but leaving the tuning display is simple:

image.png.6368e22b522ccb6d939c0fd01f4c47ad.png

 

By calling the Setup display again without SB 25 set it just blows out whatever display is there, which is normal behavior.

@Patrick - I would not call this "simple" in UnitronicsLand and the suggestion of others to just call another nearly identical display is what I would normally do.  I used it in this application because I needed a way to indirectly interact with a window instead of creating 22 slightly different instances of the same thing.

 

 

Joe T.

 

  • Like 3
Posted

Thanks for the advice everyone.  I have previously done some warning screens which are perfectly adequate, but not particularly aesthetic.  I had not thought of faking the background, I will try that.


@Joe TauserI really like your workaround.   I will definitely give it a try as well, thank you.

 

 

  • MVP 2023
Posted
18 hours ago, Joe Tauser said:

Actually, there is a way to have a psuedo-popup window. 

It's done using a little-known and poorly documented system bit - SB 25 - "Do not draw display background".

This is great! I will definitely be putting this to use.

  • MVP 2023
Posted

Edit from my memory of the startup - you may need to redraw the calling screen ("Setup" in this case) by jumping to a blank screen and then back over a couple of scans to make the hole from the popup disappear.  But I was able to get it to work the way I wanted.

Joe T.

  • MVP 2023
Posted

OK Joe, I have to ask about your great solution!  All my searches (including manual looking in the help file itself on it's own)  only bring up the incorrect reference.  In my help files it actually only shows under "HMI Display tasks, SBs 26-34, which you naturally skip if looking for 25!

Perhaps latest help files have it?  Mine are derived from 9.8.65.  Could you please put up a scrnshot and also where specifically you found it.   🧐

cheers, Aus

  • MVP 2023
Posted

@kratmel - Nice find on a 10 year old post!

@Ausman - Search "SB 25" in quotes.  Only one find - Color Vision series.  On the bottom of that page you have to expand System Operands-

image.png.6edd612e74182c34f8906d7dff5c95b8.png

 

As described in the post kratmel found, Unitronics thinks this bit is no longer needed so they probably forgot about it.  It's not like they don't have enough other things on their plate in R&D.  I'm glad Patrick asked the question, as it triggered my memory.

Joe T.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.