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 Fri Apr 19, 2019 8:22 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Feb 05, 2019 5:49 pm 
Offline

Joined: Thu Dec 06, 2018 2:48 pm
Posts: 6
I want to open an executable file via Codesys (3.5 SP13). I installed the SysOS23 library (3.5.13.0) in my Codesys ControlWin program. I have tried all the instructions available in this library, and all instructions open the program, but without opening the program window. That is, only in Task Manager you can see that the program has been opened.

Attachment:
Task Manager.png


I tried to open the .EXE file using the "ExecutePlcProgram" in a Button, but it had the same behaviour.
I tried to embed the EXE file in the program without success too.

How do I make the application window to open?

PROGRAM POU
VAR
CRODA: BOOL;
Result: DINT;
Teste2: UDINT;
Resultado: POINTER TO UDINT;
END_VAR


IF CRODA THEN
Result := _(pszCommand:= 'C:\Windows\Notepad.exe');
Teste2 := _(pszComand:= 'C:\Windows\Notepad.exe', pResult:= Resultado);
SysCreateProcess(pszCommandLine:= 'C:\Windows\Notepad.exe', bHide:= FALSE);
SysCreateProcess(pszCommandLine:= 'C:\Windows\Notepad.exe', bHide:= TRUE);
CRODA := FALSE;
END_IF


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  [ 1 post ] 

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