z axis and fixed plate position

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

z axis and fixed plate position

Postby CNC_ROBOTICS » Tue Feb 06, 2018 3:02 pm

Hello
I use 2017 Screenset and i want my z axis to remain at clearance plane z value after measuring at fixed plate position .
What i need to write in post processor ?

gcode example with my postprocesor
N183910G1X79.394Y402.241Z-0.092
N183920G00X79.394Y402.241Z6.000
N183930 M5
N183940 M6 T6
N183950 (Tool: Ball Nose 2 mm})
N183960S16000M03
(Pocket 1)
()
N183990G00X20.035Y103.132Z6.000 (here is the problem )
N184000G00X20.035Y103.132Z2.000
N184010G1X20.035Y103.132Z-0.917F600.0
N184020G3X19.935Y103.232I-0.100J0.000F1300.0


only the first part from my postprocesor
+---------------------------------------------------
+ Commands output for rapid moves
+---------------------------------------------------

begin RAPID_MOVE

"[N]G00[X][Y][Z]"


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

begin FIRST_FEED_MOVE

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


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

begin FEED_MOVE

"[N]G1[X][Y][Z]"
CNC_ROBOTICS
 
Posts: 8
Joined: Tue Dec 26, 2017 6:00 pm

Re: z axis and fixed plate position

Postby ger21 » Tue Feb 06, 2018 3:59 pm

I don't think it's that simple. If you remove the Z move from the post, you'll probably end up with the tool being dragged through your part.

I think that you just need to change the Home/Start position and rapid gap settings in V Carve or Aspire to do what you want.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2663
Joined: Sat Sep 03, 2016 2:17 am

Re: z axis and fixed plate position

Postby CNC_ROBOTICS » Tue Feb 06, 2018 4:29 pm

The problem is when cnc finish measuring new tool on fixed plate all axis start to move to material but z axis begin to come down and is very close to clamps.
The only solution is to modiffy rapid gap settings in V Carve or Aspire ?
CNC_ROBOTICS
 
Posts: 8
Joined: Tue Dec 26, 2017 6:00 pm

Re: z axis and fixed plate position

Postby ger21 » Tue Feb 06, 2018 5:42 pm

I think so. Your rapid gap setting in Aspire should be above your clamps.


You could also modify the M6 macro to move the tool to a certain position, say X0 Y0, while still at the Clearance Plane, before the g-code resumes?
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2663
Joined: Sat Sep 03, 2016 2:17 am

Re: z axis and fixed plate position

Postby CNC_ROBOTICS » Tue Feb 06, 2018 5:48 pm

ok , i will try to modify the M6 macro
Thanks Gerry
CNC_ROBOTICS
 
Posts: 8
Joined: Tue Dec 26, 2017 6:00 pm

Re: z axis and fixed plate position

Postby Sword » Tue Feb 06, 2018 11:15 pm

If I understand what your issue is, I think what you want is the "begin INITIAL_RAPID_MOVE" to keep the Z at the safe Z height. Here's a snip of my custom PP for Aspire/VCP.

(I hate all those line numbers in my code! It drives my eyes crazy when trying to read through it, so I've eliminated all 'N' parameters and also added spaces between X Y Z values to make the code more readable)

"G0 [ZH]"
"G0 [XH] [YH]"

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

begin INITIAL_RAPID_MOVE

"G0 [X] [Y] [ZH]"


begin RAPID_MOVE

"G0 [X] [Y] [Z]"


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

begin FIRST_FEED_MOVE

"G1 [X] [Y] [Z] [F]"


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

begin FEED_MOVE

"G1 [X] [Y] [Z]"
Sword
 
Posts: 16
Joined: Fri Dec 08, 2017 10:45 pm


Return to Macros

Who is online

Users browsing this forum: No registered users and 5 guests