本文主要是介绍库卡机器人信息显示和按键选择,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
运行上面程序后会显示如下提示框
DECL KrlMsgDlgSK_T softkey[7]
DECL KRLMSG_T MyMessage
DECL EKRLMsgType Type
DECL int result1
DECL KRLMSGOPT_T Myoptions1
DECL KRLMSGPAR_T Para[3]
DECL bool resultsoftkey[1] = {sk_type #value, sk_txt[] "Open"}
softkey[2] = {sk_type #value, sk_txt[] "Close"}
softkey[3] = {sk_type #value, sk_txt[] "Show"}
softkey[4] = {sk_type #value, sk_txt[] "Hide"}
softkey[5] = {sk_type #empty, sk_txt[] "Open1"}
softkey[6] = {sk_type #empty, sk_txt[] "Close1"}
softkey[7] = {sk_type #empty, sk_txt[] "Show1"}MyMessage={modul[]"USER",Nr 103,msg_txt[]"MaxForceLimit"}
Myoptions1= {VL_STOP true, Clear_P_Reset true, Clear_P_SAW false, Log_to_DB false}
result1 = Set_KrlMsg(#NOTIFY, MyMessage, Para[ ], Myoptions1)
result1=SET_KRLDLG(MyMessage,Para[ ],softkey[ ], Myoptions1)
result = EXISTS_KRLDLG(result1, answer)
;result = Clear_KrlMsg(result1)
softkey 为定义按键的属性

MyMessage 为定义信息显示属性



MyOptions1为通用信息提示选项的结构
set_KrlMsg为设置或生成一则对话

Set_KrlDlg为设置并检验一则对话


Exists_KrlDlg( )可检查一则特定的对话是否还存在。 即检查 该对话是否还在信息缓存器中。

Clear_KrlMsg删除一条信息提示

使用此指令后不会有按键弹窗;
这篇关于库卡机器人信息显示和按键选择的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!