Hello Guest it is October 22, 2019, 08:10:24 AM

Author Topic: Insert a sequence anywhere on toolpath?  (Read 3246 times)

0 Members and 1 Guest are viewing this topic.

Insert a sequence anywhere on toolpath?
« on: July 16, 2013, 06:06:51 AM »
Hi,

Is it possible to insert a certain sequence (like our machine's plate sensing sequence - consist of 5 lines) anywhere on the toolpath?

The reason is sometimes you get a problem and plasma stops in the middle of a cut - BUT the current height is lower/higher than the start point. No you have to go back and start the last cut sequence again and let the torch run to the point where it stopped... And then the height is different and that causes errors!

I just thought it would be nice if you could start the machine right where it is with the click of a button that inserts a few lines (Plate sensing Sequence) and then continue on the path as before...

Anybody any ideas?

CD

Offline BR549

*
  •  6,902 6,902
    • View Profile
Re: Insert a sequence anywhere on toolpath?
« Reply #1 on: July 17, 2013, 11:18:02 AM »
Simply insert the plate sensing sequence into a button. Then when you need it press the button.

(;-) TP
Re: Insert a sequence anywhere on toolpath?
« Reply #2 on: July 18, 2013, 03:57:02 AM »
Thanx Terry! Worked!

 ;)
Re: Insert a sequence anywhere on toolpath?
« Reply #3 on: July 18, 2013, 09:56:55 AM »
OK... I thought it worked but something is strange...

This is the code I insert:
G28.1 Z8
G92 Z0
G00 Z2.5
G92 Z0
G00 Z100

The problem is now that for some reason Mach doesn't follow the sequence from top to bottom. It starts with the rapid move to Z100 and then do the G28.1 move and then do the offset to 2.5... I use exactly the same code in all parts we cut normally.

Am I doing something wrong or could I force it in a certain direction?

CD

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Insert a sequence anywhere on toolpath?
« Reply #4 on: July 18, 2013, 12:18:13 PM »
please post your button script code and which version of Mach.

Ian
Re: Insert a sequence anywhere on toolpath?
« Reply #5 on: July 18, 2013, 06:43:01 PM »
OK... I thought it worked but something is strange...

This is the code I insert:
G28.1 Z8
G92 Z0
G00 Z2.5
G92 Z0
G00 Z100

The problem is now that for some reason Mach doesn't follow the sequence from top to bottom. It starts with the rapid move to Z100 and then do the G28.1 move and then do the offset to 2.5... I use exactly the same code in all parts we cut normally.

Am I doing something wrong or could I force it in a certain direction?

CD
could force it like this

G28.1 Z8
While ismoving()
Wend
G92 Z0
While ismoving()
Wend
G00 Z2.5
While ismoving()
Wend
G92 Z0
While ismoving()
Wend
G00 Z100

just a thought

John
Re: Insert a sequence anywhere on toolpath?
« Reply #6 on: July 19, 2013, 04:05:40 AM »
Here is the code i used in the Button:

Code "G28.1 Z8"
Code "G92 Z0"
Code "G00 Z2.5"
Code "G92 Z0"
Code "G00 Z100"

I tried the sample of woodspinner... but did not work! Am I putting the wrong code in?

CD
Re: Insert a sequence anywhere on toolpath?
« Reply #7 on: July 19, 2013, 04:09:21 AM »
Oh... And it is Mach R3.043.066

CD

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Insert a sequence anywhere on toolpath?
« Reply #8 on: July 19, 2013, 04:52:26 AM »
Hood reports 066 as being bad for all sorts of reasons and I agree with him - why it's still being pushed as the latest "stable" release appears to be a mystery. Try 057 or 062 from here

Then try altering your code to...

Code: [Select]
Code "G28.1 Z8"
Code "G92 Z0"
Code "G00 Z2.5"
Code "G92 Z0"
Code "G00 Z100"
while isMoving()
  sleep 100
wend

if that doesn't help then depending on the version of Mach you use you may need...

Code: [Select]
Code "G28.1 Z8"
while isMoving()
  sleep 100
wend
Code "G92 Z0"
while isMoving()
  sleep 100
wend
Code "G00 Z2.5"
while isMoving()
  sleep 100
wend
Code "G92 Z0"
while isMoving()
  sleep 100
wend
Code "G00 Z100"
while isMoving()
  sleep 100
wend

Ian