Hi,
Newbie here.
Took me several hours to configure the hal to accept commands for the Spindle step, and C6 board logic... which is working fine now.
However, the GUI appears to allow going straight from forward to reverse, and doesn't take account of 'dwell time', i.e. spindle slowdown time before reversing.
I'm using a dreaded DC spindle ...... its connections for spindle control are
FWD
REV
COM
Closing COM to either FWD or REV activates to motor in the appropriate direction with M3 or M4, and shuts off with M5
The COM is fed to the ON-OFF Relay, and then onward to the common of FWD/REV relay .... the NO and NC contacts to the appropriate terminals on the drive.
BUT... I need a hal command that introduces a fixed delay ( say 5 seconds) to account for spindle slowdown, so that FWD/REV cant be switched if the motor is still running. Reason being it that it will 'smoke' the board with the back emf of a motor spinning in reverse etc.
Can anyone point me in the right direction please ?
Thanks
Keith