Slightly different take on things, but still the safety issue.
I have beautiful 3 phase hybrid stepper drivers, supplied direct from 220vAC (wish they were rated for 240!!)
Internally, rectified mains. All opto isolated control inputs.
They can be run without a transformer, but manufacturer recommends isolation transformer.
Suits me, as I can step 240 down to 220.
Main reason for transformer, is that if a motor winding breaks down to ground it can destroy things rapidly.
If the machine is not earthed solidly, it can become a death trap!
You can't add safety detection, for seeing if the earth is good, as it, by definition, this breaks the isolation rules of many electrical standards which specify solid bonded earth, with no current flowing through it.
How can you measure earth continuity without having some (albeit) small current flow?
Then the measurement circuit becomes a safety issue... and so on.
Would be nice to just use an auto transformer to get from 240 to 220 but the cost saving is just not worth it when it comes to SAFETY.
This is $400 worth of safety insurance.
Transient spikes within inductive devices, like motors, can break down the insulation.
That transformer gets rid of the transient problem.
USE A TRANSFORMER !!, unless it is running on mars, away from humans, transients and safety regulations.
Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.