日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Start application automatically during controller boot-up

發(fā)布時間:2023/12/10 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Start application automatically during controller boot-up 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.



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>

總結

以上是生活随笔為你收集整理的Start application automatically during controller boot-up的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。