Axis Configuration Customization?
- beedoebeedoe
- Offline
- New Member
- Posts: 13
- Thank you received: 0
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/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.4
Machine configuration directory is '/home/winder/linuxcnc/configs/my-mill'
Machine configuration file is 'my-mill.ini'
INIFILE=/home/winder/linuxcnc/configs/my-mill/my-mill.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
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
Starting TASK program: milltask
Starting DISPLAY program: axis
emcTrajSetAxes failing: axes=4 axismask=1b
emcTrajSetAxes failing: axes=4 axismask=1b
emcTrajSetAxes failing: axes=4 axismask=1b
emcTrajSetAxes failing: axes=4 axismask=1b
emcTrajSetAxes failing: axes=4 axismask=1b
emcTrajSetAxes failing: axes=4 axismask=1b
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=5375
Killing task milltask, PID=5430
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
5375
PID TTY STAT TIME COMMAND
5430
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[10622.798560] I-pipe: Domain RTAI registered.
[10622.798567] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[10622.798570] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[10622.798611] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[10622.798614] PIPELINE layers:
[10622.798617] fae6ce20 9ac15d93 RTAI 200
[10622.798619] c085cb20 0 Linux 100
[10622.818653] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[10622.818945] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[10622.818950] RTAI[sched]: hard timer type/freq = APIC/12526056(Hz); default timing: periodic; linear timed lists.
[10622.818953] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2304605000 hz.
[10622.818956] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[10622.819046] RTAI[usi]: enabled.
[10622.863693] RTAI[math]: loaded.
[10622.939942] config string '0x378 out '
[10628.908866] RTAI[math]: unloaded.
[10628.948591] SCHED releases registered named ALIEN RTGLBH
[10628.980277] RTAI[malloc]: unloaded.
[10629.076030] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[10629.078793] I-pipe: Domain RTAI unregistered.
[10629.078843] RTAI[hal]: unmounted.
Please Log in or Create an account to join the conversation.
emcTrajSetAxes failing: axes=4 axismask=1b
I would suspect that you have specified 4 axes in the ini file, which is wrong because you have to number all axes, even if you don't use them
ie XYZAB = 5 not 4
As I can't do anything with the zip, unless you attach a new one containing the actual files, can't assist further
regards
Please Log in or Create an account to join the conversation.
- beedoebeedoe
- Offline
- New Member
- Posts: 13
- Thank you received: 0
Please Log in or Create an account to join the conversation.
As I can't do anything with the zip, unless you attach a new one containing the actual files, can't assist further
Something strange here, as the original file seems fine to me.
Anyway, we have
[TRAJ]
AXES = 4
COORDINATES = X Y A B...
[AXIS_0]
...
[AXIS_1]
...
[AXIS_2]
...
[AXIS_3]
It is not at all obvious, and is fixed in JA4 branch, but what is needed is:
[TRAJ]
AXES = 5
COORDINATES = X Y A B...
[AXIS_0]
...
[AXIS_1]
...
[AXIS_2]
...
[AXIS_3]
...
[AXIS_4]
The [AXIS_2] section needs to exist, but will be ignored.
Please Log in or Create an account to join the conversation.
- beedoebeedoe
- Offline
- New Member
- Posts: 13
- Thank you received: 0
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/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.4
Machine configuration directory is '/home/winder/linuxcnc/configs/my-mill'
Machine configuration file is 'my-mill.ini'
INIFILE=/home/winder/linuxcnc/configs/my-mill/my-mill.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
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
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=3821
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
my-mill.hal:97: parameter or pin 'stepgen.4.position-scale' not found
3821
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 3192.175173] I-pipe: Domain RTAI registered.
[ 3192.175183] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 3192.175185] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 3192.175226] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 3192.175229] PIPELINE layers:
[ 3192.175232] fb0a1e20 9ac15d93 RTAI 200
[ 3192.175234] c085cb20 0 Linux 100
[ 3192.194344] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 3192.194781] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 3192.194789] RTAI[sched]: hard timer type/freq = APIC/12526056(Hz); default timing: periodic; linear timed lists.
[ 3192.194792] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2304460000 hz.
[ 3192.194795] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 3192.194876] RTAI[usi]: enabled.
[ 3192.239812] RTAI[math]: loaded.
[ 3192.315967] config string '0x378 out '
[ 3192.655499] RTAI[math]: unloaded.
[ 3192.673952] SCHED releases registered named ALIEN RTGLBH
[ 3192.708271] RTAI[malloc]: unloaded.
[ 3192.804034] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 3192.806917] I-pipe: Domain RTAI unregistered.
[ 3192.806973] RTAI[hal]: unmounted.
Please Log in or Create an account to join the conversation.
my-mill.hal:97: parameter or pin 'stepgen.4.position-scale' not found
3821
That is because you only have 4 stepgens, so stepgen.4 ( fifth one numbered from 0) does not exist.
loadrt stepgen type=0,0,0,0
You have also got loads of connections for an axis which does not exist (Z)
If you leave things as per your last zip, I will try to change the files
regards
Please Log in or Create an account to join the conversation.
my-mill.hal:97: parameter or pin 'stepgen.4.position-scale' not found
This is because you have
loadrt stepgen step_type=0,0,0,0
There are two solutions, either add a stepgen so that you have 5 in total:
loadrt stepgen step_type=0,0,0,0,0
This is more efficient, but more confusing.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- beedoebeedoe
- Offline
- New Member
- Posts: 13
- Thank you received: 0
Near line 10 of /usr/share/axis/images/axis.ngc: Bad character 'z' used
Please Log in or Create an account to join the conversation.
- beedoebeedoe
- Offline
- New Member
- Posts: 13
- Thank you received: 0
Please Log in or Create an account to join the conversation.