CAM Custom: Difference between revisions

From FreeCAD Documentation
mNo edit summary
mNo edit summary
Line 8: Line 8:
This tool inserts a path object which is built from hand coded custom G-code.
This tool inserts a path object which is built from hand coded custom G-code.


Because the Custom G-Code command does provide a link to a Tool Controller, the if a Tool is involved in the custom G-Code, the Tool index must be written, along with the Spindle Start M-Code, in order that it is passed to the Postprocessor to ensure that Tool changes and starts will be properly generated.
Because the Custom G-Code command provides no link to a Tool Controller, if a Tool is used by the custom G-Code, the Tool index must be written, along with the Spindle Start M-Code, in order that it is passed to the Postprocessor. This ensures that Tool changes and starts will be properly generated.


For example, to convey to the Postprocessor that the Tool used in the Custom G-Code operation has Tool index 6, and a Spindle Speed of 10,000, insert the following code at the beginning of the Custom G-Code Operation:
For example, to convey to the Postprocessor that the Tool used in the Custom G-Code operation has Tool index 6, and a Spindle Speed of 10,000, insert the following code at the beginning of the Custom G-Code Operation:


(T6: 4mm Endmill)
(T6: 4mm Endmill)

Revision as of 19:31, 18 January 2018

Path Custom

Menu location
Path → Partial Commands → Custom
Workbenches
Path
Default shortcut
None
Introduced in version
-
See also
None

Description

This tool inserts a path object which is built from hand coded custom G-code.

Because the Custom G-Code command provides no link to a Tool Controller, if a Tool is used by the custom G-Code, the Tool index must be written, along with the Spindle Start M-Code, in order that it is passed to the Postprocessor. This ensures that Tool changes and starts will be properly generated.

For example, to convey to the Postprocessor that the Tool used in the Custom G-Code operation has Tool index 6, and a Spindle Speed of 10,000, insert the following code at the beginning of the Custom G-Code Operation:

(T6: 4mm Endmill)

M6 T6

M3 S10000

Note that Feed rates will be correctly generated by the Postprocessor, only if the Custom G-Code Feed rates are written in Units/second.

Usage

  1. Press the Custom button
  2. Write custom G-code in the G Code property of the newly created object. Refer to the Path scripting page for supported G-Code commands.

Properties

  • DataG Code: The custom G-Code commands to build the path on