CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sat Nov 18, 2017 5:26 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Nov 10, 2015 9:24 pm 
Offline
User avatar

Joined: Wed Aug 26, 2015 2:32 pm
Posts: 5
Hi everyone. I already found out how to make dialogs to work in WebVisu. I was also able to create placeholder visualizations. So basically:

- Dialogs are 'popup' windows that you can call with a user input (like a button) while defining input parameters that can be used on it. The user can then interact with the dialog window and, after confirming on a 'OK' button, write values defined as output parameters to the application. I noticed that while the dialog is open, no values are updated. They only do so after pressing the 'OK' button.

- Placeholder objects are visualizations that you create normally, but inserted in another visualization with a frame element. The frame allows you to insert any application variable to replace the placeholder's variables and they keep updating continuously while in runtime, but it is always visible on the screen just like any other element.

What I need is basically both concepts in one: a placeholder that opens in a dialog window over the current visualization and keeps updating the variables in runtime. The 'OK' button would only be a way to close the popup. Can anyone figure this out?

Thanks in advance.


Top
   
PostPosted: Wed Nov 11, 2015 10:38 am 
Offline

Joined: Fri Aug 07, 2015 9:59 pm
Posts: 57
Hi.
Maybe you could look at the example 'VisuDialogST' in the Store. May be the application 'DialogVarInOut' could be something you are looking for.

regards


Top
   
PostPosted: Wed Nov 11, 2015 12:20 pm 
Offline
User avatar

Joined: Wed Aug 26, 2015 2:32 pm
Posts: 5
learnetk wrote:
Hi.
Maybe you could look at the example 'VisuDialogST' in the Store. May be the application 'DialogVarInOut' could be something you are looking for.

regards


Thank you, I will look that for sure.


Top
   
PostPosted: Thu Nov 12, 2015 5:33 pm 
Offline
User avatar

Joined: Wed Aug 26, 2015 2:32 pm
Posts: 5
Okay, I was trying to understand the 'DialogVarInOut' example and, well, I got confused. It uses Event Handlers to detect that an edit box was just used and then moves the value of the variable through another variable that works as a pointer. It looks like a lot of trouble to do something that, at first sight, should be simple. You need to implement methods and some variables just to make it happen. Maybe I just didn't get it yet, and once I do, I will find it quite simple, but other SCADA softwares are doing this very straightforwarded.

The example in question shows the use of Edit Event Handlers. On my studies I am trying to create a command popup window with buttons and displays of status of equipments, and I wanto to make it a placeholder for all equipments of that kind. And I want it to input and output theses variables in real time, not only when I press OK. A very common application. I am not using edit boxes, only ghaphical representations of buttons. I think I should use the Mouse Event Handler, then. I looked into the store and found the 'Visu Event Handler' example with some use of it, but I didn't get if it works as a trigger to the user clicking at a specific button, only saw it to be detecting if the user used the mouse button.

I think there must be a easier way to do this. I would appreciate any help.


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Thu Aug 24, 2017 12:18 pm 
Offline

Joined: Wed May 03, 2017 11:53 am
Posts: 12
darius_dan, do you figure it out finally?

I'm trying to do something similar to that and I'm very interested in your experience with the problem.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 4 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited