I have an X200 VFD (a predecessor to the WJ200) I commanded with Modbus under Mach3, but am moving this to LinuxCNC. Same PC. So the hardware's fine. It's starting from a motherboard RS232 port that we've used for other things under Linux (and has an RS485 converter). VFD is programmed to respond to Modbus and has the proper number of motor poles and all that.
I found the WJ200 VFD code, and they're both Hitachi, and use the same Modbus commands. Same basic control regs. AFAIK the code should work. I don't know what all I need to do here. I just need to have Sxxx set the RPM, M3 makes it go, M0 makes it stop initially, but I will need some feedback (under the Mach3 setup, if the VFD overloaded and shut down or even if its breaker was off, nothing told Mach3). I'd like to have a display show actual RPM (as it ramps up/down) and VFD current but that's very far from "essential". I found the WJ200 man page, but I don't know what all I need to do. Google found me snippets of .hal code I put into my .hal. I added something that I think should change the baud rate, my VFD is set to 19200. loadusr -W wj200_vfd baud 19200 #default slave address is 1 setp wj200-vfd.0.mbslaveaddr 1 setp wj200-vfd.0.commanded-frequency 60 # connect to wj200-vfd pins net spindle-on wj200-vfd.0.run net spindle-cw wj200-vfd.0.reverse net spindle-at-speed wj200-vfd.0.is-at-speed No error messages, but M3 has no effect. Well, I would expect more needs to be done, that's the extent of what I know to do. I don't know what else to look up. Surely needs something on the .ini file but I can't just randomly mash the keyboard, I'll get the script for Hamlet before a working LinuxCNC config. Could I get a little help here? Danny ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users