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> 


本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/254668.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

C#using static

平常用法&#xff1a; using 命名空间&#xff1b; using System; Console.WriteLine("Hello&#xff0c;World&#xff01;");using static用法&#xff1a; C#6中支持这种写法&#xff0c;这样定义后可以可以访问类的静态成员 WriteLine是Console类的静态函数&am…

redis数据迁移

一&#xff1a;AOF方式 需求&#xff1a; 一个没有数据的redis。 清空redis数据方法 bash> echo "keys *" | redis-cli --raw -p 6378 |sed -r s/(.*)/redis-cli --raw -p 6378 del \1 /g |bash 1.备份 bash> redis-cli --raw -p 6378 redis> config get di…

阿里云OSS 上传文件SDK

Aliyun OSS SDK for C# 上传文件 另外&#xff1a;查找的其他实现C#上传文件功能例子&#xff1a; 1、WPF用流的方式上传/显示/下载图片文件(保存在数据库) &#xff08;文末有案例下载链接&#xff09; 2、WPF中利用WebClient向服务器上传文件 3、C#文件上传的简单实现 4、C#实…

关于level_idc和Profile_IDC的解释

2010-01-21 15:51:40| 分类&#xff1a; windows mobile开 |字号 订阅 Description: Set bitstream Profile IDC. Default is 88. Note: Some profiles cannot support certain features. See MPEG-4 AVC for supported features for each profile. Reference software may…

老婆的驾照要下来了,形容下我此刻的心情

&#xfeff;&#xfeff; 老婆的驾照要下来了&#xff0c;形容下我此刻的心情&#xff1a; 路上遇到的女人&#xff0c;大部分是不用眼睛和脑子开车的&#xff0c;完全是凭自己的感觉开车。凡是看到前车奇慢、路口犹豫不决、不打灯缓慢变线、不该…

ADO.NET改进防注入

static void Main1(string[] args) { //用户输入一个需要查询的条件 car表 Console.WriteLine("请输入"); string code Console.ReadLine(); SqlConnection conn new SqlConnection("server.;databasemydb;usersa;pwd100867"); SqlCommand cmd conn.Crea…

poj 2139

Floyd-Warshall模板题&#xff0c;我才刚学最短路。。。。 #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> using namespace std; const int maxn30050; int d[maxn][maxn]; int v,m,n; int a[maxn]; const int inf0…

C#使用了未赋值的局部变量

错误原因&#xff1a; 我们先看下例子&#xff1a; int A; Console.WriteLine("数字&#xff1a;{0:d}", A);//在控制台输出文本这时提示错误&#xff1a;错误 1 使用了未赋值的局部变量“A” 原因是C#在使用变量前必须要进行初始化。 解决 解决方案有两个 1、在…

EtherCAT伺服驱动器-如何选择硬件开发方案

&#xfeff;&#xfeff;EtherCAT伺服驱动器-如何选择硬件开发方案

Codevs 1689 建造高塔

1689 建造高塔时间限制: 1 s空间限制: 128000 KB题目等级 : **钻石 Diamond** 题目描述 Description n有n种石块&#xff0c;石块能无限供应。每种石块都是长方体&#xff0c;其中第i种石块的长、宽、高分别为li、wi、hi。石块可以旋转&#xff0c;使得其中两维成为长度和宽度&…

windows环境下OpenLDAP安装与客户端连接配置

2019独角兽企业重金招聘Python工程师标准>>> 1.下载安装OpenLDAP版本 C:\Users\Administrator>slapd -V OpenLDAP 2.4.42 Standalone LDAP Server (slapd) 2.安装过程中&#xff0c;全部用默认的操作执行即可。 3.修改OpenLDAP文件如下&#xff1a; # MDB Backen…

主流开源编解码器Xvid,x264,ffmpeg 性能对比

如有转载请注明出处&#xff1a;孔祥文博客http://kswapd.cublog.cn Xvid是基于MPEG4协议的编解码器&#xff0c;x264是基于H.264协议的编码器&#xff0c;ffmpeg集合了各种音频&#xff0c;视频编解码协议&#xff0c;通过设置参数可以完成基于MPEG4,H.264等协议的编解码&…

halcon标定后改变世界坐标系参考点方法

halcon相机标定完成后&#xff0c;世界坐标系原点在标定板的中间&#xff0c;如果要自定义坐标系原点该如何操作 如图&#xff1a; 方法1 使用仿射变换 *pose_to_hom_mat3d (FinalPose, HomMat3D) *hom_mat3d_translate_local (HomMat3D, dx, dy, 0, HomMat3DTranslate) *hom_…

Oracle 【IT实验室】数据库备份与恢复之:如何对Oracle数据库文件进行恢复与备份...

任何数据库在长期使用过程中&#xff0c;都会存在一定的安全隐患。对于数据库管理员来说不能仅寄希望于计算机操作系统的安全运行&#xff0c;而是要建立一整套的数据库备份与恢复机制。当数据库发生故障后&#xff0c;希望能重新建立一个完整的数据库&#xff0c;该处理称为数…

vue刷新当前路由:router-view 复用组件时不刷新的3种解决方案总结

vue-router是Vue.js官方的路由插件&#xff0c;它和vue.js是深度集成的&#xff0c;适合用于构建单页面应用。vue的单页面应用是基于路由和组件的&#xff0c;路由用于设定访问路径&#xff0c;并将路径和组件映射起来。传统的页面应用&#xff0c;是用一些超链接来实现页面切换…

KUKA---US2电源的安全属性-------老款硬线连接实现的DRIVE安全STO SBC 、新款基于Safety over EtherCAT 网络帧实现的DRIVE安全STO SBC

安全双回路的监控&#xff1a;&#xff08;工业上的安全&#xff0c;是指安全等级&#xff0c;没有绝对的安全&#xff09; 1. 机械式&#xff1a;监控关断继电器的辅助反馈触点&#xff0c;这个关断继电器包含机械联锁触点&#xff0c;这样反馈触点和主触点可以同步开关动…

C#6.0中$的用法

C#6.0中$的用法 这里注意只有VS2015及以上VS版本才支持这样写&#xff01; 如果使用vs2015以下版本就去用string.format()吧&#xff01; //C#6.0中$的用法&#xff1a;是为了替代string.format();//原先赋值需要占位符和变量&#xff0c;当需要拼接多个变量会造成语句过长等不…

Oracle密码过期问题 ORA-28001:the password has expired

如果已经过期了&#xff0c;首先需要修改密码&#xff0c;然后设置密码为无限期。修改以sys用户登陆。 修改密码&#xff1a;alter user username identified by password 密码可以和之前的密码相同也可以不同。 修改数据库密码为无限期&#xff1a; Oracle的密码过期规则是用…

X11硬线接口信号 与Profisafe安全输入输出信号之间的区别与比较

&#xfeff;&#xfeff;X11硬线接口信号 与Profisafe安全输入输出信号之间的区别与比较 Profisafe安全输入信号US2信号有待深入&#xff08;通过外部PLC &#xff1a;&#xff09; &#xfeff;&#xfeff;

预处理指令pragma常见用法集锦(#pragma once、#pragma comment和#pragma warning)

#pragma once&#xff1a; 这是一个比较常用的指令,只要在头文件的最开始加入这条指令就能够保证头文件被编译一次&#xff0c;避免文件被重复包含。 *********************************** 例如 ***************************************** 头文件中的 #if _MSC_VER > 100…