Quick Update: After numerous simulations, the Alpha software (1,800 lines of C code) is running live tests on the 4th axis. The test programs run all night and so far are stable.
Working features (so far) are:
*Communicating with MACH thru serial Modbus, one MACH Brain and a series of macros.
*'Wait states' implemented. PLC genrates a 'Speed Reached' signal used to make MACH wait until accell/decel events are completed before MACH continues.
*Interrupt driven E-stop forces immediate signal to MACH regardles of what the PLC was doing at the time.
*Accell/Decel is autonomous and completely independent of MACH. Controlled by two parameters configurable 'on the fly' via macro.
example: Speed set to 450 RPM (spindle RPM) M3 to M4 causes automatic smooth Decel to a stop, dir change, accel back to set speed.
*RPM max limit is configurable 'on the fly' via macro. User enters spindle RPM (or SFM in AutoSpeed) and back gear is calculated automatically.
commanded RPM that exceeds RPM max is held at RPM max and a warning indicator (or LCD message) informs operator of overspeed.
no error or E-stop need to be generated and when RPM drops back, indicators go off and operation continues without interruption.
*'AutoSpeed Mode': user supplies desired SFM and speed is automatically controlled via position of the Z or Y axis
Speedmatch feature allows switching 'on the fly' into or out of AutoSpeed and the spindle will accel/decell to the set speed of the new mode.
Z or Y axis coords are fed to the PLC and the PLC feeds back current RPM via MACH Brain. This is another 'machining center' capability brought to the benchtop.
One step further = G95 feedrate results in automatic feedrate changes based on PLC reported RPM.
*'Manual Mode': full manual control 'uncoupled from Mach via control panel. Accel/Decel, max speed, E-stop fully functional even in manual mode. There is lots more, but this is the basics so far.