[Home]TutorAptToAxis

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Showing revision 7

Comix for Crankers

Start with an apt file, end with Emc motion

(if you'd like to use my test file ... upload:squareTJP-1.apt )


Begin by opening a terminal and be familiar with where your files are located

You must have apt360, postp, and vapt installed for this to work

At the prompt, enter

apt /apt360/examples/squareTJP-1.apt | /vapt/vapt.py 

I know thats a mouthful but try it & adjust for your locations & example choice

upload:tut01-cmdline.png upload:tut02-vapt2.png

The file was processed, and appears graphically in the vapt window.

At the same time, some gcode was produced. Lets look at that.

Open your text editor, then open the file squareTJP-1.tap (in your current directory)

The extension is .tap becuz traditionally, nc machines used paper tap(e).


upload:tut03-ls-tap.png upload:tut05-kate-gcode1.png

Run EMC2 and load the .tap file ( use 'any' in the file selector dialog )

We got a problem in the gcode. The 'post' doesnt follow the emc specs (yet).

But it's a tiny error, and we can 'hack' it by interactively asking emc what it wants.

This technique only address the 1st error that emc reports.

Here, I guessed that emc didnt like the % at the beginning, so I whack it :)


upload:tut06-emcRun-1.png upload:tut06-editpercentout.png

Another small problem to hack...

The program didnt have a feedrate, so lets add F50. before any coordinated motion.

( G00 doesn't need a feedrate, because it uses Rapid velocity. )


upload:tut06-runEmc-2.png upload:tut07-editaddfrate.png

We're close to the end of the file now, so most is ok.

The end of the file is missing a conclusion, so lets add M02.


upload:tut08-eofng.png upload:tut08-editaddm02.png

Woohoo! it's all loaded and no complaints!


upload:tut10-emcHappy.png

and it runs! using open source cad & open source cnc


kudos to the authors of EMC and APT360! upload:tut11-emcrunsaptcode-mehappy.png

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions | View current revision
Edited March 19, 2008 3:27 pm by adsl-75-4-54-189.dsl.emhril.sbcglobal.net (diff)
Search:
Published under a Creative Commons License