SuperCam CAM file format
The SuperCam CAM file format is an ASCII Text file with the extension of "CAM". 

Each graphic item begins with a keyword that identifies what kind of graphic item is being described by the operands that follow the keyword.  The ASCII linefeed character signifies the end of the current graphic item has been reached.  Operands that follow the keyword are separated by ASCII commas.

Each graphic item has different set of operands that describe it.  The CAM interpreter understands 25 different types of graphic item.  Each graphic item takes up one line of text when viewed by with a word processor.  The SuperCam program is acting like a text editor in background when performing moves, copies, erase, rotate, scale, anything that effects the parameters of the graphic item selected.  Text lines are being edited, the words that describe a parameter are being changed when needed.

Graphic items that are two dimensional, 2D, when displayed in the 3D mode are placed on the Z axis that corresponds to to cutting depth parameter.  When the cut depth parameter is changed in MCONFIG and  a redraw is performed the item placement of in the Z axis will correspond to the newly defined cut depth.

Not all described graphic items can actually cause mechanism movements.  

List of Graphic Item Keywords
line - This describes a line, it may have two or more sets of coordinates that follow as operands.  The number of coordinates that follow are only limited by the amount of memory that is available in the host computer or 32 mb which ever comes first. circle - This describes a circle.  Three operands follow.  The center X and Y coordinates and the radius. point - This describes a two dimensional point.  The two operands that follow are the X and Y coordinates.
arc - This item is an arc.  There are five operands that follow.  The first two are the X and Y coordinates of the center of the arc.  Then the starting angle in degrees followed by the ending angle.  The last operand is radius of the arc.  * text - This graphic item describes a line of text.  The first two coordinates describe the coordinates for the lower right corner's X and Y.  The next two coordinates describe the end of the text display X and Y.  The next operand describes the height of the text.  The next operand is the number of characters in the string of text to be graphically displayed. * textfit - This graphic item describes a line of text that has to fit in a specified area.  The first two coordinates define the coordinates of the starting X and Y.  The next two coordinates define the the height and the length of the graphic item.  The last operand is the the text string to be graphically displayed. *
lineup - This item describes a line that starts at the depth of cut an finishes at the surface of the material.  It may have two or more sets of coordinates that follow as operands.  The number of coordinates that follow are only limited by the amount of memory that is available in the host computer or 32 mb which ever comes first. linedwn - This item describes a line that starts at the surface of the material and finishes at the previously specified depth of cut in the material.  It may have two or more sets of coordinates that follow as operands.  The number of coordinates that follow are only limited by the amount of memory that is available in the host computer or 32 mb which ever comes first. textctr - This graphic item describes a line of text that is center above a specified point.  The first two coordinates define the coordinates of the center X and Y.  The next operand defines the the height of the graphic text.  The next operand defines the height to width ratio for the characters.  The last operand is the the text string to be graphically displayed. *
polyline - This graphic item describes a line or tool path that consists of sets of XYZ coordinates for each node in the line.  There maybe two or more sets of coordinates that define the poly line.  The number of coordinates that follow are only limited by the amount of memory that is available in the host computer or 32 mb which ever comes first. vertex - This is a graphic item that has no real display item.  It will cause the attached mechanism to move to a place in space at what ever mode of movement that it currently is in.  There are three operands that follow, X, Y and Z coordinates.  The graphic item is drawn as a YELLOW dot. face3D - This graphic item describes a three dimensional triangle.  The first operand is reserved for the the layer element.  The next three operands describe the X,Y,Z coordinates of the stating node of the triangle.  The next three coordinates describe the second node of the triangle.  The last three operands are the coordinates of the last node of the triangle.
SuperCam How To Use SuperCam Function Keys Specifications G&M Codes Basics Manual Demo Download System Requirements Commands Pull Down Menu's Machine Setup Machine Motion LAN Networks CAM File Format


Home Page at http://www.super-tech.com
http://www.super-tech.com/root/SuperCam-CamFile.html
Published 7/6/2017 4:28:10 PM
Copyright 2016 Dennis Bohlke