6261
Mach4 General Discussion / Re: Mach4 Spindle At Speed, Spindle Zero Problem
« on: October 19, 2017, 01:47:31 AM »
Hi Hakan
This can be done quite easily and I don't think an Arduino is required or desirable.
This is a nightmare idea. I suspect that in New Zealand it would be illegal to have a machine start itself unless that machine were completely isolated from all
human contact. A restart of this nature should be under operator control.
In Mach3 there was the possibility to 'Run From Here', although many a CNCer came to rue the code, if it wasn't buggy it certainly seemed unpredictable and many
a job was wrecked as a result. There is no such code in Mach4, you would have to construct it. It really comes down to fictitiously running the Gcode up to the point
of the restart to determine the modals which were in operation prior to shutdown and incidentally the X,Y,Z cords at the point of shutdown. The restart requires the
machine drive to the required co-ords whether derived from the fictitious run or from memory as stored at the moment of shutdown, restart the spindle and <cycle start>.
All in all quite a programming undertaking for someone who confesses to be a Lua newbie. If you want a hand to code some sort of safe shutdown procedure as a result
of power failure or spindle speed failure I will help. I am VERY dubious about helping anyone code 'Run From Here' functionality particularly and especially if it is to be
automatic.
Craig
Quote
I am trying to make this logic work because there will be a AC line lost procedure which will be controlled by arduino, machine has internal ups, basically while machine working for hours if AC line lost occur arduino will take control and feed hold the machine first then record the coordinates and gcode line then it will park all axises to a location and shut down the power.
This can be done quite easily and I don't think an Arduino is required or desirable.
Quote
Then it will start to listen the AC line, when line comes back it will turn on the machine, goes to the coordinates recorded, input the gcode to Mach4 and goes to the last line and start from there. During this procedure it will check the spindle input but to be sure i need that function also in Mach4 so it wont dive in to part with spindle off which is very dangerous.
This is a nightmare idea. I suspect that in New Zealand it would be illegal to have a machine start itself unless that machine were completely isolated from all
human contact. A restart of this nature should be under operator control.
In Mach3 there was the possibility to 'Run From Here', although many a CNCer came to rue the code, if it wasn't buggy it certainly seemed unpredictable and many
a job was wrecked as a result. There is no such code in Mach4, you would have to construct it. It really comes down to fictitiously running the Gcode up to the point
of the restart to determine the modals which were in operation prior to shutdown and incidentally the X,Y,Z cords at the point of shutdown. The restart requires the
machine drive to the required co-ords whether derived from the fictitious run or from memory as stored at the moment of shutdown, restart the spindle and <cycle start>.
All in all quite a programming undertaking for someone who confesses to be a Lua newbie. If you want a hand to code some sort of safe shutdown procedure as a result
of power failure or spindle speed failure I will help. I am VERY dubious about helping anyone code 'Run From Here' functionality particularly and especially if it is to be
automatic.
Craig