PaulMc
PaulMc

Reputation: 109

Mitsubishi Melfa Basic VI - Palletizing - Syntax Error assistance

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

Upvotes: 0

Views: 19

Answers (1)

PaulMc
PaulMc

Reputation: 109

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.

Upvotes: 0

Related Questions