Hello Guest it is April 20, 2021, 06:28:40 PM

Author Topic: understanding how mach process works.  (Read 1298 times)

0 Members and 1 Guest are viewing this topic.

understanding how mach process works.
« on: December 02, 2016, 01:39:02 PM »
Hello i am new to diy cnc and i was thinking of using mach but i wanted to under stand how it works before i go further. I have tried to research as much as i can but im stuck on some aspects. I have programmed other machines and do allot of tech work but without physically using mach im stuck. Any help would be appreciated.

1 obviously you put a gcode file from a cam software into mach, but how is the information sent to the stepper/servo controller? (in gcode or is it decoded into machine language or something)

2. at which point in the processes are the gcodes decoded into a usable signal for the steppers/servos?

3. is it a digital signal with packets being used throughout the machine or at somepoint does the machine use electrical pulses?

4. if servos are being used does the positioning feedback get sent to the servo controller or to mach?

Thank you guys allot i figure this would be easy questions for a seasoned diy machinist.

Offline RICH

  • *
  •  7,419 7,419
    • View Profile
Re: understanding how mach process works.
« Reply #1 on: December 02, 2016, 04:03:41 PM »
Mach is software which provides for the control of different CNC machines. Mach is configured / setup for a machine and in that it knows how to send the appropriate information / commands to the hardware. The hardware consists of the drives or whatever which run the motors sending the proper signals to the motors which move the axes of the machine.
Gcode are instructions that Mach ( controlling software ) understands and thus sends that information in the proper way to the drive.
The closed loop of servos is done by the servo drive.  

For more information please read the different Mach manuals, watch the videos, etc.


Offline ger21

  • *
  •  6,289 6,289
    • View Profile
    • The CNC Woodworker
Re: understanding how mach process works.
« Reply #2 on: December 04, 2016, 08:05:09 AM »
1) Individual step and direction signals are sent to the drives.

2) While the g-code is running.

3) The direction signal is either 0V or 5V, and the step signals are pulses.

4) Mach3 only sends step and direction signals, so the feedback goes to the drive.
There is an exception here, if you use a Mach3 compatible motion controller that supports analog servos.

2010 Screenset

JointCAM Dovetail and Box Joint software