最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

robotics - Mitsubishi Melfa Basic VI - Palletizing - Syntax Error assistance - Stack Overflow

programmeradmin3浏览0评论

I am currently working on my first Robot Palletizing program using Mitsubishi's Melfa Basic VI. I have a robot set up in the shop for testing. The test program shown below is basically right out of a Mitsubishi training document. I'm getting a Syntax error at the line that contains P10 = (Plt1, M1). Thank you in advance.

Servo On
Wait M_Svo = 1
Base 0
Ovrd 50
*Define
Def Plt 1, p2, p3, p4, p5, 3, 5, 2
    M1 = 1
*Loop
Mov p1, -50*1
Dly 0.50
Mvs p1
Dly 1.00
Mvs, -50*1
P10 = (Plt1,M1)
Mov P10, -5*1
Dly 0.50
Mvs P10
Dly 1.0
Mvs, -50*1
M1 = M1+1
If M1<=15 Then *Loop
End

I am currently working on my first Robot Palletizing program using Mitsubishi's Melfa Basic VI. I have a robot set up in the shop for testing. The test program shown below is basically right out of a Mitsubishi training document. I'm getting a Syntax error at the line that contains P10 = (Plt1, M1). Thank you in advance.

Servo On
Wait M_Svo = 1
Base 0
Ovrd 50
*Define
Def Plt 1, p2, p3, p4, p5, 3, 5, 2
    M1 = 1
*Loop
Mov p1, -50*1
Dly 0.50
Mvs p1
Dly 1.00
Mvs, -50*1
P10 = (Plt1,M1)
Mov P10, -5*1
Dly 0.50
Mvs P10
Dly 1.0
Mvs, -50*1
M1 = M1+1
If M1<=15 Then *Loop
End
Share Improve this question asked Feb 14 at 18:25 PaulMcPaulMc 10911 bronze badges 2
  • There are spaces in the manual. Try P10 = (Plt1, M1) – Lubomyr Pryt Commented Feb 14 at 18:35
  • you question fits better to robot-forum – Jivopis Commented Feb 14 at 21:19
Add a comment  | 

1 Answer 1

Reset to default 0

Rookie move on my part.
Melfa Basic VI requires you to have a space in between the Plt cmd and the pallet designation. My code has it defined properly -Plt 1 at line 6, but then later in the program (at the syntax error, line 14) I have it as Plt1 (no space).

I hope this helps someone else out down the road.

发布评论

评论列表(0)

  1. 暂无评论