Getting Started - Setup / Download / Configuring

More
17 Nov 2014 21:24 #53170 by BigJohnT
If you want the buttons to jog the machine connect them to the appropriate halui pin.

For example:
net jog-x-minus halui.jog.0.minus <= gladevcp.btn_x_minus

JT
The following user(s) said Thank You: Askjerry

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

More
17 Nov 2014 22:44 #53173 by Askjerry
@BigJohnT

Thanks for the syntax... the file is not causing errors... but it's not doing anything either. The panel comes up, but the buttons are still non-functional.

The custom_postgui.hal file looks like this now.
# =================================================================
# Custom Post GUI - Net Connection File - November 2014 V1.0
# =================================================================
# The commands in this file are run after the AXIS GUI starts
# -----------------------------------------------------------------
# Be sure this follows the [DISPLAY] header
# GLADEVCP= -u ./hitcounter.py mypanel.glade
# -----------------------------------------------------------------
net jog-x-minus halui.jog.0.minus <= gladevcp.btn_x_minus
net jog-x-plus halui.jog.0.plus <= gladevcp.btn_x_plus
# -----------------------------------------------------------------
net jog-y-minus halui.jog.1.minus <= gladevcp.btn_y_minus
net jog-y-plus halui.jog.1.plus <= gladevcp.btn_y_plus
# -----------------------------------------------------------------
net jog-z-minus halui.jog.2.minus <= gladevcp.btn_z_minus
net jog-z-plus halui.jog.2.plus <= gladevcp.btn_z_plus
# -----------------------------------------------------------------
net jog-a-minus halui.jog.3.minus <= gladevcp.btn_a_minus
net jog-a-plus halui.jog.3.plus <= gladevcp.btn_a_plus
# -----------------------------------------------------------------
# led_x_home needs to go TRUE if the X-Axis is homed
# led_y_home needs to go TRUE if the Y-Axis is homed
# led_z_home needs to go TRUE if the Z-Axis is homed
# led_a_home needs to go TRUE if the A-Axis is homed

Once we get the buttons functional... I need to find the names reference...
I understand gladevcp.btn_x_minus as I programmed it in Glade, but I need to find where the other names jog-x-minus and halui.jog.0.minus come from... so I can look up the JOG reference for getting the slider connected... and for the LED indicators.

For example... I know that the LED to detect the X-Home is called led_x_home and that it must connect with halui.?????? just need to find the references.

For now... what am I missing to activate the buttons?

...and I REALLY do appreciate the help!!! :)

Jerry

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

More
18 Nov 2014 05:21 - 18 Nov 2014 05:25 #53178 by newbynobi
Jerry,

as far as I see from here in Germany, you placed all the button in a hal_table and that one is not active, so the buttons in there aren't active eather. (I can not see whitch kind of hal_table you used)

You may take a look at the documentation for details.

Are they looking as in your first screenshot (light grey)?
Is the machine out of emergency, switched on and all axis homed?

Or do they get active?

Norbert
Last edit: 18 Nov 2014 05:25 by newbynobi.

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

More
18 Nov 2014 05:42 - 18 Nov 2014 05:44 #53179 by Askjerry
Nah, they do not activate... they stay grey.

When I followed the pyVCD example, I typed in the XML, then put the code into the custom_postgui.hal and everything worked.

Here is the pyVCD sample screen shot...


I thought that if I used Glade to make the XML file... it would work the same way... but apparently not. It loaded... that's a start... and the latest configuration didn't crash the system... but it never activates. Not sure why. I asked another friend and he said something about needing to write a whole Python program to make it work. So I'm kinda stuck now. It's odd... because the pyVCD only needed two items... the XML and the lines I put in the custom_postgui.hal file.

Hopefully someone can take the ZIP file I attached in my last post and look at it... then find some minor thing I missed. But for now... I'm using the first configuration I built with a pyVCD set of Jog Buttons (image above)... right out of the manual... all I did was add in the A-Axis buttons.

I want to get the Glade version working... then learn how to do the MDI calls.

One step at a time I guess.
Last edit: 18 Nov 2014 05:44 by Askjerry. Reason: Grammer / Spelling / Clarity

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

More
18 Nov 2014 14:48 #53187 by Askjerry
I took a step back and revisited the pyVCP method of doing this... I was able to achieve all the functionality that I was going to do using Glade.

Building the panel was an interesting experience... but I program public safety radios... and all the export files are XML... so I kind of felt at home once I figured a few things out.

I wanted to share with the community... so I documented all my efforts HERE .

I haven't given up on Glade... after two days to get it working I'm sure I'll revisit it... but for now... I'm gonna tinker with the PROBE and put some intelligence into my setups.

Thanks for the help!! :lol:

Jerry

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

More
18 Nov 2014 15:42 - 18 Nov 2014 15:44 #53188 by newbynobi
Hallo Jerry,

please tell your friend, that he is wrong, not even one line of code is needed for a normal glade panel.

As I told, you did use a hal-sensitive-table, witch has a pin to sensitize or not the child widgets. This pin have never been set high.

If you add at the end of your postgui file following lines, your panel should work.
setp mypanel.hal_table1 1
setp mypanel.hal_table2 1

If that do work, then lets make the next step, to connect the pins in a correct way, or just rework your panal.

Norbert

P.S. As you see, gmoccapy has the button allready on board and homing state is done by DRO color change
Attachments:
Last edit: 18 Nov 2014 15:44 by newbynobi.

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

More
18 Nov 2014 16:05 #53189 by newbynobi
Hallo Jerry,

I just did a litle rework on your glade file.

hal_table_1 is now a state_sensitive_table, so the button in there will get sensitive after the machine is homed.

hal_table_2 is now a normal glade table, so widgets are sensitive all the time.

And I added also the missing adjustment for the slider.

If you do use this panel, you do not need to add the setp lines to your postgui hal.



Norbert
Attachments:
The following user(s) said Thank You: Askjerry

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

More
18 Nov 2014 22:43 #53194 by Askjerry
I will download this and experiment with it.
Good to have more than one way to accomplish a goal!

Thank you,
Jerry

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

Moderators: mhaberlerHansU
Time to create page: 0.348 seconds
Powered by Kunena Forum