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
|
1 Answer
Reset to default 0Rookie 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.
P10 = (Plt1, M1)
– Lubomyr Pryt Commented Feb 14 at 18:35