PYVCP format help
23 Apr 2011 23:36 - 23 Apr 2011 23:38 #9290
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
Like I said the name can be anything you like however the tag must be correct or it is ignored by EMC.
[SECTION]
TAG = value or name as appropriate for the TAG
John
[SECTION]
TAG = value or name as appropriate for the TAG
John
Last edit: 23 Apr 2011 23:38 by BigJohnT.
Please Log in or Create an account to join the conversation.
24 Apr 2011 00:07 - 24 Apr 2011 00:09 #9292
by piasdom
Replied by piasdom on topic Re:PYVCP format help
ok thanks. i thought the postgui told it "WHEN" to load the file.
i have all tags/name correct and still get "pin " pycvp......" does not exist.
maybe it's not possible to simulate mode ? but i can make the
buttons/leds and see what i have. everything works great as long
as i don't link the pins.
i have all tags/name correct and still get "pin " pycvp......" does not exist.
maybe it's not possible to simulate mode ? but i can make the
buttons/leds and see what i have. everything works great as long
as i don't link the pins.
Last edit: 24 Apr 2011 00:09 by piasdom.
Please Log in or Create an account to join the conversation.
24 Apr 2011 15:13 - 24 Apr 2011 15:14 #9299
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
You can do anything in a sim you want. My guess is your not linking the pin in the correct place. You can't link a pin until it is created. That is the whole purpose of the POSTGUI_HALFILE tag. When you have a hal file after the POSTGUI_HALFILE tag it is not loaded until the GUI is done loading. Your pyvcp pins are created when the GUI loads.
My guess is your trying to link a pyvcp pin but your not doing it in the file pointed to by your POSTGUI_HALFILE tag.
So a sample [HAL] section might look like this:
Again, the file names can be anything you like and mean nothing to EMC.
John
My guess is your trying to link a pyvcp pin but your not doing it in the file pointed to by your POSTGUI_HALFILE tag.
So a sample [HAL] section might look like this:
[HAL]
# this file is the main hal file and is the first to load.
# you can't link anything in this file that is in the other files
# as they are not loaded yet nor can you link to a pyvcp pin in this file
HALFILE = myconfig.hal
# this file is loaded after myconfig.hal so it can link to anything in
# itself and anything in myconfig.hal file.
# you can't link to a pyvcp pin in this file either as they have not been created yet.
HALFILE = mysecond.hal
# this file is loaded after the gui is done including pyvcp
# so any pyvcp pins MUST be linked in this file
POSTGUI_HALFILE = mypostgui.hal
Again, the file names can be anything you like and mean nothing to EMC.
John
Last edit: 24 Apr 2011 15:14 by BigJohnT.
Please Log in or Create an account to join the conversation.
24 Apr 2011 20:09 #9301
by piasdom
Replied by piasdom on topic Re:PYVCP format help
Thanks.
i had
HALFILE = postgui_custom.hal
instead of
POSTGUI_HALFILE = postgui_custom.hal
i had asked about "post" but as file name, not as a tag.
works not but i get the homing at X 1600 again.
Thanks Again !!
i had
HALFILE = postgui_custom.hal
instead of
POSTGUI_HALFILE = postgui_custom.hal
i had asked about "post" but as file name, not as a tag.
works not but i get the homing at X 1600 again.
Thanks Again !!
Please Log in or Create an account to join the conversation.
25 Apr 2011 12:04 - 25 Apr 2011 15:16 #9305
by piasdom
Replied by piasdom on topic Re:PYVCP format help
(at work now)
(making a DRO)
with the feedback, relative and commanded position pin. i get the same number.
if i have offsets, shouldn't one(or two) be different ? in Axis, if i have a
z offset of 1", "my" readout reads .9 while running and z is at -.1".
i tried all three pins and i get the same number. is the pins suppose to
be connected to another pin as well ?
offsets;
X - .125
y - .125
z - 1
(making a DRO)
with the feedback, relative and commanded position pin. i get the same number.
if i have offsets, shouldn't one(or two) be different ? in Axis, if i have a
z offset of 1", "my" readout reads .9 while running and z is at -.1".
i tried all three pins and i get the same number. is the pins suppose to
be connected to another pin as well ?
offsets;
X - .125
y - .125
z - 1
Last edit: 25 Apr 2011 15:16 by piasdom.
Please Log in or Create an account to join the conversation.
25 Apr 2011 13:16 #9306
by piasdom
Replied by piasdom on topic Re:PYVCP format help
and what button,label,led or etc. do i use for the u32.
trying to use halui.tool.number pin and nothing i use let's emc run.i get
close and get error pin does not exist.
trying to use halui.tool.number pin and nothing i use let's emc run.i get
close and get error pin does not exist.
Please Log in or Create an account to join the conversation.
25 Apr 2011 22:34 #9312
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
Anything that takes a u32 in.
Use this reference for halui till 2.5 comes out, I updated the pins to show what type they are... dang it must be confusing not knowing what the pin takes...
www.linuxcnc.org/docview/devel/html/man/man1/halui.1.html
What are you trying to do? If you want to show the current tool use a u32 number display.
www.linuxcnc.org/docview/html/hal_pyvcp.html#r1_6_4
John
Use this reference for halui till 2.5 comes out, I updated the pins to show what type they are... dang it must be confusing not knowing what the pin takes...
www.linuxcnc.org/docview/devel/html/man/man1/halui.1.html
What are you trying to do? If you want to show the current tool use a u32 number display.
www.linuxcnc.org/docview/html/hal_pyvcp.html#r1_6_4
John
Please Log in or Create an account to join the conversation.
26 Apr 2011 10:01 - 26 Apr 2011 11:07 #9322
by piasdom
Replied by piasdom on topic Re:PYVCP format help
Thanks, that'll help a lot.
Last edit: 26 Apr 2011 11:07 by piasdom.
Please Log in or Create an account to join the conversation.
26 Apr 2011 10:22 - 26 Apr 2011 11:07 #9324
by piasdom
Replied by piasdom on topic Re:PYVCP format help
and i tried both below to get the relative position of the axis for the DRO. i tried
feedback, commanded and relative. all give the same output. i'm using number display
to get the reading.
halui.axis.N.pos-relative
axis.2.joint-pos-fb
<hbox>
<label>
<text>"Z:"</text>
<fg>"midnightblue"</fg>
<font>('courier 18',18)</font>
<width>2</width>
</label>
<number>
<halpin>"feedback-z"</halpin>
<text>"X DRO"</text>
<fg>"midnightblue"</fg>
<font>('courier 18',24)</font>
<format>"2.4f"</format>
<bd>2</bd>
</number>
</hbox>
feedback, commanded and relative. all give the same output. i'm using number display
to get the reading.
halui.axis.N.pos-relative
axis.2.joint-pos-fb
<hbox>
<label>
<text>"Z:"</text>
<fg>"midnightblue"</fg>
<font>('courier 18',18)</font>
<width>2</width>
</label>
<number>
<halpin>"feedback-z"</halpin>
<text>"X DRO"</text>
<fg>"midnightblue"</fg>
<font>('courier 18',24)</font>
<format>"2.4f"</format>
<bd>2</bd>
</number>
</hbox>
Last edit: 26 Apr 2011 11:07 by piasdom.
Please Log in or Create an account to join the conversation.
26 Apr 2011 11:31 - 26 Apr 2011 11:46 #9330
by piasdom
Replied by piasdom on topic Re:PYVCP format help
Last edit: 26 Apr 2011 11:46 by piasdom.
Please Log in or Create an account to join the conversation.
Time to create page: 0.082 seconds