Start application automatically during controller boot-up

原创 2016年06月01日 15:12:42



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> 


第一次启动springboot的辛酸历程

第一次集成springboot的心酸历程
  • zhang168
  • zhang168
  • 2016年05月16日 12:11
  • 44514

STM32 HSE初始化失败的解决以及HSI初始化

偶然遇到一个问题,假设HSE初始化失败怎么办,库函数内没有提供处理只是写了    if (HSEStatus == (uint32_t)0x01) { 。。。 }  else   { ...
  • louyangyang91
  • louyangyang91
  • 2016年04月21日 15:35
  • 1569

Tomcat探秘(4):tomcat启动过程详述

熟悉Tomcat的工程师们,后者从事Java开发的,肯定都知道Tomcat是如何启动和停止的。在Tomcat源码包里面有个bin目录,该目录下放置了一些很重要的脚本,Tomcat启动和停止的脚本程序就...
  • andamajing
  • andamajing
  • 2016年06月11日 12:13
  • 6120

Windows CE: Programmatically Setting Up an Application to Auto Start

Last week I needed to write an application for my Electrical Engineer to run at boot up to test some...
  • achellies
  • achellies
  • 2011年05月13日 14:18
  • 573

Vino& VNC server auto start after Ubuntu boot up

remote login problem there are two kinds of remote desktop connection server on Ubuntu:Vino and VNC...
  • flxue
  • flxue
  • 2016年07月08日 14:16
  • 638

About UID and How to autostart an application on boot up in 3rd- Startup List Management API

Overview UID of self-signed applications Description S60 3rd Edition introduces mandatory signing fo...
  • cyforce
  • cyforce
  • 2011年04月04日 00:11
  • 830

xcode自动选择证书 Setting up Xcode to automatically manage your provisioning profiles

从xcode3时代习惯了手动选择证书,即 Provisioning Profile和 Code Signing Identify.而随着团队扩大,应用量增多,需要管理的证书也越来越多,每次从长长的li...
  • imanapple
  • imanapple
  • 2015年08月18日 18:07
  • 6705

Describes a way to automatically generate an application bui

  • 2006年02月23日 09:05
  • 34KB
  • 下载

On SDK version 23 and up, your app data will be automatically backed up and restored on app install.

1.首先来看看看AndroidStudio对这个问题的详细介绍: 导致这样的问题是你的menifest文件中的application 中android:allowBackup="true";...
  • qq_17338093
  • qq_17338093
  • 2017年02月17日 11:54
  • 1070

A child container failed during start tomcat启动报错

严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catali...
  • zhoumengshun
  • zhoumengshun
  • 2017年06月28日 16:57
  • 1396
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Start application automatically during controller boot-up
举报原因:
原因补充:

(最多只允许输入30个字)