CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon Dec 17, 2018 10:57 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Aug 16, 2018 1:28 pm 
Online
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 113
With Visu Utils library it's very easy to open dialog from code.
But how I can close it with this library?


Last edited by e.kislov on Mon Aug 20, 2018 5:20 am, edited 1 time in total.

Top
   
PostPosted: Mon Aug 20, 2018 5:19 am 
Online
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 113
Edwin, hope on your advice. :P

I need something like that:


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


Top
   
PostPosted: Fri Aug 24, 2018 5:15 pm 
Online
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 113
Any ideas? :?:


Top
   
PostPosted: Fri Aug 24, 2018 11:51 pm 
Offline

Joined: Tue Dec 03, 2013 11:52 pm
Posts: 94
I have not used visu utils but this is how I have closed dialogs in the past using this function:
Attachment:
CloseVisuDialog.PNG


*This function needs to be called from the same task as your VisuElems.Visu_Prg*
We had a button that set the PLC_PRG.xCloseDialog to TRUE
Attachment:
CloseVisuDialogCall.PNG


My understanding is you can't use the "CurrentVisu" Variable when using this. Hope this helps a little.


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


Top
   
PostPosted: Sat Aug 25, 2018 3:18 am 
Online
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 113
Thanks, it's seems like a solution.
Your function is not use sDialogName (so it works as "CloseAllDialogsForAllClients"), but I understand how I should edit code for my task.
I'm very appreciated.

I hope 3S include same FB in Visu Utils in next SP's.


Top
   
PostPosted: Mon Aug 27, 2018 4:24 pm 
Offline

Joined: Sun Feb 04, 2018 1:42 pm
Posts: 4
Does anyone knows if this works also in TwinCat 3?


Top
   
PostPosted: Mon Aug 27, 2018 5:07 pm 
Offline

Joined: Tue Dec 03, 2013 11:52 pm
Posts: 94
You are correct e.kislov and sorry about that. Was a solution for something else we were experimenting with. To do a specific dialog you would change it to this:
Attachment:
CloseVisuDialogByName.PNG


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


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 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