Friday, June 8, 2012

Experimental Online APT360 Processor

APT360 WebSockets Demonstration
Edit-I have disabled the server for this, since I needed it for something else. This doesn't work anymore.
I have been playing with websockets and a Linode server. A friend of mine, Brent Muller, set up APT360 on the linode server and I created a python-tornado websocket interface to it.

Paste Apt code in the top text box and press the Post Code button. If there are no errors (be careful to make sure the first line of code begins on column one and that there is a line after 'fini') you should get gcode in the bottom pane. For those of you who know what APT360 is, have fun.

Available Post Processors: a1100m, cent1, cent2, dmb, dmb2, e4axvt, e5axtr, e5axvt, emc, webgl2


5 comments:

  1. Dan,
    I tried the following sample code that I pulled from
    http://www.dtpm.unipa.it/emc/it/apt_doc/manual/samp_part_prog.html
    It didn't work ;(
    JT


    PARTNO N/C 360 APT SAMPLE PART PROGRAM
    SP = POINT/ 0, 0, 0
    L1 = LINE/ 4, 0, 0, 4, 8, 0
    PT = POINT/ 4.0, 8.0, 0
    L2 = LINE/ PT, ATANGL, 45
    L3 = LINE/ 8, 12, 0, 12, 12, 0
    L4 = LINE/ 14, 5, 0, 14, 10, 0
    L5 = LINE/ 0, 2, 0, 10, 2, 0
    C1 = CIRCLE/ 12, 10, 0, 2.0
    C2 = CIRCLE/ 14, 2, 0, 3.0
    INTOL/ 0
    OUTTOL/ .005
    CUTTER/ .25
    SPINDL/ 2000, CLW
    COOLNT/ ON
    FEDRAT/ 20.0
    FROM/ SP
    GO/ TO, L1
    TLLFT, GOLFT/ L1, PAST, L2
    GORGT/ L2, PAST, L3
    GORGT/ L3, TANTO, C1
    GOFWD/ C1, TANTO, L4
    GOFWD/ L4, PAST, C2
    GORGT/ C2, PAST, L5
    GORGT/ L5, PAST, L1
    GOTO/ SP
    COOLNT/ OFF
    SPINDL/ OFF
    FINI

    ReplyDelete
  2. this one works:


    PARTNO N/C 360 APT SAMPLE PART PROGRAM
    machin/emc
    clprnt
    print/on
    SP = POINT/ 0, 0, 0
    L1 = LINE/ 4, 0, 0, 4, 8, 0
    PT = POINT/ 4.0, 8.0, 0
    L2 = LINE/ PT, ATANGL, 45
    L3 = LINE/ 8, 12, 0, 12, 12, 0
    L4 = LINE/ 14, 5, 0, 14, 10, 0
    L5 = LINE/ 0, 2, 0, 10, 2, 0
    C1 = CIRCLE/ 12, 10, 0, 2.0
    C2 = CIRCLE/ 14, 2, 0, 3.0
    INTOL/ 0
    OUTTOL/ .005
    CUTTER/ .25
    SPINDL/ 2000, CLW
    COOLNT/ ON
    FEDRAT/ 20.0
    FROM/ SP
    GO/ TO, L1
    TLLFT, GOLFT/ L1, PAST, L2
    GORGT/ L2, PAST, L3
    GORGT/ L3, TANTO, C1
    GOFWD/ C1, TANTO, L4
    GOFWD/ L4, PAST, C2
    GORGT/ C2, PAST, L5
    GORGT/ L5, PAST, L1
    GOTO/ SP
    COOLNT/ OFF
    SPINDL/ OFF
    FINI

    ReplyDelete
  3. I know that I have a long way to go with this idea. Websockets doesn't work everywhere and my implementation is pretty flaky. I am amazed that it works so fast, on browsers that do support it. I will keep chipping away at it. My next adventure will be with libarea and some more textedit boxes with buttons and pull downs.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. DAN, can I get the code from you for the APT processor?
    I could then run it from my WEB site

    ReplyDelete