Tool Changer

More
14 years 1 week ago #25509 by BigJohnT
Replied by BigJohnT on topic Re:Tool Changer
Yuck, did I actually call that signal too1-1 or is it a typo for tool-1?

John

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

More
14 years 1 week ago #25540 by tkamsker
Replied by tkamsker on topic Re:Tool Changer
Hi,
oh my bad ,...
sorry it seems standing freehand at the machine (no internet there ) i made an typo

But i corrected it and now it should be exact as your example ,..

But linuxcnc is still not happy unknown command ? (so i milled the pcbs "manually" using the atc ... so the scripts and rest setup works fine.

Error Reads like this
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.1
Machine configuration directory is '/home/tkamsker/linuxcnc/configs/Heiz400T-3WZW'
Machine configuration file is 'Heiz400T-3WZW.ini'
INIFILE=/home/tkamsker/linuxcnc/configs/Heiz400T-3WZW/Heiz400T-3WZW.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
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1834
Killing task milltask, PID=1881
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
custom_postgui.hal:4: Unknown command 'net tool-1 halui.mdi-command-00 <= pyvcp.tool-1'
1834
PID TTY STAT TIME COMMAND
1881
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 667.102407] I-pipe: Domain RTAI registered.
[ 667.102420] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 667.102423] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 667.102432] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 667.102435] PIPELINE layers:
[ 667.102439] f9165e20 9ac15d93 RTAI 200
[ 667.102443] c085cb20 0 Linux 100
[ 667.131743] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 667.131959] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 667.131967] RTAI[sched]: hard timer type/freq = APIC/8311960(Hz); default timing: periodic; linear timed lists.
[ 667.131971] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2925916000 hz.
[ 667.131975] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 667.132168] RTAI[usi]: enabled.
[ 667.263218] RTAI[math]: loaded.
[ 667.373495] config string '0x378 out '
[ 673.272798] RTAI[math]: unloaded.
[ 673.372537] SCHED releases registered named ALIEN RTGLBH
[ 673.389231] RTAI[malloc]: unloaded.
[ 673.488040] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 673.493095] I-pipe: Domain RTAI unregistered.
[ 673.493108] RTAI[hal]: unmounted.


So any hint would be nice or an link to an how to
thx in advance
thomas
Ps: I do have a working pendant using arduino ,... so if someone is interested ,.. (it is work in progress )

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

More
14 years 1 week ago #25545 by ArcEye
Replied by ArcEye on topic Re:Tool Changer
Andy Pugh wrote:

My guess is that you don't have the MDI commands defined in the INI file.


or you don't have the .xml file in your .ini file under
[DISPLAY]
PYVCP = custom_postgui.xml

You are trying to link 2 things, so one or both of them must be missing

regards

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

More
14 years 1 week ago #25551 by BigJohnT
Replied by BigJohnT on topic Re:Tool Changer
That was my typo and copy and paste error not yours.

John

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

More
14 years 1 week ago #25585 by tkamsker
Replied by tkamsker on topic Re:Tool Changer
Hi,
I did check that thats why i posted the question in the forum
My ini has more but i copiued only this 3 sections
[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/tkamsker/linuxcnc/configs/Heiz400T-3WZW
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
PYVCP = ToolChPanel.xml
[HAL]
HALUI = halui
HALFILE = Heiz400T-3WZW.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[HALUI]
# HalUI-MDI-Befehle hier einfügen (max. 64)
# MDI commands
MDI_COMMAND = T1 M6 G43
MDI_COMMAND = T2 M6 G43
MDI_COMMAND = T3 M6 G43
MDI_COMMAND = T4 M6 G43
MDI_COMMAND = T5 M6 G43
MDI_COMMAND = T6 M6 G43
MDI_COMMAND = T6 M6 G43
MDI_COMMAND = T6 M6 G43

and The XML is an exact copy of that thread for the start

And the custom_postgui.hal is
# Benutzerdefinierte HAL-Anweisungen können nachfolgend angegeben werden
# Die Befehle in dieser Datei werden nach der AXIS GUI (und PyVCP-Panel) ausgeführt.
# MDI Commands
#net too1-1 halui.mdi-command-00 <= pyvcp.tool-1
#net too1-2 halui.mdi-command-01 <= pyvcp.tool-2
#net too1-3 halui.mdi-command-02 <= pyvcp.tool-3
#net too1-4 halui.mdi-command-03 <= pyvcp.tool-4
#net too1-5 halui.mdi-command-04 <= pyvcp.tool-5
#net too1-6 halui.mdi-command-05 <= pyvcp.tool-6
#net too1-7 halui.mdi-command-06 <= pyvcp.tool-7
#net too1-8 halui.mdi-command-07 <= pyvcp.tool-8


now commented out that i can work manually
So i see the 8 Buttons
My idea was that i do simply an Collet On and Collet off button which simply call M101 and M102
Then the T1 T6 buttons wich would Translate to Tx M6 <cr> o<ww> call <cr>
Where <cr> is carrige return
I wanted to stay verry simple

So the error
custom_postgui.hal:4: Unknown command 'net tool-1 halui.mdi-command-00 <= pyvcp.tool-1'

was not clear how to tackle it. Can i switch on debug or is it simply the wrong section for that command does it need to be set later or earlier ?

In my day profession i am a developer but i did so far spent no time in the code and i hope that this is not now necessary ;)-

So if someone already had similar issue or has an hint would be verry welcome ,..

Because when this is finnished (and i can dio the pcb i try ) then i might be able to finnish the arduino based pendant ,..
Where i have an working prototpye,..
thx
thomas

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

More
14 years 1 week ago - 14 years 1 week ago #25587 by ArcEye
Replied by ArcEye on topic Re:Tool Changer
Hi

It's quite simple, I have copied all of Johns entry into sim files and the problem is that the <pyvcp> </pyvcp> tags are missing from the .xml file

Should be
Code:
<?xml version='1.0' encoding='UTF-8'?> <pyvcp> <labelframe text="Tool Changer"> <font>("Helvetica",16)</font> <hbox> <button> <halpin>"tool-1"</halpin> <text>"T1"</text> <bd>3</bd> </button> <button> <halpin>"tool-2"</halpin> <text>"T2"</text> <bd>3</bd> </button> <button> <halpin>"tool-3"</halpin> <text>"T3"</text> <bd>3</bd> </button> <button> <halpin>"tool-4"</halpin> <text>"T4"</text> <bd>3</bd> </button> </hbox> <hbox> <button> <halpin>"tool-5"</halpin> <text>"T5"</text> <bd>3</bd> </button> <button> <halpin>"tool-6"</halpin> <text>"T6"</text> <bd>3</bd> </button> <button> <halpin>"tool-7"</halpin> <text>"T7"</text> <bd>3</bd> </button> <button> <halpin>"tool-8"</halpin> <text>"T8"</text> <bd>3</bd> </button> </hbox> </labelframe> </pyvcp>

This is the running proof

image missing http://linuxcnc.org/media/kunena/attachments/legacy/images/Selection_002.png

Another benefit of always running programs from the terminal, you get to see all the error messages.

regards
Last edit: 14 years 1 week ago by ArcEye.

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

Time to create page: 0.215 seconds
Powered by Kunena Forum