
Originally Posted by
OT-CNC
Mactec thanks for chiming in.
The dmm drives seem to work fine, they are not losing position or faulting out. It's linuxcnc that gives me the errors as I have something off in the configuration. This may be a wrong value within linuxcnc or a parameter I set wrong in the drive. First I want to confirm that the pulsing is correct for the dmm drives. Would you agree with PCW on the step and direction pulse settings coming from his boards and Linuxcnc? (See post #3 above)
To not confuse readers, the drive has it's own internal gearing numbers and encoder scale separate from the configurations in linuxcnc and they have to match up to work properly. Here is what I have and correct me if any of this is wrong.
The drive is set internally for 1000 in the gear number and 1000 in the encoder pulse number. This translates to needing 4000 pulses from the controller for one revolution. The encoder also sends 4000 pulses per revolution back to the mesa card. My screw is 5 turns per inch, 5x4000=20,000 pulses per inch which gives me a step resolution of .00005" of travel per step.
If the host controller steps at 200,000 pulses per sec/4000 pulses per rev, we get 50 rev per sec or 3000 rpm, correct?
Now linuxcnc in the ini file wants steps per unit so I have entered 20,000 steps per inch both for step scale and encoder scale. This works and is correct with my jog motion. when I jog .2", the motor shaft turns 1 rev.
I assume this part is correct.
PCW,
Where do I find the position scale? Is this the same as step scale in the ini? If so, its the 20,000 steps per inch. BTW, in the pncconfig, under axis scale calculations the motor steps per rev box defaults to 1000 regardless of what numbers I try to enter. I assume that's a bug? So I just edit in the ini file.