Hi All,
I've been working on getting spindle control working through Mach4 for the last couple weeks and I think I have everything hardware wise in place or on order.
I'm running Mach4 and using an ESS connected to a C25 BoB.
These are controlling Clearpath Servos for X, Y, Z movements.
The spindle is belt drive at a 2.2:1 ratio. 1 rotation of motor = 2.2 rotations of spindle.
Motor is a 1.5Kw 3 phase induction motor wired for delta and is run by a Teco VFD.
I have a C41S-PWM Variable Speed Control Board on order to connect the VFD to the ESS.
Now to my problem... I'm not getting and feed back on Mach4.
I have a hall sensor pulsing off 4 magnets mounted equally around the spindle shaft.
This is connected to Port 2 Pin 3 input, +5v and ground.
When tested with multi meter, a LOW on the C25 BoB reads 2.5v and HIGH read 4.8v. And the indicator LED on pin 3 glows accordingly (not so bright to bright) as a magnet passes the hall sensor.
I'm not sure if it should behave like this and if this is the cause of the problem. I would have thought LOW should measure 0v and HIGH (as a magnet passes over) should measure around 5v.
I've gone through various setting in Mach, including pin setup and activating Spindle Encoder Phase A, trying Spindle Index option and more. I'm still not getting any response from Mach to acknowledge the presents of a spindle index or encoder.
I've been toiling with this for a couple weeks now and am open to any and all suggestions/ideas. I don't know if I've got Mach4 set up right or if the Hall sensor is faulty?
Initially the hall sensor was setup on an Arduino and reading the RPM of a small lego motor and it worked perfectly, but once it was setup on the mill spindle via the Arduino and display the readout went crazy.
Hall sensor Data sheet.
https://www.jaycar.co.nz/medias/sys_master/images/images/9369043927070/ZD1902-dataSheetMain.pdfBasically all I want is a real time actual RPM count of the spindle.
If I issue an M3 S1000 command how does Mach know the spindle is geared 2.2:1?