Skip to content

Latest commit

 

History

History
60 lines (57 loc) · 3.69 KB

File metadata and controls

60 lines (57 loc) · 3.69 KB

Working Example

The example files in this folder may be installed and tested in your Camotics installation by following the installation directions

After running the script, filespec.json will require additional manual editing to tell Camotics which components move with X, Y, and Z movement of the tool in the simulated gcode. Movement is described by a three element vector in square brackets[x, y, z], values are typically 0 for not moving, 1 for moving in the same direction as the gcode, and -1 for a part moving in the opposite direction of the gcode, e.g. a bed that moves the workpiece under a mill. For example, a motion of [1,0,-1] would cause a part to move with X, not Y, and opposite to Z). Motion vectors are provided for the bit ("tool"), workpiece ("workpiece" blue material to be cut in Camotics� e.g. for moving platens), and each machine part ("movement").

Example working Wooden CNC.json with explanations

Lines starting with > are typically manually edited to configure your tool, workpiece, and machine parts motion.

{
    "name": "Wooden CNC",               Machine name
    "model": "Wooden CNC.tco",          Reference to .tco file
>   "tool": [1, 1, 1],                  Bit motion
>   "workpiece": [0,0,0],               Workpiece motion, blue material in Camotics, used if there is a moving base
    "reverse_winding": false,           Triangle winding order, change this if your model looks "inside out"
    "transform": [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]],     Transform, use only if you understand transformation matrices
    "parts": {                          List of parts
        "o46": {                           Part: Base  The names are automatically generated by FreeCAD Export function, this is the non moving base in Wooden CNC
            "color": [177, 126, 68],       Part color: [red, green, blue] values 0-255, unique colors are a good way to identify FreeCAD parts in the .json file
            "init": [0, 0, 0],             Initial position
            "home": [0, 0, 0],             Home position
            "min": [0, 0, 0],              Minimum position
            "max": [0, 0, 0],              Maximum position 
>           "movement": [0, 0, 0]          How this part will move with X, Y, and Z of the tool, the base does not move
        },
        "o97": {                           Part: Gantry on the Base
            "color": [209, 158, 96],
            "init": [0, 0, 0],
            "home": [0, 0, 0],
            "min": [0, 0, 0],
            "max": [0, 0, 0],
>           "movement": [0, 1, 0]          The Gantry only moves in the Y direction
        },
        "o142": {                          Part: Carriage on the Gantry 
            "color": [177, 126, 68],
            "init": [0, 0, 0],
            "home": [0, 0, 0],
            "min": [0, 0, 0],
            "max": [0, 0, 0],
>           "movement": [1, 1, 0]          The Carriage moves horizontally in X on the Gantry in Y
        },
        "o195": {                          Part: Spindle Plate on the Carriage
            "color": [202, 153, 93],
            "init": [0, 0, 0],
            "home": [0, 0, 0],
            "min": [0, 0, 0],
            "max": [0, 0, 0],
>            "movement": [1, 1, 1]          The Carriage moves in all 3 directions with tool movement
        },
        "o223": {                          Part: Router on the Spindle Plate
            "color": [64, 64, 64],
            "init": [0, 0, 0],
            "home": [0, 0, 0],
            "min": [0, 0, 0],
            "max": [0, 0, 0],
>           "movement": [1, 1, 1]          The router moves in all 3 directions on the carriage with tool movement
        }
    }
}