bryan1
Well-Known Member
Hiya Guy's,
Well I finally found some time for my projects so I'm making up a small cnc machine. The first task is to make 1 axis and get the software all figured out. Tomorrow I'll be hooking up a bipolar (5 volts @ 1amp current) to the shaft via gearing to give me a higher resoultion and more torque. Now the shaft I made is an acme thread 1/2" x 10 TPI so one revoultion will be .1" or 2.54mm. I've spent nearly a week making everything up to an accuracy of 0.001" and when I install the thrust bearings on the threaded shaft I won't have any backlash as the nut and shaft I made is bloody accurate :twisted:.
Now for the question I plan on using a 16f877a or a 16f777 as the main microcontroller and in my square one book 'easy steppin' is a nice routine for ramping up, rapid traverse and ramping down to the destination but it can only input an 8 bit number as the code is designed around a 16f84. I need to input a 16 bit number as my slide has 360mm of travel. I've looked around the piclist and tried google but I couldn't find anything so I was hoping someone could provide a link or explain how I can accomplish my task of inputting a number bigger than 8 bits.
Cheers Bryan
Well I finally found some time for my projects so I'm making up a small cnc machine. The first task is to make 1 axis and get the software all figured out. Tomorrow I'll be hooking up a bipolar (5 volts @ 1amp current) to the shaft via gearing to give me a higher resoultion and more torque. Now the shaft I made is an acme thread 1/2" x 10 TPI so one revoultion will be .1" or 2.54mm. I've spent nearly a week making everything up to an accuracy of 0.001" and when I install the thrust bearings on the threaded shaft I won't have any backlash as the nut and shaft I made is bloody accurate :twisted:.
Now for the question I plan on using a 16f877a or a 16f777 as the main microcontroller and in my square one book 'easy steppin' is a nice routine for ramping up, rapid traverse and ramping down to the destination but it can only input an 8 bit number as the code is designed around a 16f84. I need to input a 16 bit number as my slide has 360mm of travel. I've looked around the piclist and tried google but I couldn't find anything so I was hoping someone could provide a link or explain how I can accomplish my task of inputting a number bigger than 8 bits.
Cheers Bryan