I have got a Boxford 160TCL which I am slowly getting running under EMC2.
The steppers work, all the Estops and limits work, now I am connecting the encoder.
My problem is that I cannot find how to display the motor revs in EMC2.
Using HAL Meter I can see that
encoder.0.counts pin increments with the motor running.
encoder.0.phase-A and phase-B both fluctuate from TRUE to FALSE
motion.spindle-revs is also an incrementing figure
I have inserted a PyVCP widget meter into AXIS linked to net rev-scaled
This was how I read someone else did it
This reads 0 all the time
When I linked to spindle-rpm filtered, it just displayed the commanded rpms, which as I have not connected up the motor in software yet is irrelevant.
The spindle speed is displayed when using Mach3, the encoder is a dual head with one timing slot and 100 timing holes further inboard for the second head.
I have widened the single slot to 6mm (from 4) to enable Mach3 to read it properly.
(Unfortunately Mach3 is completely unable to drive the steppers or I would stick with that, even if it is Windoze.)
Can anyone help? If there is an incremented count there must be a function that converts this to revs per minute that I can tap into, surely?