Hello! I have a VFD that I can nicely start and stop with an output from 7i84 board, but customer does not like the fact that I replicated original solution of setting spindle speed with potentiometer. They want to do that from g-code so that it is consistent and not a subject for operator to mess up. Unfortunately all analog outputs on 7i33 board are already used for servodrives so I would prefer avoiding adding more boards. It is Invertek Optidrive E3 VFD and I have usb-to-rs485 converter. lsusb shows it as CH340 chip. With some other commands I was able to determine that it is using ttyUSB0 port.
Here is the section of Optidrive E3 manual that describes the modbus message contents: https://ibb.co/PzFsq8fP And according to manual I can still have start/stop signal the way I have now even when the drive is in Modbus mode so what I would need is to send the frequency value (optionally - read actual frequency to determine "spindle-at-speed" and "spindle-is-stopped"): https://ibb.co/PGXK2gW5 I tried searching web of how to start and went for mb2hal route. In HAL file I have: loadusr -W mb2hal config=mb2hal.ini Here is contents of mb2hal.ini file: https://pastebin.com/h9qHcPR1 I tried looking at pins of mb2hal component in HalShow but the only thing that was changing was a pin that shows number of errors. mb2hal.ini file has 2 entries about debug messages but I did not even understand where to find them so at the moment I have exactly no idea what is wrong and how to proceed so I would appreciate if someone could hold my hand and then gently poke in correct direction. It seems like a basic thing of what people are doing with VFDs over modbus but I have never done that. Viesturs _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
