写自己的姓名首字母(只用DO while—loop)
Function main
Pallet 1, P1, P2, P3, P4, 5, 5
Pallet 2, P5, P6, P7, P8, 4, 5
Pallet 3, P9, P10, P11, P12, 7, 5
Integer a, b, c, d
b = 0
c = 0
d = 0
Go P0
For a = 1 To 15
b = b + 1
d = d + 1
c = c + 1
Go Pallet(1, b) +Z(20)
Move Pallet(1, b)
If a <= 10 Then
Do While c = 4 Or c = 8 Or c = 12 Or c = 16 Or c = 10 Or c = 6 Or c = 3 Or c = 14 Or c = 20 Or c = 19
c = c + 1 不放的点
Loop
Jump3 Pallet(1, b) +Z(20), Pallet(2, c) +Z(20), Pallet(2, c)
Move Pallet(2, c) +Z(20)
ElseIf a > 10 And a <= 15 Then
Do While d <> 4 And d <> 10 And d <> 12 And d <> 16 And d <> 20 And d < 21
d = d + 1 要放的点
Loop
Jump3 Pallet(1, b) +Z(20), Pallet(3, d) +Z(20), Pallet(3, d)
Move Pallet(3, d) +Z(20)
EndIf
Next a
Go P0
Fend
了解更多机器人资讯点击:EPSON机器人、爱普生机器人、爱普生SCARA机器人