#garfield Logs

Nov 14 2018

#garfield Calendar

10:10 PM rue_mohr: this is like day 7 of mor than 4 seconds irc lag
10:13 PM rue_mohr: if freenode implodes, what network should we meet up on?
10:18 PM Tom_itx: you could try chatjunkies as an interum step but i may not stay there
10:21 PM Tom_itx: i could just dissappear into the abyss
10:23 PM rue_mohr: thats a sad thought
10:23 PM Tom_itx: not much left to offer anyway
10:23 PM rue_mohr: no, tones!
10:23 PM rue_mohr: your just all bunched up in potential right now
10:23 PM rue_mohr: it slushes back and forth
10:24 PM Tom_itx: i've shared it all. now it's just repeat
10:24 PM rue_mohr: pff, no way
10:25 PM rue_mohr: objects.content[i].entity.shape.point.x
10:25 PM rue_mohr: it took a while but I found my variable
10:26 PM Tom_itx: was that lib newer than what you were messin with?
10:26 PM rue_mohr: I'v had these ones for a while
10:26 PM rue_mohr: remember I made the program to generate the drill cycles?
10:26 PM rue_mohr: well, I'm just taking it from scribble, to use my 2d and 3d libraries, and moving it from csv to dxf input
10:27 PM rue_mohr: er, I think I'm done
10:27 PM rue_mohr: you have a gcode sim, dont ya?
10:28 PM rue_mohr: in lcnc?
10:28 PM rue_mohr: or will catia do that for ya?
10:29 PM Tom_itx: i don't know about catia i've not used that module much but my kids both have
10:29 PM Tom_itx: it will do a cut visualization
10:29 PM Tom_itx: and show gouges etc
10:29 PM rue_mohr: http://paste.debian.net/1051785/
10:29 PM Tom_itx: mine also does that
10:30 PM Tom_itx: i don't use it alot
10:30 PM Tom_itx: alot of redundancy there
10:30 PM Tom_itx: the command is modal
10:30 PM rue_mohr: suggestions?
10:30 PM Tom_itx: the coordinates are modal
10:30 PM Tom_itx: you don't need G00 mulitple times unless it changes
10:31 PM Tom_itx: ie G0 to G1
10:31 PM rue_mohr: I'm lifting and dropping the bit vertically
10:31 PM Tom_itx: so Z is all that changes
10:31 PM rue_mohr: go does not conform to F
10:31 PM rue_mohr: oh I see what you mean
10:31 PM rue_mohr: yes, I could trim it
10:31 PM Tom_itx: it still runs
10:32 PM rue_mohr: it could trim a LOT of file bytes
10:32 PM rue_mohr: some of my nc files are alreayd a few M comming from 'real' software
10:33 PM Tom_L: %
10:33 PM rue_mohr: oooo, I dont carry machine state between my functions
10:33 PM Tom_L: O (plateface.txt)
10:33 PM Tom_L: N1 T1 M06 ( 2" FACE MILL )
10:33 PM Tom_L: N2 G17 G00 G90 X0.0 Y-0.75 S2500 M03
10:33 PM Tom_L: N3 G43 Z-0.5 H1
10:33 PM Tom_L: N4 Z-0.9
10:33 PM Tom_L: N5 G01 Z-1.01 F3.0
10:33 PM Tom_L: N6 X-8.0 F3.0
10:33 PM Tom_L: N7 Y-2.4
10:33 PM Tom_L: N8 X0.0
10:33 PM Tom_L: N9 Y-4.05
10:33 PM Tom_L: N10 X-8.0
10:33 PM Tom_L: N11 Y-5.7
10:33 PM Tom_L: N12 X0.0
10:33 PM Tom_L: N13 G00 Z-0.5
10:33 PM Tom_L: N14 M05
10:33 PM Tom_L: N15 G49 G28 Z0 Y0
10:33 PM Tom_L: N16 M30
10:33 PM Tom_L: %
10:34 PM Tom_itx: quite a lag for sure
10:34 PM rue_mohr: N?
10:34 PM Tom_itx: that was just one i pulled from random
10:34 PM Tom_itx: just line numbes
10:34 PM rue_mohr: oh
10:34 PM Tom_itx: no effect on the machine, it ignores them
10:34 PM rue_mohr: huh
10:34 PM rue_mohr: I got ya, but
10:34 PM rue_mohr: void MachineCommandGoto( point3d_t pos, double speed ){ // target position
10:34 PM rue_mohr: printf("G01 F%0.3f X%0.3f Y%0.3f Z%0.3f \n", speed, pos.x, pos.y, pos.z);
10:34 PM rue_mohr: }
10:34 PM rue_mohr: I need to establish a 'machine state'
10:35 PM Tom_itx: preamble
10:35 PM Tom_itx: G20 etc
10:35 PM Tom_itx: G17 G20 G90 G54
10:35 PM Tom_itx: probably a few more you could add
10:35 PM rue_mohr: setup units and stuff?
10:35 PM Tom_itx: some are default
10:35 PM Tom_itx: G20 21 are inch/metric
10:35 PM rue_mohr: void MachineCommandInit(void) {
10:35 PM rue_mohr: printf("G21 G90 G40\n");
10:36 PM rue_mohr: printf("G0 Z10.0\n");
10:36 PM rue_mohr: printf("G17\n");
10:36 PM rue_mohr: printf("M3 S1000\n");
10:36 PM rue_mohr: printf("( GO NOW )\n");
10:36 PM Tom_itx: i forget which is which
10:36 PM rue_mohr: }
10:36 PM Tom_itx: G21 must be metric
10:36 PM rue_mohr: :)
10:36 PM Tom_itx: i don't specify it because i know i set my machine up for inch and that's default
10:40 PM Tom_itx: why do you turn comp off?
10:40 PM rue_mohr: *blink*
10:40 PM rue_mohr: casue you specify the bit size?
10:40 PM Tom_itx: i use G43 and an H word for tool length offset
10:41 PM rue_mohr: I'm not sure what grbl supports, I'm ok with doing it all manually for now
10:41 PM Tom_itx: oh wait G49 cancels length offset, 40 cancels diameter offset
10:41 PM rue_mohr: this is first pass
10:41 PM Tom_itx: you should use G43 with an H word
10:41 PM Tom_itx: per tool
10:41 PM Tom_itx: ie T1 M6 H1
10:42 PM Tom_itx: on a separate line of course
10:42 PM Tom_itx: it doesn't take effect until the first linear move
10:42 PM Tom_itx: i usually specify it on the Z move to the material
10:42 PM Tom_itx: <Tom_L> N3 G43 Z-0.5 H1
10:44 PM Tom_itx is now known as Tom_L
10:45 PM Tom_L: i was turning the spindle on there too but i moved it up a line because it wasn't getting up to speed all the time with it there
10:46 PM Tom_L: i changed the template but i don't think i've tested it yet
10:47 PM Tom_L: also, you want to specify your G00 Z move separate from X and Y
10:47 PM Tom_L: it will cause problems for you if you don't
10:50 PM rue_mohr: grbl does NOT like tool change lines