Hi, I am trying to decide how to program my Picaxe as a computer controlled Motor driver. I am using an 18x (with the power project board)
I want to have a simple program interect via serial & the existing cable.
I have a minorly complex algorithm written that allows the motors to interact with values hard set.
I have tested my code with the "simulate" mode. But when I run my code with a terminal session, I don't know if my data's getting in & I don't always get ANY data out. It seems that for whatever reason my code crash's & reset's rather than recieve data.
my code is below :
l2: 'l2 is serin point & main program
high 2
sertxd ("Gimme Data x,y",#b4,#b5)
sertxd (10,13)
serin 3,N4800,("xy"),b4,b5
low 2
pause 1000
goto l2
If what I am wanting to do, use a picaxe as CNC motor controll is not possible, Let me know. but I don't see why not. all the doc's hint that it should serial interface quite well. Or do i HAVE to re-wire it & not use the programming cable? the Documentation isn't clear about that. I ahve looked at the 2nd PDF page 140-147 numerous times & also page 42 - 45 of another PDF. Feel free to try to email me with any help, or request for more info.
I want to have a simple program interect via serial & the existing cable.
I have a minorly complex algorithm written that allows the motors to interact with values hard set.
I have tested my code with the "simulate" mode. But when I run my code with a terminal session, I don't know if my data's getting in & I don't always get ANY data out. It seems that for whatever reason my code crash's & reset's rather than recieve data.
my code is below :
l2: 'l2 is serin point & main program
high 2
sertxd ("Gimme Data x,y",#b4,#b5)
sertxd (10,13)
serin 3,N4800,("xy"),b4,b5
low 2
pause 1000
goto l2
If what I am wanting to do, use a picaxe as CNC motor controll is not possible, Let me know. but I don't see why not. all the doc's hint that it should serial interface quite well. Or do i HAVE to re-wire it & not use the programming cable? the Documentation isn't clear about that. I ahve looked at the 2nd PDF page 140-147 numerous times & also page 42 - 45 of another PDF. Feel free to try to email me with any help, or request for more info.