CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Thu Sep 20, 2018 9:03 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Close dialog from ST
PostPosted: Thu Mar 08, 2018 12:04 pm 
Offline

Joined: Wed Mar 07, 2018 4:55 pm
Posts: 1
Hlelo,
I am calling an ST script from a Visualization. Is there any way to close the current Dialog Visualization that a certain condition?
Something like:

Code:
(OnDialogClosed method:)
IF DataResult = OK THEN
// Close Dialog
ELSE
// Don't close dialog
ErrorFlag := TRUE;
END_IF


Top
   
 Post subject: Re: Close dialog from ST
PostPosted: Sun Mar 11, 2018 7:11 pm 
Offline

Joined: Fri Feb 07, 2014 7:21 am
Posts: 81
Hello,
maybe this example application would help:
https://store.codesys.com/visu-dialog-st.html
Regards
plcmax


Top
   
 Post subject: Re: Close dialog from ST
PostPosted: Mon Mar 12, 2018 5:44 am 
Offline

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 85
Also there should be a simple way to do it with Visu Utils library, but unfortunately there is no example in Store.


Top
   
 Post subject: Re: Close dialog from ST
PostPosted: Mon Mar 12, 2018 7:05 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2837
Hi,
check the third application (Version 1.0.0.3) in the device tree of this example...

BR
Edwin


Top
   
 Post subject: Re: Close dialog from ST
PostPosted: Mon Mar 12, 2018 10:46 am 
Offline

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 85
Thanks, Edwin - i'm not thinking that it will be update this way.

But I need to say that VisuUtils not only about dialogs (also transfer files, iterate clients) - so I suggest to create individual example.


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 3 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