Re: How do I add a 10 seconds delay after starting the spindle
Although I have loaded Mach to test some things, I have not really used it so I don't know if it is capable of simulating all the G,M,S,T codes the same way a system where the motion is controlled with a motion controller and a separate one for all the machine 'PLC' type codes.
Similar to standard industrial CNC systems.
But the advantage of handing over the general (M)achine instructions to PLC type control is, it is left to the CNC motion controller to act on all the motion positioning, servo's etc, if a Machine code is encountered it is a separate controller or process(sor). And the system will wait until the general machine controller completes its task and then issues a FIN(ish) signal to motion controller that the action has completed.
For example, this is how I have used the Up-to-speed mentioned in post #5, when the program encounters a M or S instruction, for example, The 'PLC' is advised that the S instruction is issued, and waits for the VFD Up-to-Speed output relay to activate, it then sends a FIN(ish) signal back to the motion controller to continue with the motion program.
Tool changing and other such operations work using the same method.
.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.