Linear Scales Implementation #365
Replies: 2 comments 2 replies
-
|
This is exactly what I have needed, too. Except my use case is even simpler since I decided to only have a stepper on the Z and keep the X fully manual. (I was fortunate enough to pick up a mini-lathe sized CNC lathe around the same time I got into NanoELS, so personally, I wanted to keep my NanoELS lathe more manual). I am very far from being able to code but and judging from your lingo, you actually do;). However, I have somehow with the help of AI(!) managed to put together a custom FW that has DRO on the X and I just got a scale installed on the Z, too so will get into the code again over the next few days to see how I can make that work. Not having a motor on the X made the scale implementation much simpler as there's no conflict between the ELS stepper counts and the scale. But let's see what I can make happen with the Z. I am thinking to just a have button switch between DRO/ELS mode. That would hopefully do the trick. Back to what I already did: There's a long-a** thread about my endeavours here but if you scroll towards the end, you will see the fruit of the labour;) If you are interested, you are more than welcome to take a look at my FW and see if any of it could work for you. That said, the DRO version of the FW is not shared in the threads above as it seems very few people need it and my threads are confusing enough as they are. Point being, just ask if you need it and I will send/share it. And since I have the lathe just next to me, I just shot a little clip of the DRO in action: BTW, you may want to start by figuring out if you will run into hardware limitations. I feel like I have read that the ESP "only" has four HW counters and I think they are used by the spindle encoder, any MPG hand wheels you may want - and the scales, too. So, maybe it wont actually be possible to have two scales, two handwheels and one spindle encoder all working at the same time? But this is speculation on my part. |
Beta Was this translation helpful? Give feedback.
-
|
ELS AND DRO WORKING |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am looking at implementing linear scales in H5. In looking at the code I realized that it is not straightforward as nanoels already tracks it's position via step counts (as one would expect). That means that the scales are of course not required when nanoels is in control.
However, I often times use the lathe manually, in which case nanoels cannot track the position.
Was there a design idea behind the scales implementation beyond the PCB headers? Was the intention to use the scales only when steppers are disabled or to use their position in lieu of the stepper position tracking internally?
I am starting this discussion just to steer my design so that if it gets done in the master branch, I don't end up too far off when rebasing :)
Beta Was this translation helpful? Give feedback.
All reactions