Hello Guest it is November 18, 2019, 11:40:28 AM

Author Topic: Use brains to directly modify motor step output  (Read 2194 times)

0 Members and 1 Guest are viewing this topic.

Use brains to directly modify motor step output
« on: August 17, 2014, 03:35:02 PM »
I am in the early stages of construction of my cnc laser cutter and wanted to set up my x and y axis as a mixed control of two servo motors. This meaning I would have my Y axis controlled by simultaneously running both motors forwards or backwards. The X axis would be differential control where running the motors in opposite direction would actuate that axis on it's own. Therefore I need to basically map my outputs of the laser to where the G-code commands a Y axis move, this would directly feed into both motors, then the X axis move would add steps to one motor and subtract from the other in a linear manner.

This is a very simply mix and figured it could be handled by the CNC Controller and not have to be dealt with in a much more complicated manner via G-code generation as it is a very simply add/subtract mix model.

Any thoughts on how to do this? I posted in brain as it made the most sense to me at this time.

Offline Tweakie.CNC

*
  • *
  •  8,002 8,002
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Use brains to directly modify motor step output
« Reply #1 on: August 18, 2014, 02:27:15 AM »
Just my opinion...

Because it's a lot more than just modifying a motor's step output - the two motors have to be simultaneously driven in the same or opposite directions etc. "brains" is not going to help you.
The only satisfactory method wit H-Bot control and Mach3 is to modify your CAD/CAM's post processor to write the commands to handle the two motors in place of each conventional X - Y axis move that would normally be written to the Gcode.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.