- Home
- MPR to G-code converter
- Format guide
MPR and G-code
A woodWOP MPR program says what one make of machine should do in its own words. G-code is the shared vocabulary most routers understand, at the cost of everything the machine's own format could take for granted.
What carries over
The panel size, every straight cut, every arc with its centre, every hole with its depth, and the tool number, spindle speed and feed where the source gives them. Arcs are written as G2 and G3 with the centre as an I and J offset from where the arc starts, which is the spelling every controller accepts.
What has to be assumed
The tool travels between cuts 5 mm above the panel, plunges at the feed given and goes 1 mm past the underside for a through cut. A feed given as a numbered class becomes a guess at millimetres a minute, and the converter says so. None of these is in the source, so each is written plainly where you can change it.
What is left out
Tool changes are written as T and M6 and left to the controller. Compensation is written as G41 or G42, again for the controller to work out from its tool table. Mirroring is not written at all: every coordinate comes out as the machine reaches it. Anything the format says in words G-code has none for is refused, not dropped.