Getting closer now, had to take a break from the machine for a bit due to changes in my day job. Back at it now. I'm getting closer with the axis tuning, but still not quite perfect. The spindle working as an axis is buttery smooth, I love it.
Still working on this Z axis brake issue. Trying to write a DSPMacro to turn the output on when the pid is on and the output off when the pid is off. It does not seem to be working for me though. I tried simple and best I could get was a flash on the output led when I hit the Run/Stop button in the macro loader. I've gotten a little more complicated in the macro and can get the output to stay on but only when I hit the Run/Stop button. With the autorun on I get no changes in state of the output when I hit reset in Mach or arm/disarm the pid like I would expect to see. Looking for some suggestions from seasoned DSPMacro users.
This is what I currently have loaded in the dspmc:
SetDSPData(44, 0) :REM Turn off brake output
1000
IF GetDSPData(35) = 0 Then GOTO 1000 :REM PID State
SetDSPData(44, 1) :REM Turn on brake output
Print "Brake output on"
1001
IF GetDSPData(35) = 1 Then GOTO 1001
Here is another version that I tried:
PID = GetDSPData(35)
If PID = 0 Then GOTO 2000 :REM PID State
1000
SetDSPData(44, 1) :REM Turn on brake output
Print "Brake output on"
GOTO 3000
2000
SetDSPData(44, 0) :REM Turn off brake output
Print "Brake output off"
3000
Print "Output State = "; GetDSPData(44)