Hello,
I need some help from you guys. I want to program my AL5B - Robot arm kit to move all the steps for at least 5 times and stop. what the easy command that i can make it repeat the steps?
here is my coding for my robot:
Hello,
I need some help from you guys. I want to program my AL5B - Robot arm kit to move all the steps for at least 5 times and stop. what the easy command that i can make it repeat the steps?
here is my coding for my robot:
Why not just use another for loop? Something like:
[code]Steps Bytetable 148, 229, 243, 107, 189, | ;Step 0
148, 200, 197, 93, 189, | ;step 1
148, 145, 167, 121, 189, | ;step 2
189, 113, 132, 116, 109, | ;step 3
189, 94, 118, 122, 109, | ;step 4
189, 94, 118, 122, 189, | ;step 5
189, 136, 159, 119, 189, | ;step 6
160, 146, 142, 92, 189, | ;step 7
160, 128, 163, 146, 189, | ;step 8
160, 128, 163, 146, 109, | ;step 9
160, 181, 211, 137, 109, | ;step 10
160, 167, 164, 105, 109, | ;step 11
131, 127, 178, 161, 109, | ;step 12
131, 108, 149, 152, 109, | ;step 13
131, 108, 149, 152, 189, | ;step 14
131, 152, 167, 124, 189, | ;step 15
131, 180, 186, 113, 189, | ;step 16
164, 125, 136, 122, 189, | ;step 17
164, 129, 165, 153, 189, | ;step 18
164, 129, 165, 153, 109, | ;step 19
164, 214, 216, 113, 109 ;step 20
TimeAndPause Wordtable 1000, 500, | ;step 0
540, 500, | ;step 1
750, 500, | ;step 2
1170, 500, | ;step 3
300, 500, | ;step 4
180, 500, | ;step 5
570, 500, | ;step 6
810, 500, | ;step 7
570, 500, | ;step 8
180, 500, | ;step 9
660, 500, | ;step 10
480, 500, | ;step 11
1110, 500, | ;step 12
240, 500, | ;step 13
180, 500, | ;step 14
750, 500, | ;step 15
390, 500, | ;step 16
990, 500, | ;step 17
210, 500, | ;step 18
180, 500, | ;step 19
1050, 500 ;step 20
JointNB con 5
SSC32 con p8
StepIndex var Word
LoopCnt var Word
pause 500
Main
For LoopCnt = 0 to 5
For StepIndex = 0 to 20
serout SSC32,i38400,"#0P", DEC Steps(StepIndex * JointNB) * 10, |
" #1P", DEC Steps(StepIndex * JointNB + 1) * 10, |
" #2P", DEC Steps(StepIndex * JointNB + 2) * 10, |
" #3P", DEC Steps(StepIndex * JointNB + 3) * 10, |
" #4P", DEC Steps(StepIndex * JointNB + 4) * 10, |
" T", DEC TimeAndPause(StepIndex * 2),dec i,13]
Pause TimeAndPause(StepIndex * 2) + TimeAndPause(StepIndex * 2 + 1)
next
next
end
[/code]
Note: Just edited your stuff on the fly so may need a little help
Thank you so much, kurte
Hello,
I try to program the BAP28 with the code, it is working but the robot moving in slow motion. so i use this code instead; did any idea if i can make it more simple?