1.今天为大家介绍karel表单程序,fanuc机器人如果需要做一些表单,需要大家做一些表单程序,再用karel程序去调用,生成它。
2.下面给大家介绍一个karel表单还有一些解释。
* Dictionary Form File: form.ftx
*
* Generate form.kl which should be included in your KAREL program
.kl form---生成一个form的kl文件
.form---表单名称
$-,form2----表单含义
&home &reverse " Title here" &standard &new_line---home为窗口中的主光标&reverse为反转显示属性
" label here " &new_line---生成一个为label here的新行
" Integer: " "-%10d" &new_line
" Integer: " "-%10d(1,32767)" &new_line
" Real: " "-%12f" &new_line
" Bolean: " "-%10B(bool_fkey)" &new_line
" String: " "-%-20k" &new_line
" String: " "-%12k(clear)" &new_line
" Byte: " "-%10b" &new_line
" Short: " "-%10h" &new_line
" DIN[1]: " "-%10P(dout_fkey)" &new_line
" AIN[1]: " " "-%10pu" " " "-%1S(sim_fkey)" &new_line
" AOUT[2]: " " "-%10px" " " "-%1S(sim_fkey)" &new_line
" Enum Type: " "-%8n(enum_fkey)" &new_line
" Enum Type: " "-%6w(enum_subwin)" &new_line
" Enum Type: " "-%6V(ENUM_VAR)" &new_line
" Prog Type: " "-%12pk(1)" &new_line
" Prog Type: " "-%12pk(2)" &new_line
" Prog Type: " "-%12pk(6)" &new_line
" Prog Type: " "-%12pk(16)" &new_line
^form2_fkey
.endform
$-,form2_fkey
"EXIT" &new_line
*Allows you to specify the labels for F4 and F5 function keys
$-,bool_fkey
"FALSE" &new_line * F5 key label, value will be set FALSE----false按钮
"TRUE" &new_line * F4 key label, value will be set TRUE----true按钮
* Allows you to specify the labels for F4 and F5 function keys
$-, dout_fkey
"OFF" &new_line * F5 key label, value will be set OFF---off按钮
"ON" &new_line * F4 key label, value will be set---on按钮
ON
*Allows you to specify the labels for F4 and F5 function keys
$-, sim_fkey
" UNSIM " &new_line * F5 key label, port will be unsimulated---unsim按钮
"SIMULATE" &new_line * F4 key label, port will be simulated--simulate按钮
*Allows you to specify the labels for 5 function keys
$-, enum_fkey
"FINE" &new_line * F1 key label, value will be set to 1---fine按钮
"COARSE" &new_line * F2 key label, value will be set to 2---coarse按钮
"NOSETTL" &new_line * F3 key label, value will be set to 3---nosettl按钮
"NODECEL" &new_line * F4 key label, value will be set to 4---nodecel按钮
"VARDECEL" &new_line * F5 key label, value will be set to 5---vardecel按钮
*Allows you to specify a maximum of 35 choices in a subwindow
$-,enum_subwin
"Red" * value will be set to 1
$-
"Blue" * value will be set to 2
$-
"Green"
$-
"Yellow"
$-
"\a" * specifies end of subwindow list
* Allows you to specify the choices for the subwindow in a
* variable whose type is an ARRAY[m] of STRING[n].
$-,enum_var
"RUNFORM" &new_line * program name of variable
"CHOICES" &new_line * Variable name containing choices
3.下面是是表单一些数组的解答
4.下面是形式表单FTX文件的生成方式。
这就是生成成功,下期为大家带来karel程序的调用表单。