1
Mach4 General Discussion / Problem with spindle RPM DRO
« on: July 18, 2019, 11:32:42 PM »
I did a little bit of searching and I seem to be having a similar issue to this thread: https://www.machsupport.com/forum/index.php?topic=37473.msg256212#msg256212
I have a VFD, controlled via modbus that I can read the actual RPM back from. I've basically followed this link, with tweaks for a Durapulse GS3 VFD:
http://caldwellfam.net/bill/wp-content/uploads/2019/04/Connecting-a-VFD-to-Mach4-through-the-Modbus-v5.pdf
I can control the RPM, and I can read the RPM back from the VFD without a problem. The issue I am having is that when I try to update the droTrueSpindle DRO it flickers. According to the API documentation, the mcSpindleSetSensorRPM() function is "This API function is what spindle control plugins should use to report the spindle speed."
The flicker is between zero and whatever value I pass to mcSpindleSetSensorRPM() in my PLC script. Clearly something else is setting the spindle RPM to zero between the PLC service calls, but I have no idea where that is happening.
Am I using the wrong function? Should I be doing this differently?
I have a VFD, controlled via modbus that I can read the actual RPM back from. I've basically followed this link, with tweaks for a Durapulse GS3 VFD:
http://caldwellfam.net/bill/wp-content/uploads/2019/04/Connecting-a-VFD-to-Mach4-through-the-Modbus-v5.pdf
I can control the RPM, and I can read the RPM back from the VFD without a problem. The issue I am having is that when I try to update the droTrueSpindle DRO it flickers. According to the API documentation, the mcSpindleSetSensorRPM() function is "This API function is what spindle control plugins should use to report the spindle speed."
The flicker is between zero and whatever value I pass to mcSpindleSetSensorRPM() in my PLC script. Clearly something else is setting the spindle RPM to zero between the PLC service calls, but I have no idea where that is happening.
Am I using the wrong function? Should I be doing this differently?