CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Thu Apr 27, 2017 5:55 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Nov 28, 2016 9:05 am 
Offline

Joined: Tue Oct 04, 2016 10:13 am
Posts: 17
Here is a simple example, how to open a dialog from your program, e.g a notification, i'm not sure about my method, maybe experts can tell if i did it in a right way, thanks


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


Top
   
PostPosted: Mon Nov 28, 2016 9:27 am 
Offline

Joined: Tue Oct 04, 2016 10:13 am
Posts: 17
AlexD wrote:
Here is a simple example, how to open a dialog from your program, e.g a notification, i'm not sure about my method, maybe experts can tell if i did it in a right way, thanks

changed a little bit, please download again


Top
   
PostPosted: Mon Nov 28, 2016 9:43 am 
Offline

Joined: Tue Oct 04, 2016 10:13 am
Posts: 17
Please redact openDialog function must be:
FOR i:=-1 TO 15 DO
IF GVL.g_pData[i]<>0 AND_THEN GVL.g_ive[i]<>0 THEN
IF NOT (GVL.g_pData[i]^.GlobalData.GlobalClientID=i)THEN
GVL.g_pData[i]:=0;
GVL.init[i]:=FALSE;
GVL.g_aClientIds[i]:=FALSE;
GVL.g_ive[i]:=ive;
END_IF
IF GVL.g_aClientIds[i] THEN
CONTINUE;
END_IF
GVL.g_aClientIds[i]:=TRUE;
__TRY
NewStDialog(GVL.g_pData[i],GVL.g_ive[i],'ST Dialog','Hi!',0,0);
__CATCH(exc)
__ENDTRY
END_IF
END_FOR


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  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
cron
Powered by phpBB® Forum Software © phpBB Limited