How do I make this whole program 20 loops?

39 views
Skip to first unread message

rab...@gmail.com

unread,
Jan 10, 2013, 12:32:34 PM1/10/13
to velmex-...@googlegroups.com
PM-0, ;Select and Clear Program 0
S1M2000, ;Set Motor 1 Speed
S2M2000, ;Set Motor 2 Speed
LM0, ;Set Loop Marker
I1M2, ;Motor 1 Move 1 MM with E01 Leadscrew
U5, ;Output 1 On (Trigger External Device)
P-100, ;Pause 10 mili-second
; ;OR
; U1, ;Wait for Input 1 to continue
U4, ;Output 1 Off
LA100, ;Loop to Loop-Marker 100 times
I1M-200, ;Move -ve direction 200 on x axis
I2M20, ;Motor 2 Move 1 MM with E01 Leadscrew

VelmexControls

unread,
Jan 10, 2013, 1:38:15 PM1/10/13
to velmex-...@googlegroups.com, rab...@gmail.com
Hi Rabin,
Add "LA20" to the end of the program

Charles Emrick

unread,
Jan 10, 2013, 2:10:32 PM1/10/13
to velmex-...@googlegroups.com, rab...@gmail.com
Don't forget that if you do not want Motor 2 to move 1 last time at the end of the run to use "L" instead of "LA" for example

LA20, ;Loop the whole sequence 20x and Motor 2 moves on last loop

But if you use "L" then it would be

L20, ;Loop the whole sequence 20x and Motor 2 does not move on last loop

Reply all
Reply to author
Forward
0 new messages