Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: sinkyster 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
-
Simply insert the plate sensing sequence into a button. Then when you need it press the button.
(;-) TP
-
Thanx Terry! Worked!
;)
-
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
-
please post your button script code and which version of Mach.
Ian
-
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
-
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
-
Oh... And it is Mach R3.043.066
CD
-
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 (ftp://machsupport.com/Mach/)
Then try altering your code to...
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 "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