× Forum Header

Axis Configuration Customization?

More
13 Oct 2014 21:12 - 13 Oct 2014 21:31 #52026 by beedoebeedoe
Did the error file show up? I don't see it.

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.
Last edit: 13 Oct 2014 21:31 by beedoebeedoe.

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

More
13 Oct 2014 22:39 #52033 by ArcEye

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.

More
13 Oct 2014 22:42 - 13 Oct 2014 22:50 #52034 by beedoebeedoe
I hope it attaches this time

File Attachment:

File Name: my-millm.zip
File Size:5 KB
Attachments:
Last edit: 13 Oct 2014 22:50 by beedoebeedoe. Reason: Fie did not attach

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

More
13 Oct 2014 22:47 #52035 by andypugh

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.

More
13 Oct 2014 22:58 #52036 by beedoebeedoe
I tried what you suggested. I also modified the hal file reflect theses changes. Got the following error.

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.
Attachments:

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

More
13 Oct 2014 23:06 #52037 by ArcEye

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.

More
13 Oct 2014 23:06 #52038 by andypugh

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
though that "wastes" a stepgen, or change the HAL so that axis.3 uses stepgen.2 and axis.4 uses stepgen.3
This is more efficient, but more confusing.

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

More
13 Oct 2014 23:16 #52041 by ArcEye
Try this and post the error if it does not start


File Attachment:

File Name: my-mill-rev1.zip
File Size:5 KB
Attachments:

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

More
13 Oct 2014 23:39 #52044 by beedoebeedoe
G-Code error in axis.ngc

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.

More
13 Oct 2014 23:42 #52045 by beedoebeedoe
nevermind that is from calling a z command and there is no z anymore

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

Time to create page: 0.079 seconds
Powered by Kunena Forum