Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Stonemull

Pages: [1] 2 3 ... 59
1
RAMPS 1.4 / Re: Software
« on: July 24, 2018, 11:54:33 AM »
Reinstalled Marlin and working my way through configuring it properly, end stops, SD card and remote comms not yet working but display and encoder
I am preferring the menu setup over repetier already so I am sure its worth the extra effort of getting it to work.



2
RAMPS 1.4 / Re: Software
« on: July 24, 2018, 04:44:34 AM »
ah cool, I haven't tried CNC mode, its currently an XY system but I have an unused Z axis here that I may add yet, I am yet to build a base and I am not sure just how flat the metal will be, I may need to add a probe option yet and proper Z control.
Marlin is looking more tempting, repetier laser mode looks like a bit of a stop gap solution.

3
RAMPS 1.4 / Re: Software
« on: July 24, 2018, 12:49:29 AM »
Yay, my phone line and internet is connected again. Think my exchange blew up.
The only changes I guess I could do with at the moment would be an optional addition to the fan mode to allow a G4 Pxxx delay (where Pxxx is somewhere around P250 to P750 I imagine) directly after each M106 S255, but that is plasma specific to get the initial punch through the material and is pretty easy for me to manually post process it myself, I might even be able to get repetier firmware to add it to the queue as well when required, so not overly concerned.
Maybe it would be useful for other things too like waterjet cutters, or perhaps welding, so up to you if you can be bothered, would make it useful for some other types of devices though.

At the moment I am still struggling to get the damn fan on, he has generic bytes of flags with no telling what they do, I, P and S are just bits 1,2 and whatever in a byte and hasI is a macro to determine if bit 1 is high, what is bit 1 .. so M106 is telling the fan to go on with "immediate = false" which  I guess is queue the command without doing it now, however its not going on at any time in the queue yet.. if  i call the fanspeed routine with immediate= true then the fan comes on but never turns off lol.


4
RAMPS 1.4 / Re: Software
« on: July 23, 2018, 08:09:00 AM »
ok, tested and it is working now, so thanks for the help Zax.

There will be one huge advantage of using the fan control, I can add a pause after every M106 S255 command and unlike the laser pin it will stay on for the duration .. if I can get it to work that is, I have redirected fan output to pin 8 (laser is still D10 and spindle is D9) and the damn things not working, however if I send a manual M106 S255 via repetier-host then it works just fine, onboard LED illuminates and so does the LED I have on my interface electronics..

relevant part in commands.cpp is ..

Code: [Select]
#if FAN_PIN > -1 && FEATURE_FAN_CONTROL
    case 106: // M106 Fan On
        if(com->hasI()) {
            if(com->I != 0)
                Printer::flag2 |= PRINTER_FLAG2_IGNORE_M106_COMMAND;
            else
                Printer::flag2 &= ~PRINTER_FLAG2_IGNORE_M106_COMMAND;
        }
        if(!(Printer::flag2 & PRINTER_FLAG2_IGNORE_M106_COMMAND)) {
            if(com->hasP() && com->P == 1)
                setFan2Speed(com->hasS() ? com->S : 255);
            else
                setFanSpeed(com->hasS() ? com->S : 255);
        }
        break;
    case 107: // M107 Fan Off
        if(!(Printer::flag2 & PRINTER_FLAG2_IGNORE_M106_COMMAND)) {
            if(com->hasP() && com->P == 1)
                setFan2Speed(0);
            else
                setFanSpeed(0);
        }
        break;
#endif

FAN_PIN is set as is FEATURE_FAN_CONTROL so I guess its hasI and hasP causing my issues, not sure what they are yet..


5
RAMPS 1.4 / Re: Software
« on: July 23, 2018, 05:13:24 AM »
well thats weird, cause I tried to copy what you have there, just left auto-connect off, only the 2 marlins selected, I still have no G lines, I tried saving the machine gcode thinking perhaps the post processor has not run yet, same deal. Turned off debug mode, tried everything I can think of..

hmm, any more ideas ?


edit: question, when does the post processor run, I cannot seem to get the output to change in that window no matter what mode I select, tried closing and reopening the machine control window etc, tried saving multiple times, tried nano/mega, laser mode on/off, if I turn GRBL mode on (first option) I cannot turn it off, like it stays ticked until I close and reopen machine control screen.

edit2: hang on, I look at the saved data and it is in fact M106 S0 etc, the display on the machine control screen however does not show this and still has no G line starts.

edit3: ok I assume you are saving and then reloading the gcode.

edit4: results are inconsistent, if I close and reopen the program leaving it setup with the 2 marlins selected then it works fine, just selecting them if they were not selected is not enough to get the post processor running though. Might be something to look at if you get bored, apart from that I can work with it :) will recompile my arduino source to use a D10 fan and see how it goes. Looks good though, still not sure how I will get the plasma to punch through at the start yet. Will have another look at what marlin can offer I think.




6
RAMPS 1.4 / Re: Software
« on: July 22, 2018, 07:29:34 PM »
not sure if I am missing something still, tried "marlin fan" and "marlin sd" and used both the "save machine g-code" and "save g-code"  options and all have the same format like ..

Code: [Select]
X72 Y70.5 M03 S0 F2000
X73.3 Y70.5 M03 S255 F700
X74.8 Y118.8 M03 S0 F2000
X74.69 Y119.39 M03 S255 F700
X74.36 Y119.86 M03 S255 F700
X73.89 Y120.19 M03 S255 F700

what I have been doing is ..

Code: [Select]
M5
G01 X72 Y70.5 F2000
M3 S255
G1 X73.3 Y70.5  F700
M5
X74.8 Y118.8 F2000
M03 S255
G1 X74.69 Y119.39 F700
G1 X74.36 Y119.86 F700
G1 X73.89 Y120.19 F700

but the alternate is probably neater and easier to read and probably correct (not tested it yet but am sure it would work).

Code: [Select]
G0 X72 Y70.5 F2000
G1 X73.3 Y70.5 F700
G0 X74.8 Y118.8 F2000
G1 X74.69 Y119.39 F700
G1 X74.36 Y119.86 F700
G1 X73.89 Y120.19 F700



7
RAMPS 1.4 / Re: Software
« on: July 21, 2018, 09:51:01 PM »
if I cant attach it .. here it is in text..

Code: [Select]
( Generated by T2Laser )
(  DG01 XF2Gcode for Grbl  )
( Start Point: LL      )
( Frame Mode : Abs.    )
( G01 X MaG01 Ximum  : 217.6   )
( Y MaG01 Ximum  : 179.3   )
( Laser Power: 255     )
( Vector Rate: 700     )
( Rapid Feed : 2000    )
( Tools Used : 2       )
( Vector Name: ramps_case.dG01 Xf )
G21
G90
F700
M05
G01 G01 X58 Y121.3 F2000
M6 T4
M5

M3 S255
M5
G01 X72 Y68  F2000
M03 S255
G01 X72 Y70.5 F700
M5
G01 X73.5 Y70.5  F2000
M03 S255
G01 X73.39 Y71.09 F700
G01 X73.06 Y71.56 F700
G01 X72.59 Y71.89 F700
G01 X72 Y72 F700
G01 X71.41 Y71.89 F700
G01 X70.94 Y71.56 F700
G01 X70.61 Y71.09 F700
G01 X70.5 Y70.5 F700
G01 X70.61 Y69.91 F700
G01 X70.94 Y69.44 F700
G01 X71.41 Y69.11 F700
G01 X72 Y69 F700
G01 X72.59 Y69.11 F700
G01 X73.06 Y69.44 F700
G01 X73.39 Y69.91 F700
G01 X73.5 Y70.5 F700
G01 X73.5 Y70.5 F700
M5
G01 X72 Y70.5  F2000
M03 S255
G01 X73.3 Y70.5 F700
M5
G01 X74.8 Y118.8  F2000
M03 S255
G01 X74.69 Y119.39 F700
G01 X74.36 Y119.86 F700
G01 X73.89 Y120.19 F700
G01 X73.3 Y120.3 F700
G01 X72.71 Y120.19 F700
G01 X72.24 Y119.86 F700
G01 X71.91 Y119.39 F700
G01 X71.8 Y118.8 F700
G01 X71.91 Y118.21 F700
G01 X72.24 Y117.74 F700
G01 X72.71 Y117.41 F700
G01 X73.3 Y117.3 F700
G01 X73.89 Y117.41 F700
G01 X74.36 Y117.74 F700
G01 X74.69 Y118.21 F700
G01 X74.8 Y118.8 F700
G01 X74.8 Y118.8 F700
M5
G01 X149.7 Y118.8  F2000
M03 S255
G01 X149.59 Y119.39 F700
G01 X149.26 Y119.86 F700
G01 X148.79 Y120.19 F700
G01 X148.2 Y120.3 F700
G01 X147.61 Y120.19 F700
G01 X147.14 Y119.86 F700
G01 X146.81 Y119.39 F700
G01 X146.7 Y118.8 F700
G01 X146.81 Y118.21 F700
G01 X147.14 Y117.74 F700
G01 X147.61 Y117.41 F700
G01 X148.2 Y117.3 F700
G01 X148.79 Y117.41 F700
G01 X149.26 Y117.74 F700
G01 X149.59 Y118.21 F700
G01 X149.7 Y118.8 F700
G01 X149.7 Y118.8 F700
M5
G01 X156.02 Y70.5  F2000
M03 S255
G01 X155.91 Y71.09 F700
G01 X155.59 Y71.56 F700
G01 X155.11 Y71.89 F700
G01 X154.52 Y72 F700
G01 X153.94 Y71.89 F700
G01 X153.46 Y71.56 F700
G01 X153.14 Y71.09 F700
G01 X153.02 Y70.5 F700
G01 X153.14 Y69.91 F700
G01 X153.46 Y69.44 F700
G01 X153.94 Y69.11 F700
G01 X154.52 Y69 F700
G01 X155.11 Y69.11 F700
G01 X155.59 Y69.44 F700
G01 X155.91 Y69.91 F700
G01 X156.02 Y70.5 F700
G01 X156.02 Y70.5 F700
M5
G01 X52 Y70.17  F2000
M03 S255
G01 X41 Y70.17 F700
M5
G01 X52 Y70.17  F2000
M03 S255
G01 X52 Y81.06 F700
G01 X41 Y81.06 F700
M5
G01 X52 Y99.38  F2000
M03 S255
G01 X52 Y112.81 F700
G01 X47.2 Y112.81 F700
G01 X40 Y112.81 F700
M5
G01 X52 Y99.38  F2000
M03 S255
G01 X40 Y99.38 F700
M5
G01 X52 Y99.38  F2000
M03 S255
G01 X47.2 Y99.38 F700
M5
G01 X39 Y112.81  F2000
M03 S255
G01 X39 Y99.38 F700
M5
G01 X40 Y81.06  F2000
M03 S255
G01 X40 Y70.17 F700
M5
G01 X39 Y112.81  F2000
M03 S255
G01 X40 Y112.81 F700
M5
G01 X40 Y99.38  F2000
M03 S255
G01 X39 Y99.38 F700
M5
G01 X41 Y81.06  F2000
M03 S255
G01 X40 Y81.06 F700
M5
G01 X41 Y70.17  F2000
M03 S255
G01 X40 Y70.17 F700
M5
G01 X68 Y123.3  F2000
M03 S255
G01 X78 Y123.3 F700
M5
G01 X88 Y123.3  F2000
M03 S255
G01 X98 Y123.3 F700
M5
G01 X108 Y123.3  F2000
M03 S255
G01 X118 Y123.3 F700
M5
G01 X128 Y123.3  F2000
M03 S255
G01 X138 Y123.3 F700
M5
G01 X148 Y123.3  F2000
M03 S255
G01 X155 Y123.3 F700
M5
G01 X161.6 Y117.3  F2000
M03 S255
G01 X161.6 Y109.3 F700
M5
G01 X161.6 Y101.3  F2000
M03 S255
G01 X161.6 Y91.3 F700
M5
G01 X161.6 Y81.3  F2000
M03 S255
G01 X161.6 Y71.3 F700
M5
G01 X161.6 Y61.3  F2000
M03 S255
G01 X161.6 Y66.3 F700
M5
G01 X62 Y56  F2000
M03 S255
G01 X68 Y56 F700
M5
G01 X78 Y56  F2000
M03 S255
G01 X88 Y56 F700
M5
G01 X98 Y56  F2000
M03 S255
G01 X108 Y56 F700
M5
G01 X118 Y56  F2000
M03 S255
G01 X128 Y56 F700
M5
G01 X138 Y56  F2000
M03 S255
G01 X148 Y56 F700
M5
G01 X158 Y56  F2000
M03 S255
G01 X153 Y56 F700
M5
G01 X56 Y58  F2000
M03 S255
G01 X56 Y66.3 F700
M5
G01 X56 Y71.3  F2000
M03 S255
G01 X56 Y81.3 F700
M5
G01 X56 Y91.3  F2000
M03 S255
G01 X56 Y101.3 F700
M5
G01 X56 Y107.3  F2000
M03 S255
G01 X56 Y117.3 F700
M5
G01 X79.5 Y161.3  F2000
M03 S255
G01 X79.39 Y161.89 F700
G01 X79.06 Y162.36 F700
G01 X78.59 Y162.69 F700
G01 X78 Y162.8 F700
G01 X77.41 Y162.69 F700
G01 X76.94 Y162.36 F700
G01 X76.61 Y161.89 F700
G01 X76.5 Y161.3 F700
G01 X76.61 Y160.71 F700
G01 X76.94 Y160.24 F700
G01 X77.41 Y159.91 F700
G01 X78 Y159.8 F700
G01 X78.59 Y159.91 F700
G01 X79.06 Y160.24 F700
G01 X79.39 Y160.71 F700
G01 X79.5 Y161.3 F700
G01 X79.5 Y161.3 F700
M5
G01 X139.5 Y161.3  F2000
M03 S255
G01 X139.39 Y161.89 F700
G01 X139.06 Y162.36 F700
G01 X138.59 Y162.69 F700
G01 X138 Y162.8 F700
G01 X137.41 Y162.69 F700
G01 X136.94 Y162.36 F700
G01 X136.61 Y161.89 F700
G01 X136.5 Y161.3 F700
G01 X136.61 Y160.71 F700
G01 X136.94 Y160.24 F700
G01 X137.41 Y159.91 F700
G01 X138 Y159.8 F700
G01 X138.59 Y159.91 F700
G01 X139.06 Y160.24 F700
G01 X139.39 Y160.71 F700
G01 X139.5 Y161.3 F700
G01 X139.5 Y161.3 F700
M5
M03 S255
M05
M5
G01 G01 X58 Y121.3  F2000
M03 S255
M6 T1
M5
M03 S255
M5
G01 X161.6 Y123.3  F2000
M03 S255
G01 X211.6 Y123.3 F700
M5
G01 X161.6 Y123.3  F2000
M03 S255
G01 X161.6 Y173.3 F700
M5
G01 X161.6 Y56  F2000
M03 S255
G01 X161.6 Y6 F700
M5
G01 X161.6 Y56  F2000
M03 S255
G01 X211.6 Y56 F700
M5
G01 X56 Y56  F2000
M03 S255
G01 X6 Y56 F700
M5
G01 X56 Y56  F2000
M03 S255
G01 X56 Y6 F700
M5
G01 X56 Y123.3  F2000
M03 S255
G01 X56 Y173.3 F700
M5
G01 X56 Y123.3  F2000
M03 S255
G01 X6 Y123.3 F700
M5
G01 X161.6 Y173.3  F2000
M03 S255
G01 X161.6 Y179.3 F700
G01 X56 Y179.3 F700
G01 X56 Y173.3 F700
M5
G01 X211.6 Y123.3  F2000
M03 S255
G01 X217.6 Y123.3 F700
G01 X217.6 Y56 F700
G01 X211.6 Y56 F700
M5
G01 X56 Y6  F2000
M03 S255
G01 X56 Y0 F700
G01 X161.6 Y0 F700
G01 X161.6 Y6 F700
M5
G01 X6 Y56  F2000
M03 S255
G01 X0 Y56 F700
G01 X0 Y123.3 F700
G01 X6 Y123.3 F700
M5
M03 S255
M05
M5
G01 G01 X58 Y121.3  F2000
M03 S255
M05
G00 G01 X0 Y0


8
RAMPS 1.4 / Re: Software
« on: July 21, 2018, 09:48:56 PM »
not sure whats going on ..

I had "The attachments upload directory is not writable. Your attachment or avatar cannot be saved." on the last post and had to remove attachments, then if I try to edit the post to mention that it tells me I have already submitted the post and will not accept an edit.

9
RAMPS 1.4 / Re: Software
« on: July 21, 2018, 09:45:45 PM »
@Stonemull Send me an example of the G-code that works (if you can point out the required changes from one of my other post processors that would be even better) and I will create a post processor for your firmware, would that be Repetier correct?

Oop, when you mentioned "existing post processors" in the last post I thought you meant some program online like on github or something and went searching for "gcode post processors" lol, I had not been going into the machine control area so totally forgot that existed. Are those post processors active from gcode export from the main screen or on gcode exported from the machine control screen ? I couldn't tell.

The main thing that changes with repetier is it needs a G1 or G0 for every movement line and M03 S255 or M03 S0 or M05 needs to be on its own line, once that is performed though the laser/spindle/plasma will activate on every G1 command and turns off for every G0 move.
So the ideal way to do it I think is to do a single M03 S255 at the top of the code and then perform a G0 for a laser off move and a G1 for a laser on move.
The alternative (which I use below) is to only use G1 and turn off laser before G1's .. M5 is the correct method to turn it off instead of M03 S0 as far as i can see, I thought it allowed the warm up time to be used but it doesn't.


My notes to edit a file suitable (not saying perfect, but it works)

search and replace M03 S255 and replace with nothing
with every line with M03 S0 in it, add a line above with M5
with every line with M03 S0 in it, add a line below with M3 S255
search and replace M03 S0 and replace with nothing
search and replace X and replace with G01 X


a sample file I made for a steel case to house the ramps electronics (not cut it yet but it seems to turn plasma output on and off as required and do the right moves) is attached and also the dxf file I created in designspark mechanical to produce it.

@loki .. I looked at that one a year or so ago, its ported from grbl 1.0 so a bit dated with no laser mode, then no SD card and no display support.


10
RAMPS 1.4 / Re: Software
« on: July 21, 2018, 07:56:17 AM »
huh ?
controller is a mega2560 with graphical lcd, totary encoder and SD card, if you know a version of grbl that runs on it please tell me :)

any version of grb that can run standalone from an SD card is suitable, I will buy the applicable controller, they don't exist though.

hence repetier or marlin, neither of which function well with grbl gcode.


11
RAMPS 1.4 / Re: Software
« on: July 20, 2018, 07:12:02 PM »
It does need a little bit of CAM work to generate a tool path as it does have width, not sure what it is yet, so need to follow inside of interior cuts and outside of exterior. obviously.
I will have a better look at freecad, I looked at using it before but didn't particularly like the method.
I think I may have to go to Marlin yet, I added 2 home switches and could easily short out a Z one.
This not pausing at the start of every cut is a deal breaker, plasma (laser) only comes on during a G1,2,3 move and it appears adding a pause is a total pain, I will have a look at CNC mode first, maybe spindle mode is more useful.

12
RAMPS 1.4 / Software
« on: July 20, 2018, 09:48:36 AM »
Plasma cutter is about ready for its first tests, since I wanted this to be a stand alone device working in the shed from an SD card then the easiest way to get the functionality was to use a ramps 1.4 board and a graphic smart controller, all up is was like $22 I think, a no brainer.

https://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller

The issue is that I can't be stuffed trying to port grbl-mega to use the display,encoder and SD card so I might as well use ready to go firmware, which leaves me without about 2 options (I know of), Marlin and Repetier firmware.
After playing with Marlin I found it needs 3 home switches or gets all upset and cantankerous (ie .. cannot compile), I originally had none but have since fitted an X and Y home switch, Repetier firmware is happy to have no home switches plus it has a laser and CNC mode, so decided to give it a try first.

So T2laser has no "repetier mode" :) the basic Gcode movements are not recognised, it seems that having a single G1 and lines of X,Y moves works fine with grbl but not repetier. If i do a search and replace in the gcode for " X" and replace it with "G1 X" and carve out most of the init commands (not gone through them all yet to examine) then I get basic movement but laser (plasma) stays on. repetier assumes laser will be off for G0 movements and on for G1,G2 and G3 moves.

I looked at bencut but the first thing it says is you need GRBL.

So question is, anyone found a repetier friendly interface


Note: I wrote the post above yesterday but did more research, my notes for changing t2laser gcode for something that runs on the SD card are..

Quote
issues are that a single G1 does not work, it needs one per line.
an M03 S255 in a line is ignored, needs to be on its own line.
an M03 S0 I am not sure is dealt with the same as a M05 (I have 500mS warmup delay added)



search and replace M03 S255 and replace with nothing

search and replace M03 S0 and replace with M05

with every line with M05 in it, add a line above with M5

with every line with M05 in it, add a line below with M3 S255

search and replace M05 and replace with nothing

search and replace X and replace with G01 X

if required replace Fxxxx with Fyyyy

13
Mini CNC / Re: Corexy plasma cutter
« on: July 10, 2018, 07:44:06 AM »
1 step closer, added the holder for the Y carriage pulleys and X carriage beams.

1 step backwards, shattered one of my idler mounts trying to move it on the beams with a wooden hammer.

Photo of both..

14
Mini CNC / Re: Corexy plasma cutter
« on: July 07, 2018, 12:03:39 PM »
Yeh, already own that .. a 50A pilot arc plasma cutter. I forget the brand, bro bought a 60A Cut-60 (older model) and the thing only lasted a few days though it got a hammering by one of his employees, blew one of its 6 pairs of mosfets, I replaced them and they blew instantly, so ended up just removing them so he now has a 50A one as well I guess :)

I bought a sheet of 1.2mm steel a while back so thats been the goto, set to around 20A its a hot knife through butter, I need to keep a tiny gap though if possible as it does get tacky to the steel if you dragcut, which means its shorting the plasma to the cutting tip internally which stuffs the tips.
I have tested it with some larger stuff, like 10mm rebar. I have an old landcruiser that needs gutter replacement and thought this would be good to chop out suitable size sheets the right shape.


15
Mini CNC / Corexy plasma cutter
« on: July 07, 2018, 06:39:14 AM »
Not sure if right forum area, seemed suitable though..

Hoping to get some advice here on some of the experts, I am sure I will need it, I just uploaded the files/photos/stls to thingiverse at https://www.thingiverse.com/thing:2993546

current build state is as posted, so I still have to cut the horizontal steel, mount the thing, make a main carriage for the plasma tool, add a carrier for X axis, not sure whether to do a single or 2 rows of steel for the axis, idlers, belt clamps etc  .. then all the electronics and find a functional grbl that works with SD cards etc (I have a mega board with LCD, sd card holder etc, just no code for it)




Pages: [1] 2 3 ... 59