Working Lathe config with Mesa 7196s + Encoder (no probing yet)

More
05 Jan 2025 00:49 - 05 Jan 2025 00:52 #318135 by RogEnk
Hi all,

Thought I would share, on the off chance other(s) may benefit from what I have learnt converting from Axis Lathe to Prob Basic Lathe.
  1.  I am using a Mesa 7i96s without any add-ons, an Omron 100P (E6B2-CWZ1X Differential) rotary encoder from Ebay.
  2. I configured a new base config for an Axis Lathe using MesaCT (no encoder at this point)
  3. Followed the excellent instructions from here: kcjengr.github.io/probe_basic/machine_config.html
  4. Tested and confirmed working
  5. Copied previously working Encoder section from Axis lathe base hal file to Probe Basic Lathe main.hal
  6. Correct PNCConf vs MesaCT encoder name (was referenced as ENCODER_SCALE by PNCConf but referenced as ENCODER by MesaCT) in both ini and main.hal
  7. Edited line 13 (in my case) from:
    loadrt [HM2](DRIVER) board_ip=[HM2](ADDRESS) config=" sserial_port_0=00000000" to:
    loadrt [HM2](DRIVER) board_ip=[HM2](ADDRESS) config="num_encoders=1 num_pwmgens=1 num_stepgens=5 sserial_port_0=00000000"
  8. Added:
    net spindle-speed-fb hm2_7i96s.0.encoder.00.velocity-rpm
    net spindle-speed-fb => qtpyvcp.spindle-encoder-rpm.in
    To end of probe_basic_postgui.hal
  9. Enjoyed a Whiskey when RPM worked!

    I have attached the files in question, new_lathe.ini is the Probe version, other file names should be clear.
    Hope this helps someone!

    Rog
Last edit: 05 Jan 2025 00:52 by RogEnk. Reason: Whiskey or editor is buggy...
The following user(s) said Thank You: tommylight, Lcvette

Please Log in or Create an account to join the conversation.

More
06 Jan 2025 13:30 #318216 by Lcvette
nice! it is a wonderful thing to get true rpm working and have threading available! congrats!! post some picture too! show off your project!

Chris

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.172 seconds
Powered by Kunena Forum