[Home]TutorAptToAxis

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Difference (from prior major revision) (minor diff, author diff)

Changed: 2,3c2,3

Start with an apt file, end with Emc motion



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

Start with an apt file, end with LinuxCNC motion ==


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

Changed: 9c9

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



I know that's a mouthful but try it & adjust for your locations & example choice




Changed: 21,25c21,25

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 :)



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


We got a problem in the gcode. The 'post' doesn't follow the LinuxCNC specs (yet). ===

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


This technique only address the 1st error that LinuxCNC reports. ===

Here, I guessed that LinuxCNC didn't like the % at the beginning, so I whack it :)




Changed: 32c32

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



The program didn't have a feedrate, so lets add F50. before any coordinated motion.




Changed: 42c42




Changed: 48c48




Changed: 52,53c52,55


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

kudos to the authors of LinuxCNC and APT360!

upload:tut11-emcrunsaptcode-mehappy.png

Comix for Crankers

Start with an apt file, end with LinuxCNC 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 that's 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 LinuxCNC and load the .tap file ( use 'any' in the file selector dialog )

We got a problem in the gcode. The 'post' doesn't follow the LinuxCNC specs (yet).

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

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

Here, I guessed that LinuxCNC didn't 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 didn't 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 LinuxCNC 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
Last edited January 22, 2012 3:41 pm by CNCDreamer (diff)
Search:
Published under a Creative Commons License