I am working on my first Palletizing program with Melfa Basic VI. I've been trying to recreate a sample program from a Mitsubishi class and have a syntax error that I can't seem to resolve on my own. Will you all please take a look and let me know where I have gone wrong. Thank you.
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) 'This is where I am getting the syntax error
Mov P10, -5*1
Dly 0.50
Mvs P10
Dly 1.0
Mvs, -50*1
M1 = M1+1
If M1<=15 Then *Loop
End