i am a student. i am using vb6 to get an agv running. using mscomm to speak to a main micro which then addresses motor boards. at present i am just testing 2 motors to see if the program will work. in my foward command button the code is as follows:
1 mscomm.output = "MOT1SPF1000"
2 for icount = 1 to 10
3 icount = icount +1
4 next icount
5 mscomm.output = "MOT2SPF1000"
(the string basically tells motor 1 to turn forward at speed 1000)
the motors work fine when addressed indivually
but since i added lines 2-5 only 1 motor spins and it doesnt stop
please could someone advise me on how to correct the program