Advanced Search

Search Results (Searched for: stepper spindle)

  • Hakan
  • Hakan
30 Oct 2025 15:10

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

But there must be a reason that linuxcnc won't find it.
It looks okay in your files.
Response is exactly like it is commented out.
I tested to comment out the loadrt line and got exactly this
Found file(REL): ./cia402pv.hal
HAL: ERROR: function 'cia402pv.Spindle.read-all' not found
./cia402pv.hal:27: addf failed
I also tested to mis-spell cia402pv.Spindl in the loadrt line and got the same error.
Also mis-spelling on the addf line give the same error.
There is some mis-spelling between the loadrt and the addf lines
but I don't see what it is.

From the output messages this is the hal file linuxcnc uses
./hallib/EL8_machine.hal
That's the one you showed, right?

I don't know. Can you retype those two lines?
  • Will_cnc
  • Will_cnc
30 Oct 2025 13:26
Replied by Will_cnc on topic Stepper online A6 Servo motor as Spindle motor

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
loadusr -W lcec_conf ethercat-conf.xml
loadrt lcec
#loadusr -W hal_manualtoolchange
loadrt cia402 count=4
#loadrt mult2
#loadrt mult2 count=4 etc for multiple instances
loadrt cia402pv names=cia402pv.Spindle
  • Will_cnc
  • Will_cnc
30 Oct 2025 13:22
Replied by Will_cnc on topic Stepper online A6 Servo motor as Spindle motor

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

Doesn't appear to be commented out in the Hal file ?
  • Hakan
  • Hakan
30 Oct 2025 12:58

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

Hmm, did you by any chance comment out the loadrt cia402pv line?
  • Will_cnc
  • Will_cnc
30 Oct 2025 12:30
Replied by Will_cnc on topic Stepper online A6 Servo motor as Spindle motor

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.6
Machine configuration directory is '/home/cnc/linuxcnc/configs/probe_basic_dev'
Machine configuration file is 'EL8_machine.ini'
INIFILE=/home/cnc/linuxcnc/configs/probe_basic_dev/EL8_machine.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=el8_homecomp
TASK=milltask
HALUI=halui
DISPLAY=probe_basic
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=el8_homecomp EMCMOT=motmod
Found file(REL): ./hallib/EL8_machine.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
HAL: ERROR: function 'cia402pv.Spindle.read-all' not found
./hallib/EL8_machine.hal:18: addf failed
2439
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime


 
  • Will_cnc
  • Will_cnc
30 Oct 2025 12:25
Replied by Will_cnc on topic Stepper online A6 Servo motor as Spindle motor

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

Hi Hakan
Thanks for the help I have configured to the directory now, but have a new error message ?
  • Hakan
  • Hakan
30 Oct 2025 12:04

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

Be in the directory were you have downloaded cia402pv.comp
and there do "sudo halcompile --install cia402pv.comp"

Easy to spot with the error messages, that helps a lot.
  • Will_cnc
  • Will_cnc
30 Oct 2025 11:01
Replied by Will_cnc on topic Stepper online A6 Servo motor as Spindle motor

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.6
Machine configuration directory is '/home/cnc/linuxcnc/configs/probe_basic_dev'
Machine configuration file is 'EL8_machine.ini'
INIFILE=/home/cnc/linuxcnc/configs/probe_basic_dev/EL8_machine.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=el8_homecomp
TASK=milltask
HALUI=halui
DISPLAY=probe_basic
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=el8_homecomp EMCMOT=motmod
Found file(REL): ./hallib/EL8_machine.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
cia402pv: dlopen: /usr/lib/linuxcnc/modules/cia402pv.so: cannot open shared object file: No such file or directory
./hallib/EL8_machine.hal:9: waitpid failed /usr/bin/rtapi_app cia402pv
./hallib/EL8_machine.hal:9: /usr/bin/rtapi_app exited without becoming ready
./hallib/EL8_machine.hal:9: insmod for cia402pv failed, returned -1
2207
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
  • Will_cnc
  • Will_cnc
30 Oct 2025 11:00
Replied by Will_cnc on topic Stepper online A6 Servo motor as Spindle motor

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

sudo halcompile --install cia402pv.comp

cnc@raspberrypi:~$ sudo halcompile --install cia402pv.comp
Traceback (most recent call last):
File "/usr/bin/halcompile", line 1553, in <module>
main()
File "/usr/bin/halcompile", line 1523, in main
process(f, mode, outfile)
File "/usr/bin/halcompile", line 1363, in process
a, b = parse(filename)
^^^^^^^^^^^^^^^
File "/usr/bin/halcompile", line 434, in parse
f = open(filename).read()
^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'cia402pv.comp'
  • Hakan
  • Hakan
30 Oct 2025 10:45

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

Very difficult to say, you give me no clues.
You have to show the error messages from linuxcnc startup, that is the biggest help.
I kind of think you have not installed the component?
"sudo halcompile --install cia402pv.comp"
should put the component in the right place.
Anyway, I have to see the errors you get. A general description is not enough.
  • Will_cnc
  • Will_cnc
30 Oct 2025 10:40
  • Will_cnc
  • Will_cnc
30 Oct 2025 10:38 - 30 Oct 2025 10:41
Replied by Will_cnc on topic Stepper online A6 Servo motor as Spindle motor

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

Hi Hakan thanks for your help  to configure the drive. 
Unfortunately I am having no luck in getting it to work. 
I have attached my files below do you mind having a look to see if there is anything obvious I am missing?  
I am very new to linux so am struggling to work out when using the loadrt command in the .hal file  where the other  file is loading from? 

Thanks Will 


 
  • richcolvin
  • richcolvin's Avatar
28 Oct 2025 02:05
Replied by richcolvin on topic M19 for Indexing a Spindle using Stepper Motors

M19 for Indexing a Spindle using Stepper Motors

Category: General LinuxCNC Questions

Jean Philippe,

Thank you for sharing these. I greatly appreciate your generosity.

Am I correct I. My thinking that the magic for this is in the spindle.hal file?

Rich
  • Hakan
  • Hakan
26 Oct 2025 16:26

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

Here is now a modified cia402 component together with a complete example on how to use PV (Profile Velcotiy) for an EtherCAT spindle drive.

github.com/MetalMusings/cia402pv
 
  • Hakan
  • Hakan
26 Oct 2025 11:46 - 26 Oct 2025 11:47

Stepper online A6 Servo motor as Spindle motor

Category: General LinuxCNC Questions

I *could* put my stepper drivers in PV mode. So I am making a modification to the cia402 component to (hopefully) make a stepper motor work as a spindle (how useful). Servo drives also. 
Check back in few hours. 
 
Displaying 16 - 30 out of 157 results.
Time to create page: 0.593 seconds
Powered by Kunena Forum