You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
1.8 KiB
Plaintext
137 lines
1.8 KiB
Plaintext
version = 2021
|
|
[proc]
|
|
pid = 1013
|
|
type = 0
|
|
name = 到治具缓冲位
|
|
start =
|
|
pause =
|
|
step_count = 2
|
|
[step]
|
|
sid = 21301
|
|
bDisable = 0
|
|
desc = 到取料位上方
|
|
script:
|
|
if (t==1)
|
|
{//1号夹具
|
|
downh=st1
|
|
fixair = "治具气缸1"
|
|
}
|
|
elseif (t==2)
|
|
{//2号
|
|
downh=st2
|
|
fixair = "治具气缸2"
|
|
}
|
|
elseif (t==3)
|
|
{//3号
|
|
downh=st3
|
|
fixair = "治具气缸3"
|
|
}
|
|
elseif (t==4)
|
|
{//4号
|
|
downh=st4
|
|
fixair = "治具气缸4"
|
|
}
|
|
elseif (t==5)
|
|
{//5号
|
|
downh=st5
|
|
fixair = "治具气缸5"
|
|
}
|
|
elseif (t==6)
|
|
{//6号
|
|
downh=st6
|
|
fixair = "治具气缸6"
|
|
}
|
|
else downh=0
|
|
if (v==1)
|
|
{//1号吸嘴
|
|
a = "吸料上下气缸1"
|
|
b = "吸料真空1吸"
|
|
c = v1x
|
|
d = v1y
|
|
downh += v1z
|
|
e = "吸料真空1检测"
|
|
f = "吸料真空1破"
|
|
}
|
|
elseif (v==2)
|
|
{//2号
|
|
a = "吸料上下气缸2"
|
|
b = "吸料真空2吸"
|
|
c = v2x
|
|
d = v2y
|
|
downh += v2z
|
|
e = "吸料真空2检测"
|
|
f = "吸料真空2破"
|
|
}
|
|
elseif (v==3)
|
|
{//3号
|
|
a = "吸料上下气缸3"
|
|
b = "吸料真空3吸"
|
|
c = v3x
|
|
d = v3y
|
|
downh += v3z
|
|
e = "吸料真空3检测"
|
|
f = "吸料真空3破"
|
|
}
|
|
elseif (v==4)
|
|
{//4号
|
|
a = "吸料上下气缸4"
|
|
b = "吸料真空4吸"
|
|
c = v4x
|
|
d = v4y
|
|
downh += v4z
|
|
e = "吸料真空4检测"
|
|
f = "吸料真空4破"
|
|
}
|
|
script_end
|
|
node_count = 5
|
|
[node]
|
|
nid = 3130101
|
|
task = 1013
|
|
type = 27
|
|
state = 0
|
|
desc = node1
|
|
cmd = vlog("Wait-"+str(t),str(v)+"- go wait")
|
|
[node]
|
|
nid = 3130102
|
|
task = 1013
|
|
type = 27
|
|
state = 0
|
|
desc = node2
|
|
cmd = c += cameraoffsetx
|
|
[node]
|
|
nid = 3130103
|
|
task = 1013
|
|
type = 27
|
|
state = 0
|
|
desc = node3
|
|
cmd = d += cameraoffsety
|
|
[node]
|
|
nid = 3130104
|
|
task = 1013
|
|
type = 18
|
|
state = 0
|
|
desc = node4
|
|
cmd = 1056
|
|
[node]
|
|
nid = 3130105
|
|
task = 1013
|
|
type = 18
|
|
state = 1
|
|
desc = node5
|
|
cmd = 1053
|
|
[step]
|
|
sid = 21302
|
|
bDisable = 0
|
|
desc = end
|
|
script:
|
|
|
|
script_end
|
|
node_count = 1
|
|
[node]
|
|
nid = 3130201
|
|
task = 1013
|
|
type = 27
|
|
state = 0
|
|
desc = node1
|
|
cmd = vlog("Wait-"+str(t),str(v)+"-waiting")
|