Replies: 6 comments
-
i thought linuxcnc doesn't care if it's float or s32, |
Beta Was this translation helpful? Give feedback.
-
This is my hal file file for the mpg. The comments at the top are for my sanity.
And the lathe-pendant component, I use a variation of this on my mill as well. It does nothing with the MPG counts in this version, it's main function is to set the scale for the joints\axis based on 3 switches. I could have done this in hal as well but I find a quick component is portable and less messy in the hal file. Just run:
Looking at http://linuxcnc.org/docs/2.9/html/man/man9/motion.9.html When I was trying to get the vin_mpgencode to work I had to use Note that I changed DIN & DOUT & PV to have leading zeroes, just a personal thing for me. The Linuxcnc docs have a simple MPG example for use with Parallel Port, http://linuxcnc.org/docs/2.9/html/examples/mpg.html , but doesn't include the HAL connections for using joints which allows you to jog prior to homing. |
Beta Was this translation helpful? Give feedback.
-
i have add new signals with trailing -s32 so: rio.PV.0-s32 is S32 hope this helps, i can now use an encoder as jog on a mill |
Beta Was this translation helpful? Give feedback.
-
@ozzyrob i'm thinking about doing a wireless pendant, any thoughts on how to go about it? |
Beta Was this translation helpful? Give feedback.
-
Personally I use a wired pendant for the mill connected to a MESA setup (I wouldn't consider using a wireless pendant, I'd put it down and gremlins in my workshop would move it). For the lathe I'm using hostmot2 firmware, connected via EPP, on a Spartan6 dev card with some custom PCB's. The hal component just puts most of the HAL routing into a single component. As per my description " It does nothing with the MPG counts in this version, it's main function is to set the scale for the joints\axis based on 3 switches. I could have done this in hal as well but I find a quick component is portable and less messy in the hal file." |
Beta Was this translation helpful? Give feedback.
-
those gremlins are also in my shop... |
Beta Was this translation helpful? Give feedback.
-
As a bodge to get my mpg encoders to work with jogging, I messed around with rio.c to get a s32 output as opposed to float. I can see the vin class would need a float for vin_frequency & vin_sonar. Is there a way other than the bodge I used or using conv_float_s32 ?
Haven't had a chance to play with the spindle encoder, spent the weekend getting a network connection into the garage, and other bits of life.
But in saying that I have got the Z axis moving on the lathe, tho the X aixs still requires work.
Beta Was this translation helpful? Give feedback.
All reactions