Ext hard buttons duplicate Power_PB and Reset

More
7 months 6 days ago #344699 by ts
Hi, JT!

i didnt understand how to add functionallity, to doplicate fleglxgui buttons like a PowerPB and Reset (included functions, and there are not in Hal components) to the external hard electrical contacf buttons (ext btn already in hal, but where the pin signals to connect it)?

Thanks in advace!
TS

Please Log in to join the conversation.

More
7 months 4 days ago #344811 by ts
Additional :
I tryed to add halui to have functionality of power on button and reset with external hard button, but somewhy there is an errors duing start of halui. May be flexgui didnt let halui to start?

Please Log in to join the conversation.

More
7 months 3 days ago #344841 by JT
Flex GUI has nothing to do with halui.

This is my code for my BP external Estop.
Code:
# E-Stop Chain loadrt estop_latch count=1 addf estop-latch.0 servo-thread # E-Stop Loop net estop-loopin iocontrol.0.user-enable-out => estop-latch.0.ok-in net estop-loopout estop-latch.0.ok-out => iocontrol.0.emc-enable-in # E-Stop Reset net estop-reset iocontrol.0.user-request-enable net estop-reset => estop-latch.0.reset net remote-estop0 estop-latch.0.fault-in <= hm2_5i25.0.7i77.0.0.input-06-not

JT

Please Log in to join the conversation.

More
7 months 3 days ago #344864 by ts
Thanks for your answer.
I will try it

An what about External power button to switch ServoOn? I need separately button to send command the same as power_pb ib flexgui

TS

Please Log in to join the conversation.

More
7 months 2 days ago #344874 by JT
Connect your external power button to halui.machine.on, note the estop must be released before pressing the power button.

JT

Please Log in to join the conversation.

More
7 months 1 hour ago #344986 by ts
Ok, it is reset of latched estop.
And how to realise reset button for external errors, for example drives errors or external devises (torch head or edm generator)?

Also i couldnt startup halui component, but somehow flexgui send power on signal to drives , i want to know how to use the same logic and send signal the same way

Please Log in to join the conversation.

More
6 months 4 weeks ago #345091 by rdtsc
Hi ts,

Check the FlexGUI section about HAL pins: gnipsel.com/linuxcnc/flexgui/hal.html   Example at bottom.

To link something from HAL into FlexGUI:
* Note that your main HAL file is for defining the bulk of the connections.  Here we're talking about a -postgui.hal file, which specifically only gets loaded after the GUI is available, and only contains GUI-related things.  So your .ini file must have an entry like POSTGUI_HALFILE = mypostgui.hal. This is the -postgui.hal file we're talking about.
1. Give a button a Dynamic Property type of String, name of function, and value of hal_pin.  This lets FlexGUI know that this button will do something in your -postgui.hal file.
2. Give the button another Dynamic Property of String, named pin_name, then set that value to the name you want to be visible in your -postgui.hal file, like DriveReset for example.  Save your .ui in QtDesigner.
3. Open the -postgui.hal file, and make the link like this:    net   whoa_drive   DriveReset   =>    hm2_7c80.0.ssr.00.out-04    or whatever connection you like. Then when you press that button, it will affect the HAL device you have connected it to.

Please Log in to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum