Advanced Search

Search Results (Searched for: )

  • vre
  • vre
16 Mar 2025 19:11
Replied by vre on topic Mesa modbus and pktUart

Mesa modbus and pktUart

Category: Other User Interfaces

yes this patch works..
the strange is that works very fast with update-hz 1000
  • spumco
  • spumco
16 Mar 2025 18:30

caxis.comp with stepper motor / gear connection to spindle

Category: HAL

Caxis.comp was originally written by Andy Pugh to control a single motor for velocity and positioning mode (spindle & c-axis).  I don't think it was intended to control two separate motors.

It's not part of the mainline LCNC components, nor are there many people using it... so I don't think you're going to find a wealth of info on implementation.  For your situation, there may be better approaches to managing your dual-motor arrangement.

The main hurdle to overcome for any spindle/axis (dual or single motor) is how to manage the axis encoder.  Once you switch from axis to velocity mode the axis will generate a following error when LCNC sees the 'axis' encoder moving away from the commanded position.  So we have to 'trick' LCNC and adjust the encoder value somehow.
  • caxis.comp does this by intercepting the encoder output, and then subtracting the encoder change from the encoder starting value before sending that to the axis PID feedback input.
  • Another method is to disconnect the encoder output from the axis feedback in spindle mode
The problem with #2 above is that when the encoder is re-connected (switch to axis mode) there is a significant following error instantly present.  The switching scheme @Aciera came up with a while back for his lathe (using a single motor) looks like this:
  • Step 0
    • LCNC starts up with main spindle motor disabled
    • Home C-axis before any spindle moves (at start of LCNC session). 
  • Step 1
    • Command C-axis to C0
    • Disconnect spindle encoder
    • Enable spindle mode
      • in Aciera's case that means switching his drive from position to velocity mode
      • for a two-motor arrangement that means retracting the axis motor and enabling the main spindle motor via M-codes & digital inputs/outputs
  • Step 2 - Run spindle as a spindle
  • Step 3
    • Use orient.comp to orient the spindle to 0
    • Disable the spindle motor
    • Enable the axis motor
    • Reconnect the spindle encoder
If everything is adjusted properly (orient offset, C0 actual position, etc.) there should be a very small difference between Orient-0 and Caxis-0, resulting in (hopefully) a small twitch of the spindle at most.

For the past year I've been fiddling with caxis.comp and have recently come to the conclusion that it isn't going to work for me.  There are a couple of annoying things I don't like (can't disconnect the spindle easily to manually rotate the chuck), but the serious problem I found was that spindle synchronized motion wasn't working properly.

Something - and I'm not smart enough to figure out exactly what it was - in the caxis.comp scheme was causing erratic behavior (big motion jumps) during tapping and threading commands.  Once I removed caxis.comp and use the spindle as just a spindle the tapping/threading stuff started working as expected.  So now I'm re-doing a bunch of stuff in my config and will eventually wind up with something very similar to Aciera's arrangement.

So to sum up, I'd suggest abandoing caxis.comp for your dual-motor lathe and search for Aciera's config.  I know he posted his files in the past year or so, although I think he's been working on a glitch with the encoder disconnect function recently.
  • PCW
  • PCW's Avatar
16 Mar 2025 18:16

STEPLEN STEPSPACE time for Bergerda AC servo driver

Category: General LinuxCNC Questions

Looks like the drive is not responding to shorter step pulses (no motion at all)

Is is possible there is a digital filter in the drive so it rejects shorter than 1000 ns step pulses?
  • Wusel
  • Wusel
16 Mar 2025 17:47
Replied by Wusel on topic Motor 0 Positionsfehler

Motor 0 Positionsfehler

Category: Advanced Configuration

learning every day. Thanks again
  • papagno-source
  • papagno-source
16 Mar 2025 17:32 - 16 Mar 2025 17:41
Replied by papagno-source on topic scurve trajectory planner

scurve trajectory planner

Category: General LinuxCNC Questions

Hi i have install Debian 12 uspace , with linuxcnc 2.9.4 , image the linuxcnc.org.

I have executed :
git clone --recurse-submodules codeberg.org/skynet/linuxcnc_scurve_compact lcnc
cd lcnc/cmake
./installer

have error in terminal:
/usr/include/ceres/internal/fixed_array.h:33:10: fatal error: Eigen/Core: No such file or directory
33 | #include <Eigen/Core> // For Eigen::aligned_allocator

and


/usr/include/ceres/internal/fixed_array.h:33:10: fatal error: Eigen/Core: No such file or directory
33 | #include <Eigen/Core> // For Eigen::aligned_allocator
| ^~~~~~~~~~~~


If add in tray the file ini :
TPMOD = tpmod_scurve

and start sim/axis_9axis_mm.ini have error :

LINUXCNC - 2.10.0~pre0
Machine configuration directory is '/home/fast/lcnc/configs/sim/axis'
Machine configuration file is 'axis_9axis_mm.ini'
Starting LinuxCNC...
linuxcncsvr (23070) emcsvr: machine 'LinuxCNC-sim-9axis'  version '1.1'
linuxcnc TPMOD=tpmod_scurve HOMEMOD=homemod EMCMOT=motmod unlock_joints_mask=0x10
Note: Using POSIX realtime
tpmod_scurve: dlopen: /home/fast/lcnc/rtlib/tpmod_scurve.so: cannot open shared object file: No such file or directory
<commandline>:0: waitpid failed /home/fast/lcnc/bin/rtapi_app tpmod_scurve
<commandline>:0: /home/fast/lcnc/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for tpmod_scurve failed, returned -1
Note: Using POSIX realtime
milltask (23085) task: machine 'LinuxCNC-sim-9axis'  version '1.1'
halui (23087) halui: machine 'LinuxCNC-sim-9axis'  version '1.1'
Found file(LIB): /home/fast/lcnc/lib/hallib/basic_sim.tcl
setup_kins: cmd=loadrt trivkins
motmod: dlopen: /home/fast/lcnc/rtlib/motmod.so: undefined symbol: tpRunCycle


core_sim:unhandled emcmot<{motmod unlock_joints_mask=0x10}>
         modname=motmod
         modparm=unlock_joints_mask=0x10
     msg=waitpid failed /home/fast/lcnc/bin/rtapi_app motmod
/home/fast/lcnc/bin/rtapi_app exited without becoming ready
insmod for motmod failed, returned -1

Shutting down and cleaning up LinuxCNC...
USRMOT: ERROR: command 30 timeout
emcMotionInit: emcTrajInit failed
Note: Using POSIX realtime



 
Displaying 18166 - 18170 out of 18170 results.
Time to create page: 0.708 seconds
Powered by Kunena Forum