Hello Guest it is April 26, 2024, 01:30:37 AM

Author Topic: Mach 3 and 4 Electric Fall out  (Read 620 times)

0 Members and 1 Guest are viewing this topic.

Mach 3 and 4 Electric Fall out
« on: August 20, 2021, 03:35:37 AM »
Good morning,

I've worked on Mach 3 for a long time. After some i decided to go for Industrial Controllers because Mach 3 had a problem that i encountered many times. In my region we have a lot of electricity fall outs. So the lights just go out. Same goes for my CNC and for the PC.

Now, because i use pretty high travel speeds (13m/min - 18m/min), when the lights go out, the cnc still moves a very small amout because of the enertia.

When starting the PC/Mach3 and the CNC i realize that loading the code and using the Stop button, it jumps me to the last line the program worked on. This last line, is not really close to where i was, but this would not be the problem, as i can manually insert a line close to where it stopped.

The problem is the enertia, because i can not close Mach 3 accordingly it seems to not same my Coordinates. And doing that every time before a job is too much of a trouble.

So the lines don't match and the position is off.

Industrial Controllers rememeber the positon and also the Lines.


The question that i have: Is Mach 4 the same, or are these problems fixed?

Benjamin
Re: Mach 3 and 4 Electric Fall out
« Reply #1 on: August 20, 2021, 05:53:04 AM »
Hi,

Quote
The question that i have: Is Mach 4 the same, or are these problems fixed?

Overall Mach4 operates in very similar manner to Mach3, so no Mach4 has not, nor can it, solve that problem.
The issue is that Windows is not a realtime operating system and as a consequence all motion commands are buffered
by the controller, by sometimes as little as 50milliseconds but can be as much as 500milliseconds.

If a power outage occurs then the contents of the buffer are lost, and so Mach does not know exactly where the machine is,
which is also called 'loss of reference'. Thereafter you will have to Home the machine to re-establish reference, but that means real
trouble trying to pick up a job that you were part way through.

All Windows based CNC software solutions use the buffered motion model...in effect this is forced on them by the way Windows operates.
Industrial controllers however are realtime devices so that at any given instant the machine knows exactly where it is and there is no positional
loss at an unforeseen shutdown, excepting perhaps the axis motor deceleration due to inertia for which the motion controller can no longer track.

I can think of only one way that you could maintain reference across a power interrupted session would to be to use absolute encoders with
battery backup. This is more a hardware solution than it is about Mach or any other controller. Many servo manufacturers are offering absolute encoders,
sometimes so called multi-turn encoders and many with battery backup.

You will often see then advertised as 24bit, sometimes 27 bit and even 30 bit encoders.

Imagine you have a 24 bit multi-turn encoder, its possible to use 8 bits to record the number of complete revolutions from the home position and the
remaining 16 bits to record the angular position within that one revolution. Additionally should the power drop out the battery or supercap backup will hold
the data until power is restored, up to many months later. At repower the machine would know exactly where it is WITHOUT having to re-home.
I suspect that for the data to be accurate the power to the servo, or more importantly and correctly, the encoder assembly would need to remain
un-interrupted until the machine had decelerated or coasted to a stop, but within that exception the machine would retain accurate machine coordinates
across machine power cycles.

If I'm not mistaken Delta A3 series servos are of this type.

This is the only way to my knowledge that Mach4 can maintain accurate machine coordinates across different sessions, and I believe it is the exact same
method that pro controllers use also, but I'm not familiar enough with them to be 100% on that.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach 3 and 4 Electric Fall out
« Reply #2 on: August 20, 2021, 06:02:05 AM »
Thank you, i think this answered my question.
Re: Mach 3 and 4 Electric Fall out
« Reply #3 on: August 20, 2021, 07:26:10 AM »
i start use absolute encoder
if you want to use absolute encoder(i use chines ,every driver this days suport also absolute encoder)you need :
1.read the value from driver(can by etherecat or by rs485 )
2.update mach with the position (this was the hard part becuse even mach have lua function that update the machine cordinate ,its not real work)