Start application automatically during controller boot-up



Tip


English •German



Start application automatically during controller boot-up


Description

It is possible to start any program automatically during the boot-up procedure of the KR C4 controller.


Precondition

•User group “Expert”


•Windows interface (CTRL+ESC)



Procedure

•Open the file StartKRC.exe.config in the directory C:\KRC\BIN.


•Enter the application that is to be started in the section <applications>.


•A “non-KUKA application” should not be inserted before the start of WorkVisualServiceHost.exe.


•The applications are started in the order of the entries in StartKRC.exe.config.



Syntax

<application filename="Filename.exe" arguments="-abc" waitAfterStart="10" waitType="WaitForIdle"

waitTimeOut="10" onStart="Run" onStop="End" mainWindowId=”Cross 3”/>


Parameters for applications




Element
 

Description
 


filename
 
Type: String

•Name and path of the application to be started. The path can also be specified relative to StartKrc.exe.

 

arguments
 
Type: String

•Argument string for the application to be started.

 

conditions
 
Type: String

•“NoKrcRunning”: The action is only executed if no kernel system is running.

 

waitAfterStart
 
Type: Int

•Time in seconds that the system waits after starting the application before starting the next process.

 

waitType
 
Type: Enum

•“NoWait”: The system does not wait (default).


•“WaitForIdle”: Once the application has been started, the system waits until the application is idle.


•“WaitForExit”: Once the application has been started, the system waits until the application is exited.


•“WaitForKrcReady”: The system waits until the SmartHMI sends a WM_KRC_HMI_READY signal.

 

waitTimeOut
 
Type: Int

•Timeout in seconds for waitType=“WaitForIdle” or “WaitForExit” or “WaitForKrcReady”

 

onStart
 
Type: Enum

•Action on KRC start.


•“None”: No action.


•“Run”: Application is started (default).


•“End”: Application is stopped.

 

onStop
 
Type: Enum

•Action on KRC stop.


•“None”: No action.


•“Run”: Application is started.


•“End”: Application is stopped (default).

 

mainWindowId
 
Type: String

•If this string is contained in the WindowText of a window belonging to the application, it is assumed that it

is the main window of the application to which the WM_CLOSE signal is sent on exiting. If the parameter is not

specified or is empty, the application is terminated by means of TerminateApplication.

 


Example


<configuration> 
 <kukaroboter.startkrc> 
 <applications> 
 <application internal="ClearRamDisk" conditions="NoKrcRunning"/> 
 <application filename="VxWin\UploadRTOS.exe" arguments="-faststart "-config '%INSTALLATIONDIR%

\ROBOTER\Config\System\%ENVPATH%\VxWin\VxWin.config' -file '%INSTALLATIONDIR%\ROBOTER\Config\System

\Common\VxWin\faststart.cfg' -vmf '%INSTALLATIONDIR%\VXWIN\Vmf.bin' -os '%INSTALLATIONDIR

%\ROBOTER\vxworks.bin' -startvmfos"" conditions="NoKrcRunning" waitAfterStart="2"/> 
 <application filename="VxWin\UploadRTOS.exe" arguments="-config "'%INSTALLATIONDIR%\ROBOTER\Config

\System\%ENVPATH%\VxWin\VxWin.config' -vmf '%INSTALLATIONDIR%\VXWIN\Vmf.bin'" "

%INSTALLATIONDIR%\ROBOTER\vxworks.bin"" conditions="NoKrcRunning" waitAfterStart="5"/> 
 <application filename="VxWin\UploadRTOS.exe" arguments="-faststart -once -nosleep -nowait"/> 
 <application filename="SmartHmi\SmartHMI.exe" waitType="WaitForKrcReady" timeOut="120" 

mainWindowId="SmartHMI"/> 
 <application filename="Cross3.exe" onStart="None" onStop="End" mainWindowId="Cross 3"/> 
 <application filename="Services\WorkVisualServiceHost\WorkVisualServiceHost.exe" 

servicename="WorkVisualServiceHost"/> 
<application filename="notepad.exe" arguments="xxx.txt" waitAfterStart="10" waitType="WaitForIdle" 

waitTimeOut="10" onStart="Run" onStop="End" mainWindowId="Cross 3"/> 
 <application filename="Services\scheduler\KUKASchedulerService.exe" servicename="KUKA Scheduler Service"/> 
 <application filename="C:\Windows\System32\Rundll32.exe" arguments="C:\Windows

\System32\advapi32.dll,ProcessIdleTasks"/> 
 <application filename="VxWin\UploadRTOS.exe" arguments="-x" onStart="None" onStop="Run" 

waitType="WaitForExit" timeOut="10"/> 
 </applications> 
 <behaviour timeOut="60" waitForPowerOk="1"/> 
 <trayiconvisibility trayIcon="true"/> 
 <diagnosis application="%INSTALLATIONDIR%\Util\KRCDiag\KRCDiag.exe" active="true" 
 </kukaroboter.startkrc> 
</configuration> 


1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值