Well, I recreated it and confirmed cycling VFD power without rebooting LinuxCNC makes the spindle run again.
I looked into the HAL after the "Spindle CW" button breaks everything: enable TRUE is_alarm FALSE is_at_speed FALSE is_ready TRUE is_running TRUE reverse FALSE run TRUE watchdog_out TRUE compared with actually having it running with M3: is_at_speed becomes TRUE (duh) watchdog_out is FALSE Well, that's odd. IIRC the watchdog is not getting data back from the VFD in a timely fashion. It is somehow locked up so that does seem consistent with the situation. But no idea how it's getting locked up. The x200 VFD code sends a speed, dir, and run command and reads back the coils. Danny On 6/16/2016 11:04 AM, dan...@austin.rr.com wrote: > It's modbus, sorry forgot to mention that. > > What baffles me is the Spindle buttons on the panel, AFAIK, just map to the > same spindle-run in the HAL that M3 goes to. I remember looking at the HAL > monitor on this weeks ago and IIRC it was "spindle run true, but > spindle-isrunning false". The spindle isn't moving at all. I'll recheck the > HAL and take proper notes. > > And like I say, the VFD won't run again even if you reboot LinuxCNC. It will > run if I cycle power on the VFD. So, it's like it sent a toxic command to > the VFD that changed a reg to something unusable. I did make that x200_vfd.c > from the WJ200_vfd.c VFD code, but it wasn't a major change, and it's simple, > there's a run command, cw/ccw command (I made it so CCW just turns into CW), > rpm command, and reads is-running-at-speed and an error bit. > > It don't see where it could deliver something to de-configure the VFD, nor > why the Spindle panel buttons would do something different through the HAL > than you'd get by MDI M3. > > Danny > > > ---- andy pugh <bodge...@gmail.com> wrote: >> On 16 June 2016 at 07:57, Danny Miller <dan...@austin.rr.com> wrote: >> My MPG's "spindle" button works. >> >> On the default panel, ... Clicking any of that doesn't make the spindle go, >> >> It's not JUST that. Once you click on any of that, the VFD *will never >> run again* until power is cycled. > How fascinating.. > Can we see your HAL files? > > Is the spindle controlled by Modbus or DC voltage? What hardware? > ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users