Advanced Search

Search Results (Searched for: )

  • piasdom
  • piasdom's Avatar
04 Apr 2011 16:15
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

when i start emc, i have to home(zero) each axis.
i have to click on each one - x then "home axis", y "home axis", z "home axis"
i'm trying to be able to home all at once.
i did something before(in ini i think) that gave me a "home all" button on the left, instead of home.
but then i couldn't home each axis individually. so when i zero X, y and z had to be at zero. which is
not possible with me.(don't think it's possible for ANYONE:)
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 16:03 - 04 Apr 2011 16:04
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

the <pyvcp> </pyvcp> tags need to only be in the .xml file once and wrap around all the rest.

As far as I know there is no G Code that will cause a "home all" to happen. What did you have in mind there?

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 15:58
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

cool i will.

can i get an example somewhere of more then on button ?

i have this in custom_postgui.hal;

# MDI commands
# rapid to home button
net remote-rapid-home halui.mdi-command-00 <= pyvcp.rapid-to-home

# home all button
net remote-home-all halui.mdi-command-01 <= pyvcp.home-all

but it tells me pyvcp.home-all doesn't exist.
i'm guessing i'm naming something in the second button wrong.

i have this in xml;

<pyvcp>
<button>
<halpin>"home-all"</halpin>
<text>"Home All"</text>
<font>('Helvetica',10)</font>
</button>
</pyvcp>

if i could see the pin naming format better, it would help.
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 15:38
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

Yes, as far as I know that is the way. Just remember to add the MDI command into the [HALUI] section of the ini. Let me know how it works.

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 15:36 - 04 Apr 2011 15:42
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

:):):):):):):)::):):)

THANKS

so they're three files i need to work with to get buttons ?
this gives me a great start.....THANKS

and can i add buttons(s) by

....... ....halui-mdi-command-01 .......
....... ....halui-mdi-command-02 .......
....... ....halui-mdi-command-03 .......
an so forth ?
as long as i have 'pins'

i'm trying to get it to home(i think of homing as zeroing XYZ)
without moving the table. is this possible with pyvcp ?
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 15:31
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

Ah, your missing the last bit to the puzzle.
In your ini file in the [HAL] section add

HALUI = halui

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 15:14 - 04 Apr 2011 15:31
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

NP, REALLY appreciate the time and help !

Debug file information:
custom_postgui.hal:6: Pin 'halui.mdi-command-00' does not exist

can i add pin(s) by

....... ....halui-mdi-command-01 .......
....... ....halui-mdi-command-02 .......
....... ....halui-mdi-command-03 .......
an so forth ?
as long as i have 'pins' :)
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 15:11
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

Sorry, that needs to go in your custom_postgui.hal

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 15:02
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

got error



Debug file information:
custom.hal:6: Pin 'halui.mdi-command-00' does not exist
16078
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 14:57
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

Yes in your custom.hal file add the following

# MDI commands
# rapid to home button
net remote-rapid-home halui.mdi-command-00 <= pyvcp.rapid-to-home

The net command links them.

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 14:46
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

i was thinking about this and remembered i need to "link" the pins:huh: ?
i forgot the file i added the link into. was it axis.hal ?



[HAL]
HALFILE = Axis.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[HALUI]
MDI_COMMAND = G0 X0 Y0 Z0
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 14:43
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

Ok, we are making progress now!

Copy and paste what is in your [HAL] and [HALUI]

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 14:38
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

i moved the file to home/mill/emc2/configs/Axis/MyVCP.xml
and i got a button. :) but it does nothing. i tried in both manual
and mdi. does it move the table as well or just zeros XYZ ?
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 14:36 - 04 Apr 2011 14:37
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

It must be in the same folder as your ini and hal file is.

/home/mill/emc2/configs/Axis

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 14:34
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

i changed the typo(error:), and not get error "no such file or dir"
i have the MyVCP.xml in the config folder /home/mill/emc2/configs/.
i'm guessing i need to find the folder it "should" be in.

[DISPLAY]
DISPLAY = axis
PYVCP = MyVCP.xml
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.8
# picture location /usr/share/emc/
INTRO_GRAPHIC = Lava.gif
INTRO_TIME = 3
PROGRAM_PREFIX = /home/mill/Gcode(Linux)
INCREMENTS = .1in .05in .01in .005in .001in .0005in 1in

Print file information:
RUN_IN_PLACE=no
EMC2_DIR=
EMC2_BIN_DIR=/usr/bin
EMC2_TCL_DIR=/usr/share/emc/tcl
EMC2_SCRIPT_DIR=
EMC2_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/emc2
EMC2_CONFIG_DIR=
EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
EMC2_EMCSH=/usr/bin/wish8.5
EMC2 - 2.4.6
Machine configuration directory is '/home/mill/emc2/configs/Axis'
Machine configuration file is 'Axis.ini'
INIFILE=/home/mill/emc2/configs/Axis/Axis.ini
PARAMETER_FILE=emc.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=
DISPLAY=axis
NML_FILE=
Starting EMC2...
Starting EMC2 server program: emcsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting EMC2 IO program: io
Starting EMC2 TASK program: milltask
Starting EMC2 DISPLAY program: axis
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=14495
Killing task milltask, PID=14563
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Traceback (most recent call last):
File "/usr/bin/axis", line 3942, in <module>
vcpparse.create_vcp(f, comp)
File "debian/tmp/usr/lib/python2.6/dist-packages/vcpparse.py", line 177, in create_vcp
File "debian/tmp/usr/lib/python2.6/dist-packages/vcpparse.py", line 47, in read_file
File "/usr/lib/python2.6/xml/dom/minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: 'MyVCP.xml'
14495
PID TTY STAT TIME COMMAND
14563
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[10593.390864] I-pipe: Domain RTAI registered.
[10593.390869] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[10593.390871] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[10593.390945] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[10593.390947] PIPELINE layers:
[10593.390949] fb64fe20 9ac15d93 RTAI 200
[10593.390951] c085cb20 0 Linux 100
[10593.406646] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[10593.407034] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[10593.407039] RTAI[sched]: hard timer type/freq = APIC/20833017(Hz); default timing: periodic; linear timed lists.
[10593.407042] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2500425000 hz.
[10593.407044] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[10593.407435] RTAI[usi]: enabled.
[10593.429748] RTAI[math]: loaded.
[10593.483326] config string '0x378 out '
[10594.382149] PnPBIOS: get_dev_node: function not supported on this system
[10594.382153] probe_parport 00:0a: disable failed
[10594.421835] RTAI[math]: unloaded.
[10594.436508] SCHED releases registered named ALIEN RTGLBH
[10594.497298] RTAI[malloc]: unloaded.
[10594.597033] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[10594.599616] I-pipe: Domain RTAI unregistered.
[10594.599711] RTAI[hal]: unmounted.
Displaying 285466 - 285480 out of 286594 results.
Time to create page: 5.363 seconds
Powered by Kunena Forum