missing steps?

More
31 Mar 2013 01:38 #32107 by rebeltaz
Replied by rebeltaz on topic missing steps?

If you have a TB6560 you might want to start with the sample configuration for that board. It is a sticky called "Sample Configurations" in this section.

Of course you will still want to understand what drive timings and scale are and do.

John


arrr... I tried that .ini/.hal file combo and was presented with this error message (after changing "Machine configuration directory" to '/home/derek/linuxcnc/configs/TB6560') :
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.0
Machine configuration directory is '/home/derek/linuxcnc/configs/TB6560'
Machine configuration file is 'rf-30_1.ini'
INIFILE=/home/derek/linuxcnc/configs/TB6560/rf-30_1.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 751: can't load tool table.
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1349
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 
Could not open command file 'custom.hal'
1349
  PID TTY      STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components
Traceback (most recent call last):
  File "/usr/bin/hal_manualtoolchange", line 57, in <module>
    nf.start(app); nf.makecommand(app, "_", _)
  File "/usr/lib/pymodules/python2.6/nf.py", line 120, in start
    source_lib_tcl(r, "combobox.tcl")
  File "/usr/lib/pymodules/python2.6/nf.py", line 111, in source_lib_tcl
    r.tk.call("source", os.path.join(tcl_libdir, f))
KeyboardInterrupt

Kernel message information:
[   55.048878] I-pipe: Domain RTAI registered.
[   55.048892] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[   55.048896] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[   55.048906] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[   55.048910] PIPELINE layers:
[   55.048914] e0565e20 9ac15d93 RTAI 200
[   55.048918] c085cb20 0 Linux 100
[   55.129089] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[   55.129319] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[   55.129327] RTAI[sched]: hard timer type/freq = APIC/8333539(Hz); default timing: periodic; linear timed lists.
[   55.129332] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2400198000 hz.
[   55.129335] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[   55.129538] RTAI[usi]: enabled.
[   55.350365] RTAI[math]: loaded.
[   55.711570] config string '0x378 out  '
[   56.952280] RTAI[math]: unloaded.
[   57.056138] SCHED releases registered named ALIEN RTGLBH
[   57.074671] RTAI[malloc]: unloaded.
[   57.172631] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[   57.178317] I-pipe: Domain RTAI unregistered.
[   57.178333] RTAI[hal]: unmounted.

So, I tried copying those two files into my BookMachine directory and renaming them BookMachine.ini and BookMachine.hal . Running that, I get this 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.0
Machine configuration directory is '/home/derek/linuxcnc/configs/BookMachine'
Machine configuration file is 'BookMachine.ini'
INIFILE=/home/derek/linuxcnc/configs/BookMachine/BookMachine.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1562
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 
Could not open command file 'rf-30_1.hal'
1562
  PID TTY      STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[  120.853969] I-pipe: Domain RTAI registered.
[  120.853982] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[  120.853986] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[  120.853996] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[  120.853999] PIPELINE layers:
[  120.854003] e0beae20 9ac15d93 RTAI 200
[  120.854006] c085cb20 0 Linux 100
[  120.890501] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[  120.890756] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[  120.890765] RTAI[sched]: hard timer type/freq = APIC/8333539(Hz); default timing: periodic; linear timed lists.
[  120.890770] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2400198000 hz.
[  120.890774] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[  120.890966] RTAI[usi]: enabled.
[  120.957071] uart_close: bad serial port count; tty->count is 1, port->count is 0
[  121.031040] RTAI[math]: loaded.
[  121.589177] RTAI[math]: unloaded.
[  121.692783] SCHED releases registered named ALIEN RTGLBH
[  121.710195] RTAI[malloc]: unloaded.
[  121.808038] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[  121.813889] I-pipe: Domain RTAI unregistered.
[  121.813905] RTAI[hal]: unmounted.

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

More
31 Mar 2013 03:08 #32110 by andypugh
Replied by andypugh on topic missing steps?

Could not open command file 'custom.hal'
...
Could not open command file 'rf-30_1.hal'

The reason for the problem is generally in the "debug file information"
In both cases the problem is a file being referenced in the INI file that does not exist.

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

More
31 Mar 2013 06:04 - 31 Mar 2013 06:14 #32112 by BigJohnT
Replied by BigJohnT on topic missing steps?
In the first error your missing your tool table.

When you rename your hal files you have to change the ini file entries to match.

John
Last edit: 31 Mar 2013 06:14 by BigJohnT.

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

More
06 Apr 2013 05:27 #32328 by rebeltaz
Replied by rebeltaz on topic missing steps?
I figured out how to get those files working, but I still have the same dropping issue.

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

More
06 Apr 2013 16:15 #32341 by Rick G
Replied by Rick G on topic missing steps?
O.K. are you saying that you are satisfied that the step timing / speed is correct for your drivers but the Z axis keeps going lower?

And from earlier post you are satisfied that there is no slipping or binding.

With the current settings do you have the same problem at slow speeds as high speed moves g0 , g1?
Have you tried dramatically reducing both the acceleration and velocity with the new timing settings?

Rick G

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

More
06 Apr 2013 23:05 #32347 by rebeltaz
Replied by rebeltaz on topic missing steps?

O.K. are you saying that you are satisfied that the step timing / speed is correct for your drivers but the Z axis keeps going lower?

And from earlier post you are satisfied that there is no slipping or binding.

With the current settings do you have the same problem at slow speeds as high speed moves g0 , g1?
Have you tried dramatically reducing both the acceleration and velocity with the new timing settings?

Rick G


I'll answer each in order :)

1. Yeah, I am pretty sure that the settings should/must be right and the Z-axis (as well as the other two) keeps dropping.

2. Yeah, I am absolutely positive there is no slipping or binding.

3. I do have the same problems at faster and slower speeds. I have tried reducing both.

I am sorry to be such a pain here... Thanks.

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

More
07 Apr 2013 06:34 #32356 by andypugh
Replied by andypugh on topic missing steps?

3. I do have the same problems at faster and slower speeds. I have tried reducing both

Acceleration may be the problem, rather than velocity.
Have you changed that, and where did you change it? (and is your machine a simple three-motor system)

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

More
07 Apr 2013 08:19 #32359 by rebeltaz
Replied by rebeltaz on topic missing steps?

3. I do have the same problems at faster and slower speeds. I have tried reducing both

Acceleration may be the problem, rather than velocity.
Have you changed that, and where did you change it? (and is your machine a simple three-motor system)


Yeah it is a simple three-motor system based on a book by Patrick Hood-Daniel. I have tried asking for help on that forum as well, but I keep getting told that something MUST be slipping. I know that that is impossible. I have double- and triple-checked everything.

I changed both acceleration and velocity in Mach3 before I decided to try LinuxCNC to see if thath was the problem. In LinuxCNC, I changed those in the StepConf program.

One I have used was:
MAX_VELOCITY = 0.242941898527
MAX_ACCELERATION = 7.0
STEPGEN_MAXACCEL = 8.75

Another set I used was:
MAX_VELOCITY = 4.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 50

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

More
07 Apr 2013 17:55 #32372 by Rick G
Replied by Rick G on topic missing steps?
So you have the same problem in both Mach and linuxcnc.
Do you have the problem when you move one axis at a time or only when you make a combined move?
Have you checked your power supply voltage / amps when moving?
At this point you might try removing the motors from the machine, mark the shafts and with the motors not driving any thing make several moves and see if the motors return to the proper position.

Rick G

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

More
07 Apr 2013 21:54 #32383 by cncbasher
Replied by cncbasher on topic missing steps?
if your z axis is dropping , then the only problems it can be is that the stepper is either underpowered for the torq required
or you are running that particular axis at too high a step rate and that the stepper cannot cope with the additional weight
that it needs to lift .

or that your power supply is under rated and cannot deliver the amps needed

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

Time to create page: 0.131 seconds
Powered by Kunena Forum