Stepper online A6 Servo motor as Spindle motor

More
1 year 2 days ago #337483 by Hakan
Hmm, did you by any chance comment out the loadrt cia402pv line?

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

More
1 year 2 days ago #337484 by Will_cnc
Doesn't appear to be commented out in the Hal file ?

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

More
1 year 2 days ago #337485 by Will_cnc
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

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

More
1 year 2 days ago #337491 by Hakan
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
Code:
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?

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

More
1 year 2 days ago #337501 by Will_cnc
I have changed the loadrt line slightly  and receive a different error ? 


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
2975
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
 

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

More
1 year 2 days ago #337511 by Hakan
It's like cia402pv isn't loaded.
Try a new thing. The halrun utility, load the cia402pv component manually.
Code:
% halrun  halcmd: loadrt cia402pv names=cia402pv.Spindle Note: Using POSIX realtime halcmd: show all
This hopefully should work and produce a long list of pins and functions.

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

Time to create page: 0.473 seconds
Powered by Kunena Forum