Stepper online A6 Servo motor as Spindle motor

More
1 year 6 days ago #337128 by Will_cnc
I have a Stepperonline 1000W servo motor with an EtherCAT servo drive, which I intend to use as a temporary spindle motor until I can upgrade to a higher-power unit.
Currently, I have three axes configured to work with Leadshine servo drives via EtherCAT.How can I configure this servo motor to function as a spindle motor?
Specifically, what needs to be added or modified in the following configuration files:
Code:
.INI  
Code:
.HAL.  
Code:
.XML
I’ve tried setting it up based on information from other forum posts, but I haven’t had much success so far.

Please Log in to join the conversation.

More
1 year 5 days ago #337145 by Hakan
What have you tried? Which Leadshine drive model?
I am going to propose to use PV mode. It is similar to a vfd.
You just give a speed and the driver ramps up and down as needed.
I have not tried it myself, and I don't have a driver to try it so it is up to you.
I foresee that the cia402 component needs modification, it only handles csp and csv.

Please Log in to join the conversation.

More
1 year 5 days ago #337190 by Hakan
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. 
 

Please Log in to join the conversation.

More
1 year 4 days ago #337218 by Hakan
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
 

Please Log in to join the conversation.

More
1 year 1 day ago #337457 by Will_cnc
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 


 

Please Log in to join the conversation.

More
1 year 1 day ago #337458 by Will_cnc
.Hal file I am using 

Please Log in to join the conversation.

More
1 year 1 day ago #337459 by Hakan
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.

Please Log in to join the conversation.

More
1 year 1 day ago #337462 by Will_cnc
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'

Please Log in to join the conversation.

More
1 year 1 day ago #337463 by Will_cnc
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

Please Log in to join the conversation.

More
1 year 1 day ago #337475 by Hakan
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.

Please Log in to join the conversation.

Time to create page: 0.188 seconds
Powered by Kunena Forum