Hello Guest it is April 26, 2024, 07:19:33 PM

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 - Pedio

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 »
91
Mach4 General Discussion / Re: Add a laser to my CNC
« on: February 14, 2016, 10:09:58 AM »
Bob - In answer to your questions:

Mach 4 - v 2797
Smart Bob - V 33.159
The LED that is on when eStop is pressed is the Spindle CW LED on the main page of wxMach screen set
It appears this LED is driven by the 'Spindle Fwd'
I am using Pin 16 on the PMDX 132 for the PWM

I will try the code for turning on the spindle today and let you know how it goes.

thanks

92
Mach4 General Discussion / Re: Add a laser to my CNC
« on: February 13, 2016, 02:39:21 PM »
Bob - thanks. I got to play with the spindle a little more today and it works as you said. The problem I am having is I want to position the laser at the 0,0 point of my work piece. Until I run the g code file Mach 4 does not have a laser setting so I can not turn the laser on using the spindle control to center the work piece. Is there any way I can make a button that turns on the spindle to a known setting?

The other problem is with eStop. Sometimes it turns off the spindle and sometimes it does not. The LED on Mach 4 even shows the spindle on when it does not turn off the spindle. I am using Mach 4 (not the latest but one rev back) and PMDX 410 with a PMDX 132 breakout board.

93
Mach4 General Discussion / Re: Add a laser to my CNC
« on: February 11, 2016, 10:27:37 PM »
I am using the wxMach screenset as the basis for my screen set.

So what does the SRO% represent when you don't have a g code file loaded. I use this slider and the Spindle CW button to turn on my laser so I can focus it to the right level.

Also, when I hit eStop the laser will stay on (it looks like a lower output) is there anyway I can turn off the laser (spindle) on an eStop?

94
Mach4 General Discussion / Re: Add a laser to my CNC
« on: February 11, 2016, 04:18:29 PM »
I found out what was going on with the manual spindle control of the laser. If you set the spindle too high the laser does not see the PWM signal. The slider bar for spindle is defaulted 0-250%. Not sure why it goes that high? I changed this to 0-100%


95
Mach4 General Discussion / Re: Add a laser to my CNC
« on: February 03, 2016, 08:18:53 PM »
Got to play with the laser a little more today. The spindle start on each feed move was causing the toolpaths to be a little jerky. I replaced these with a laser on for a plunge and a laser off for a retract. I have changed my machine to exact stop instead of constant velocity. I plan on playing with this a little more in the next few days.

I still can't figure out how to turn off the laser on an eStop. Also, I tried making a button to turn on the spindle but did not get it to work. Any suggestions?

Here is the post processor code I am currently using. Will let you know how it goes.

Code: [Select]
+================================================
+                                               
+ Mach2/3 - Vectric machine output configuration file   
+                                               
+================================================
+                                               
+ History                                       
+                                               
+ Who      When       What                         
+ ======== ========== ===========================
+ Tony     15/11/2005 Written
+ Tony     06/01/2006 Added ATC option   
+ Tony     14/05/2006 Fixed G20 inch in header   
+ Tony     24/07/2006 Added G2 & G3 Arc support + removed (( ))
+ Tony     18/06/2007 Replaced the Tool comment       
+ Mark     14/08/2008 Added G1 to Feed moves, added New_Segment
+                     Removed 2nd G20 in header.
+ Mark     28/08/2009 Added G91.1 to force use of incremental arcs
+                     Added Substitution, File & Toolpath Notes.
+ Mark     30/11/2009 Added TOOLPATHS_OUTPUT.
+ Brian    15/12/2009 Remove M05 from NEW_SEGMENT
+ Mark     18/01/2014 Added Dwell
+Peter     2/1/16     Converted to Laser
+Peter     2/3/16     Used plunge and retract commands instead of spindle start on each move to avoid jerkey moves
+================================================

POST_NAME = "Mach Laser Arcs (inch) (*.txt)"

FILE_EXTENSION = "txt"

UNITS = "inches"

DIRECT_OUTPUT = "Mach|Mach4.Document"

SUBSTITUTE = "({)}"

+------------------------------------------------
+    Line terminating characters                 
+------------------------------------------------

LINE_ENDING = "[13][10]"

+------------------------------------------------
+    Block numbering                             
+------------------------------------------------

LINE_NUMBER_START     = 0
LINE_NUMBER_INCREMENT = 10
LINE_NUMBER_MAXIMUM = 999999

+================================================
+                                               
+    Formating for variables                     
+                                               
+================================================

VAR LINE_NUMBER = [N|A|N|1.0]
VAR SPINDLE_SPEED = [S|A|S|1.0]
VAR FEED_RATE = [F|C|F|1.1]
VAR X_POSITION = [X|A|X|1.4]
VAR Y_POSITION = [Y|A|Y|1.4]
VAR Z_POSITION = [Z|A|Z|1.4]
VAR ARC_CENTRE_I_INC_POSITION = [I|A|I|1.4]
VAR ARC_CENTRE_J_INC_POSITION = [J|A|J|1.4]
VAR X_HOME_POSITION = [XH|A|X|1.4]
VAR Y_HOME_POSITION = [YH|A|Y|1.4]
VAR Z_HOME_POSITION = [ZH|A|Z|1.4]
VAR SAFE_Z_HEIGHT = [SAFEZ|A|Z|1.4]
VAR DWELL_TIME = [DWELL|A|P|1.2]
+================================================
+                                               
+    Block definitions for toolpath output       
+                                               
+================================================

+---------------------------------------------------
+  Commands output at the start of the file
+---------------------------------------------------

begin HEADER
"[N]M05"
"( [TP_FILENAME] )"
"( File created: [DATE] - [TIME])"
"( for Mach2/3 from Vectric )"
"( Material Size)"
"( X= [XLENGTH], Y= [YLENGTH], Z= [ZLENGTH])"
"([FILE_NOTES])"
"(Toolpaths used in this file:)"
"([TOOLPATHS_OUTPUT])"
"(Tools used in this file: )"
"([TOOLS_USED])"
"[N]G00G20G17G90G40G49G80"
"[N]G70G91.1"
"[N] (Tool: [TOOLNAME])"
"[N](Toolpath:- [TOOLPATH_NAME])"
"[N]([TOOLPATH_NOTES])"
"[N]G94"
"[N][XH][YH][F]"

+---------------------------------------------------
+  Commands output for rapid moves
+---------------------------------------------------

begin RAPID_MOVE

"[N]M05"
"[N]G00[X][Y]"


+---------------------------------------------------
+  Commands output for the first feed rate move
+---------------------------------------------------

begin FIRST_FEED_MOVE

"[N]G1[X][Y][F]"


+---------------------------------------------------
+  Commands output for feed rate moves
+---------------------------------------------------

begin FEED_MOVE

"[N]G1[X][Y]"

+---------------------------------------------------
+  Commands output for the first clockwise arc move
+---------------------------------------------------

begin FIRST_CW_ARC_MOVE

"[N]G2[X][Y][I][J][F]"

+---------------------------------------------------
+  Commands output for clockwise arc  move
+---------------------------------------------------

begin CW_ARC_MOVE

"[N]G2[X][Y][I][J]"

+---------------------------------------------------
+  Commands output for the first counterclockwise arc move
+---------------------------------------------------

begin FIRST_CCW_ARC_MOVE

"[N]G3[X][Y][I][J][F]"

+---------------------------------------------------
+  Commands output for counterclockwise arc  move
+---------------------------------------------------

begin CCW_ARC_MOVE

"[N]G3[X][Y][I][J]"


+---------------------------------------------------
+  Commands output for a new segment - toolpath
+  with same toolnumber but maybe different feedrates
+---------------------------------------------------

begin NEW_SEGMENT

"([TOOLPATH_NAME])"
"([TOOLPATH_NOTES])"

+ ---------------------------------------------------
+  Commands output for Retract Moves
+ ---------------------------------------------------
begin PLUNGE_MOVE

"[N][S]M03"

+ ---------------------------------------------------
+  Commands output for Retract Moves
+ ---------------------------------------------------
begin RETRACT_MOVE

"[N]M05"

+---------------------------------------------
+  Commands output for a dwell move
+---------------------------------------------

begin DWELL_MOVE

"[N]G04 [DWELL]"

+---------------------------------------------------
+  Commands output at the end of the file
+---------------------------------------------------

begin FOOTER

"[N]M05"
"[N]G00[ZH]"
"[N]G00[XH][YH]"
"[N]M09"
"[N]M30"
%




96
Mach4 General Discussion / Re: Add a laser to my CNC
« on: February 02, 2016, 07:21:40 PM »
Burned a logo for the local sailing club in the back of a leather jacket I got at Goodwill today. It work fine. The lines were rather thin. I may try defocusing the laser to see if it gives a better result. Anyone tried doing leather with a laser? Tips would be appreciated.

Also, found an error in the post processor for Vcarve. Here is an update:

Code: [Select]
    +================================================
    +                                               
    + Mach2/3 - Vectric machine output configuration file   
    +                                               
    +================================================
    +                                               
    + History                                       
    +                                               
    + Who      When       What                         
    + ======== ========== ===========================
    + Tony     15/11/2005 Written
    + Tony     06/01/2006 Added ATC option   
    + Tony     14/05/2006 Fixed G20 inch in header   
    + Tony     24/07/2006 Added G2 & G3 Arc support + removed (( ))
    + Tony     18/06/2007 Replaced the Tool comment       
    + Mark     14/08/2008 Added G1 to Feed moves, added New_Segment
    +                     Removed 2nd G20 in header.
    + Mark     28/08/2009 Added G91.1 to force use of incremental arcs
    +                     Added Substitution, File & Toolpath Notes.
    + Mark     30/11/2009 Added TOOLPATHS_OUTPUT.
    + Brian    15/12/2009 Remove M05 from NEW_SEGMENT
    + Mark     18/01/2014 Added Dwell
    +Peter     2/1/16     Converted to Laser
    +================================================

    POST_NAME = "Mach Laser Arcs (inch) (*.txt)"

    FILE_EXTENSION = "txt"

    UNITS = "inches"

    DIRECT_OUTPUT = "Mach|Mach4.Document"

    SUBSTITUTE = "({)}"

    +------------------------------------------------
    +    Line terminating characters                 
    +------------------------------------------------

    LINE_ENDING = "[13][10]"

    +------------------------------------------------
    +    Block numbering                             
    +------------------------------------------------

    LINE_NUMBER_START     = 0
    LINE_NUMBER_INCREMENT = 10
    LINE_NUMBER_MAXIMUM = 999999

    +================================================
    +                                               
    +    Formating for variables                     
    +                                               
    +================================================

    VAR LINE_NUMBER = [N|A|N|1.0]
    VAR SPINDLE_SPEED = [S|A|S|1.0]
    VAR FEED_RATE = [F|C|F|1.1]
    VAR X_POSITION = [X|A|X|1.4]
    VAR Y_POSITION = [Y|A|Y|1.4]
    VAR Z_POSITION = [Z|A|Z|1.4]
    VAR ARC_CENTRE_I_INC_POSITION = [I|A|I|1.4]
    VAR ARC_CENTRE_J_INC_POSITION = [J|A|J|1.4]
    VAR X_HOME_POSITION = [XH|A|X|1.4]
    VAR Y_HOME_POSITION = [YH|A|Y|1.4]
    VAR Z_HOME_POSITION = [ZH|A|Z|1.4]
    VAR SAFE_Z_HEIGHT = [SAFEZ|A|Z|1.4]
    VAR DWELL_TIME = [DWELL|A|P|1.2]
    +================================================
    +                                               
    +    Block definitions for toolpath output       
    +                                               
    +================================================

    +---------------------------------------------------
    +  Commands output at the start of the file
    +---------------------------------------------------

    begin HEADER

    "( [TP_FILENAME] )"
    "( File created: [DATE] - [TIME])"
    "( for Mach2/3 from Vectric )"
    "( Material Size)"
    "( X= [XLENGTH], Y= [YLENGTH], Z= [ZLENGTH])"
    "([FILE_NOTES])"
    "(Toolpaths used in this file:)"
    "([TOOLPATHS_OUTPUT])"
    "(Tools used in this file: )"
    "([TOOLS_USED])"
    "[N]G00G20G17G90G40G49G80"
    "[N]G70G91.1"
    "[N] (Tool: [TOOLNAME])"
    "[N]G00G43[ZH]H[T]"
    "[N](Toolpath:- [TOOLPATH_NAME])"
    "[N]([TOOLPATH_NOTES])"
    "[N]G94"
    "[N][XH][YH][F]"

    +---------------------------------------------------
    +  Commands output for rapid moves
    +---------------------------------------------------

    begin RAPID_MOVE

    "[N]M05"
    "[N]G00[X][Y]"


    +---------------------------------------------------
    +  Commands output for the first feed rate move
    +---------------------------------------------------

    begin FIRST_FEED_MOVE

    "[N][S]M03"
    "[N]G1[X][Y][F]"


    +---------------------------------------------------
    +  Commands output for feed rate moves
    +---------------------------------------------------

    begin FEED_MOVE

    "[N][S]M03"
    "[N]G1[X][Y]"

    +---------------------------------------------------
    +  Commands output for the first clockwise arc move
    +---------------------------------------------------

    begin FIRST_CW_ARC_MOVE

    "[N][S]M03"
    "[N]G2[X][Y][I][J][F]"

    +---------------------------------------------------
    +  Commands output for clockwise arc  move
    +---------------------------------------------------

    begin CW_ARC_MOVE

    "[N][S]M03"
    "[N]G2[X][Y][I][J]"

    +---------------------------------------------------
    +  Commands output for the first counterclockwise arc move
    +---------------------------------------------------

    begin FIRST_CCW_ARC_MOVE

    "[N][S]M03"
    "[N]G3[X][Y][I][J][F]"

    +---------------------------------------------------
    +  Commands output for counterclockwise arc  move
    +---------------------------------------------------

    begin CCW_ARC_MOVE

    "[N][S]M03"
    "[N]G3[X][Y][I][J]"

    +---------------------------------------------------
    +  Commands output at toolchange (Commented out)
    +---------------------------------------------------

    begin TOOLCHANGE

    +[N]T[T]M6
    +[N] (Tool: [TOOLNAME])
    +[N]G43H[T]


    +---------------------------------------------------
    +  Commands output for a new segment - toolpath
    +  with same toolnumber but maybe different feedrates
    +---------------------------------------------------

    begin NEW_SEGMENT

    "[N][S]M03"
    "([TOOLPATH_NAME])"
    "([TOOLPATH_NOTES])"


    +---------------------------------------------
    +  Commands output for a dwell move
    +---------------------------------------------

    begin DWELL_MOVE

    "G04 [DWELL]"

    +---------------------------------------------------
    +  Commands output at the end of the file
    +---------------------------------------------------

    begin FOOTER

    "[N]M05"
    "[N]G00[ZH]"
    "[N]G00[XH][YH]"
    "[N]M09"
    "[N]M30"
    %


97
Mach4 General Discussion / Re: Add a laser to my CNC
« on: February 01, 2016, 04:58:52 PM »
The laser will cut through masking tape so you can make your own paint masks for fancy items - too cool!

98
Mach4 General Discussion / Re: Add a laser to my CNC
« on: February 01, 2016, 04:49:55 PM »
Yeaaaaa - I got the post processor for Vcarve Pro working for my laser. I added a spindle start (m03) before any feed type moves and spindle stop (M05) before a rapid move. I also added a M05 to the header and footer just in case. I guess it is possible for the file to end up at the home point and not engage a rapid move therefore leaving the laser on.

Disclaimer - use this at your own risk.

Here is the code - You need to copy down to the % mark. I had to put this post in as a quote so the forum did not look at some of the code as code for formatting the post.

Code: [Select]
+================================================
+                                               
+ Mach2/3 - Vectric machine output configuration file   
+                                               
+================================================
+                                               
+ History                                       
+                                               
+ Who      When       What                         
+ ======== ========== ===========================
+ Tony     15/11/2005 Written
+ Tony     06/01/2006 Added ATC option   
+ Tony     14/05/2006 Fixed G20 inch in header   
+ Tony     24/07/2006 Added G2 & G3 Arc support + removed (( ))
+ Tony     18/06/2007 Replaced the Tool comment       
+ Mark     14/08/2008 Added G1 to Feed moves, added New_Segment
+                     Removed 2nd G20 in header.
+ Mark     28/08/2009 Added G91.1 to force use of incremental arcs
+                     Added Substitution, File & Toolpath Notes.
+ Mark     30/11/2009 Added TOOLPATHS_OUTPUT.
+ Brian    15/12/2009 Remove M05 from NEW_SEGMENT
+ Mark     18/01/2014 Added Dwell
+Peter     2/1/16     Converted to Laser
+================================================

POST_NAME = "Mach Laser Arcs (inch) (*.txt)"

FILE_EXTENSION = "txt"

UNITS = "inches"

DIRECT_OUTPUT = "Mach|Mach4.Document"

SUBSTITUTE = "({)}"

+------------------------------------------------
+    Line terminating characters                 
+------------------------------------------------

LINE_ENDING = "[13][10]"

+------------------------------------------------
+    Block numbering                             
+------------------------------------------------

LINE_NUMBER_START     = 0
LINE_NUMBER_INCREMENT = 10
LINE_NUMBER_MAXIMUM = 999999

+================================================
+                                               
+    Formating for variables                     
+                                               
+================================================

VAR LINE_NUMBER = [N|A|N|1.0]
VAR SPINDLE_SPEED = [S|A|S|1.0]
VAR FEED_RATE = [F|C|F|1.1]
VAR X_POSITION = [X|A|X|1.4]
VAR Y_POSITION = [Y|A|Y|1.4]
VAR Z_POSITION = [Z|A|Z|1.4]
VAR ARC_CENTRE_I_INC_POSITION = [I|A|I|1.4]
VAR ARC_CENTRE_J_INC_POSITION = [J|A|J|1.4]
VAR X_HOME_POSITION = [XH|A|X|1.4]
VAR Y_HOME_POSITION = [YH|A|Y|1.4]
VAR Z_HOME_POSITION = [ZH|A|Z|1.4]
VAR SAFE_Z_HEIGHT = [SAFEZ|A|Z|1.4]
VAR DWELL_TIME = [DWELL|A|P|1.2]
+================================================
+                                               
+    Block definitions for toolpath output       
+                                               
+================================================

+---------------------------------------------------
+  Commands output at the start of the file
+---------------------------------------------------

begin HEADER

"( [TP_FILENAME] )"
"( File created: [DATE] - [TIME])"
"( for Mach2/3 from Vectric )"
"( Material Size)"
"( X= [XLENGTH], Y= [YLENGTH], Z= [ZLENGTH])"
"([FILE_NOTES])"
"(Toolpaths used in this file:)"
"([TOOLPATHS_OUTPUT])"
"(Tools used in this file: )"
"([TOOLS_USED])"
"[N]G00G20G17G90G40G49G80"
"[N]G70G91.1"
"[N]T[T]M06"
"[N] (Tool: [TOOLNAME])"
"[N]G00G43[ZH]H[T]"
"[N](Toolpath:- [TOOLPATH_NAME])"
"[N]([TOOLPATH_NOTES])"
"[N]G94"
"[N][XH][YH][F]"

+---------------------------------------------------
+  Commands output for rapid moves
+---------------------------------------------------

begin RAPID_MOVE

"[N]M05"
"[N]G00[X][Y]"


+---------------------------------------------------
+  Commands output for the first feed rate move
+---------------------------------------------------

begin FIRST_FEED_MOVE

"[N][S]M03"
"[N]G1[X][Y][F]"


+---------------------------------------------------
+  Commands output for feed rate moves
+---------------------------------------------------

begin FEED_MOVE

"[N][S]M03"
"[N]G1[X][Y]"

+---------------------------------------------------
+  Commands output for the first clockwise arc move
+---------------------------------------------------

begin FIRST_CW_ARC_MOVE

"[N][S]M03"
"[N]G2[X][Y][I][J][F]"

+---------------------------------------------------
+  Commands output for clockwise arc  move
+---------------------------------------------------

begin CW_ARC_MOVE

"[N][S]M03"
"[N]G2[X][Y][I][J]"

+---------------------------------------------------
+  Commands output for the first counterclockwise arc move
+---------------------------------------------------

begin FIRST_CCW_ARC_MOVE

"[N][S]M03"
"[N]G3[X][Y][I][J][F]"

+---------------------------------------------------
+  Commands output for counterclockwise arc  move
+---------------------------------------------------

begin CCW_ARC_MOVE

"[N][S]M03"
"[N]G3[X][Y][I][J]"

+---------------------------------------------------
+  Commands output at toolchange (Commented out)
+---------------------------------------------------

begin TOOLCHANGE

+[N]T[T]M6
+[N] (Tool: [TOOLNAME])
+[N]G43H[T]


+---------------------------------------------------
+  Commands output for a new segment - toolpath
+  with same toolnumber but maybe different feedrates
+---------------------------------------------------

begin NEW_SEGMENT

"[N][S]M03"
"([TOOLPATH_NAME])"
"([TOOLPATH_NOTES])"


+---------------------------------------------
+  Commands output for a dwell move
+---------------------------------------------

begin DWELL_MOVE

"G04 [DWELL]"

+---------------------------------------------------
+  Commands output at the end of the file
+---------------------------------------------------

begin FOOTER

"[N]M05"
"[N]G00[ZH]"
"[N]G00[XH][YH]"
"[N]M09"
"[N]M30"
%

99
Mach4 General Discussion / Re: Add a laser to my CNC
« on: February 01, 2016, 11:24:38 AM »
Yea - I got the laser to work!!! Right now I am using the normal post processor for Vcarve Pro so it turns on the spindle at the beginning and turns it off at the end. This causes light tails between the toolpaths when a rapid move occurs. On wood it can be sanded off easily. Today I will try to edit my post processor to turn on an off the spindle when the Z axis goes down and up. I will see if this is fast enough.

The engraving on the cutting board was done at a feedrate of 5 i/s and a rapid of 150 i/s. The Z axis was set at .05" with a plunge rate of 150 i/s. I used ramps to start each line so it did not put a little black dot at the beginning of the line. The engraving is on a bamboo cutting board that was purchased at Publix. The engraving is deep enough to feel with your fingernail.  So far I am pleased with the elCheapo laser. I purchased the v3.0 laser that has 3W of power and PWM control of the laser.

I will post something if I get my post processor to work to turn on and off the laser.

100
Mach4 General Discussion / Re: Add a laser to my CNC
« on: January 30, 2016, 09:28:22 PM »
I got the laser working on my machine today. As Steve suggested I used the spindle control to activate the laser PWM. The only downside is the laser stays on even when making rapid moves. Since it moves the focal length with the Z axis movement it may not be a big problem. So far I have drawn shapes and have not played with complex patterns. Will try more tomorrow - stand by.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 »