Machsupport Forum

Mach Discussion => Mach Screens => Screen designer tips and tutorials => Topic started by: senertek on September 06, 2016, 06:39:13 AM

Title: how can use input1 and input2 for stop the program and do something.?
Post by: senertek on September 06, 2016, 06:39:13 AM
I need to do with mach3 ;  I want to use input1 and input2 like filament absence dedector...

When input1  is low ( this input for my 1. filament absence dedector) ....I want to stop program  and record to registers X - Y - Z  - A - B from dro reads.... and go ...   g01 x150 y -150  z0 ......machine will wait filament remplacement  ....after loading remplacing the filament  ...I need one  filament change OK BUTTON to click  with a  script , for continue the program from where his stoped.....( I need to reload old A dro data and old B dro datas to  DRO's ....because at the time of changing filaments I need to +   or -   .axes A and B .....and continue )

When input2  is low ( this input for my 1. filament absence dedector) ....I want to stop program  and record to registers X - Y - Z  - A - B from dro reads.... and go ...   g01 x150 y -150  z0 ......machine will wait filament remplacement  ....after loading remplacing the filament  ...I need one  filament change OK BUTTON  with a  script , for continue the program from where his stoped.....( I need to reload old A dro data and old B dro datas to  DRO's ....because at the time of changing filaments I need to +   or -   .axes A and B .....and continue )

note: as you seen in the picture , I have led's for input 1  and input2 ...and when the inputs occurs I can see by leds..

thanks in advance
Title: Re: how can use input1 and input2 for stop the program and do something.?
Post by: senertek on September 06, 2016, 06:40:36 AM
how can ı do that ?