xhc-whb04b-6 and or2 problem with pin

More
5 years 4 months ago #212186 by szatri
Hello, I have mpg and additional virtual buttons in axis, I want to combine the functions of the buttons on mpg and on the screen into one function of calling the program
I have these pins / commands:

pyvcp_options.hal:
Code:
loadrt or2 count=1 addf or2.0 servo-thread net or2.0.in0 pdnt.macro.1 net or2.0.in1 halui.mdi-command-01 net pyvcp.safe-z or2.0.out net remote-safe-z or2.0.out <= pyvcp.safe-z

xhc-whb04b-6.hal:
Code:
net pdnt.macro.1 whb.button.macro-1 halui.mdi-command-01

file hal:
Code:
[HAL] HALFILE = ploter.hal HALFILE = custom.hal HALFILE = xhc-whb04b-6.hal HALUI = halui POSTGUI_HALFILE = postgui_call_list.hal [HALUI] MDI_COMMAND = O<touch-probe> call MDI_COMMAND = O<safe-z> call MDI_COMMAND = O<tool-change> call MDI_COMMAND = O<parking> call MDI_COMMAND = O<wrzec> call ##MPG MDI_COMMAND=(debug,00) MDI_COMMAND=(debug,macro1) MDI_COMMAND=(debug,macro2) MDI_COMMAND=(debug,macro3) MDI_COMMAND=(debug,macro4) MDI_COMMAND=G1 G53 X0 Y0 Z0 F4000 MDI_COMMAND=(debug,macro6) MDI_COMMAND=G1 X0 Y0 Z0 F4000 MDI_COMMAND=(debug,macro8) MDI_COMMAND=(debug,macro9) MDI_COMMAND=(debug,macro10) MDI_COMMAND=(debug,macro11) MDI_COMMAND=(debug,macro12) MDI_COMMAND=(debug,macro13) MDI_COMMAND=(debug,macro14) MDI_COMMAND=(debug,macro15) MDI_COMMAND=(debug,macro16) MDI_COMMAND=G1 G53 Z0 F4000 MDI_COMMAND=(debug,macro17) MDI_COMMAND=(debug,macro18) MDI_COMMAND=(debug,macro19) ##MPG
file safe-z.ngc
Code:
o<safe-z> sub M5 M9 G49 G90 G53 G0 Z0 o<safe-z> endsub m2
file custom_panel.xml
Code:
<button> <halpin>"safe-z"</halpin> <relief>RIDGE</relief> <text>"Zetka do gĂłry"</text> <bd>1</bd> <pady>5</pady> <padx>0</padx> <font>("Helvetica",12)</font> <bg>"#870121"</bg> <fg>"#e3e7e6"</fg> </button>
file custom.hal is empty
file postgui_call_list.hal:
Code:
source pyvcp_options.hal source custom_postgui.hal
The current configuration shows this error:
Code:
pyvcp_options.hal:14: Pin 'pdnt.macro.1' does not exist
These are snippets from the configuration but I only need ordering examples for the net and or2 connections.

Please Log in to join the conversation.

More
5 years 4 months ago #212190 by alkabal
I think your hal link are not correct
you need to change :
Code:
xhc-whb04b-6.hal: net pdnt.macro.1 whb.button.macro-1 #halui.mdi-command-01

and add to your postgui hal
Code:
net pdnt.macro.1 => or2.0.in0 net mdi_or2_in1 <= pyvcp.safe-z net mdi_or2_in1 => or2.0.in1 net mdi-or2_out => halui.mdi-command-01

Please Log in to join the conversation.

More
5 years 4 months ago #212191 by szatri
Hello, does what I have marked on the screen are mutually exclusive?

I corrected 4 commands, but still the problem:
Code:
loadrt or2 count=4 addf or2.0 servo-thread addf or2.1 servo-thread addf or2.2 servo-thread addf or2.3 servo-thread net pdnt.macro.1 => or2.0.in0 net mdi_or2.0.in1 <= pyvcp.safe-z net mdi_or2.0.in1 => or2.0.in1 net mdi-or2.0.out => halui.mdi-command-01 net pdnt.macro.2 => or2.1.in0 net mdi_or2.1.in1 <= pyvcp.tool-change net mdi_or2.1.in1 => or2.1.in1 net mdi-or2.1.out => halui.mdi-command-02 net pdnt.macro.3 => or2.2.in0 net mdi_or2.2.in1 <= pyvcp.parking net mdi_or2.2.in1 => or2.2.in1 net mdi-or2.2.out => halui.mdi-command-03 net pdnt.macro.4 => or2.3.in0 net mdi_or2.3.in1 <= pyvcp.wrzec net mdi_or2.3.in1 => or2.3.in1 net mdi-or2.3.out => halui.mdi-command-04 net remote-touch-probe halui.mdi-command-00 <= pyvcp.touch-probe net remote-safe-z or2.0.out <= pyvcp.safe-z net remote-tool-change or2.1.out <= pyvcp.tool-change net remote-parking or2.2.out <= pyvcp.parking net remote-wrzec or2.3.out <= pyvcp.wrzec
gives the following error

pyvcp_options.hal:40: Pin 'pyvcp.safe-z' was already linked to signal 'mdi_or2.0.in1'


Only when # it starts, but the buttons do not work:
Code:
#net remote-safe-z or2.0.out <= pyvcp.safe-z #net remote-tool-change or2.1.out <= pyvcp.tool-change #net remote-parking or2.2.out <= pyvcp.parking #net remote-wrzec or2.3.out <= pyvcp.wrzec

Please Log in to join the conversation.

More
5 years 4 months ago #212203 by alkabal
Code:
loadrt or2 count=4 addf or2.0 servo-thread addf or2.1 servo-thread addf or2.2 servo-thread addf or2.3 servo-thread net pdnt.macro.1 => or2.0.in0 net mdi_or2.0.in1 <= pyvcp.safe-z net mdi_or2.0.in1 => or2.0.in1 net mdi_or2.0.out <= or2.0.out net mdi_or2.0.out => halui.mdi-command-01 net pdnt.macro.2 => or2.1.in0 net mdi_or2.1.in1 <= pyvcp.tool-change net mdi_or2.1.in1 => or2.1.in1 net mdi_or2.1.out <= or2.1.out net mdi_or2.1.out => halui.mdi-command-02 net pdnt.macro.3 => or2.2.in0 net mdi_or2.2.in1 <= pyvcp.parking net mdi_or2.2.in1 => or2.2.in1 net mdi_or2.2.out <= or2.2.out net mdi_or2.2.out => halui.mdi-command-03 net pdnt.macro.4 => or2.3.in0 net mdi_or2.3.in1 <= pyvcp.wrzec net mdi_or2.3.in1 => or2.3.in1 net mdi_or2.3.out <= or2.3.out net mdi_or2.3.out => halui.mdi-command-04 net remote-touch-probe halui.mdi-command-00 <= pyvcp.touch-probe


Try that i appologize they are a typo error and missed to connect the output signal to mdi in the first attempt

Please Log in to join the conversation.

More
5 years 4 months ago #212262 by szatri
Code:
loadrt or2 count=4 addf or2.0 servo-thread addf or2.1 servo-thread addf or2.2 servo-thread addf or2.3 servo-thread net pdnt.macro.1 => or2.0.in0 net mdi_or2.0.in1 <= pyvcp.safe-z net mdi_or2.0.in1 => or2.0.in1 net mdi_or2.0.out <= or2.0.out net mdi_or2.0.out => halui.mdi-command-01 net pdnt.macro.2 => or2.1.in0 net mdi_or2.1.in1 <= pyvcp.tool-change net mdi_or2.1.in1 => or2.1.in1 net mdi_or2.1.out <= or2.1.out net mdi_or2.1.out => halui.mdi-command-02 net pdnt.macro.3 => or2.2.in0 net mdi_or2.2.in1 <= pyvcp.parking net mdi_or2.2.in1 => or2.2.in1 net mdi_or2.2.out <= or2.2.out net mdi_or2.2.out => halui.mdi-command-03 net pdnt.macro.4 => or2.3.in0 net mdi_or2.3.in1 <= pyvcp.wrzec net mdi_or2.3.in1 => or2.3.in1 net mdi_or2.3.out <= or2.3.out net mdi_or2.3.out => halui.mdi-command-04 net remote-touch-probe halui.mdi-command-00 <= pyvcp.touch-probe net remote-safe-z halui.mdi-command-01 <= pyvcp.safe-z net remote-tool-change halui.mdi-command-02 <= pyvcp.tool-change net remote-parking halui.mdi-command-03 <= pyvcp.parking net remote-wrzec halui.mdi-command-04 <= pyvcp.wrzec
xhc-whb04b-6.hal:
Code:
# Connect macro buttons to mdi commands net pdnt.macro.1 whb.button.macro-1 halui.mdi-command-01 net pdnt.macro.2 whb.button.macro-2 halui.mdi-command-02 net pdnt.macro.3 whb.button.macro-3 halui.mdi-command-03 net pdnt.macro.4 whb.button.macro-4 halui.mdi-command-04

pyvcp_options.hal:19: Pin 'halui.mdi-command-01' was already linked to signal 'pdnt.macro.1'

Please Log in to join the conversation.

More
5 years 4 months ago #212263 by alkabal
your code Edited
Code:
loadrt or2 count=4 addf or2.0 servo-thread addf or2.1 servo-thread addf or2.2 servo-thread addf or2.3 servo-thread net pdnt.macro.1 => or2.0.in0 net mdi_or2.0.in1 <= pyvcp.safe-z net mdi_or2.0.in1 => or2.0.in1 net mdi_or2.0.out <= or2.0.out net mdi_or2.0.out => halui.mdi-command-01 net pdnt.macro.2 => or2.1.in0 net mdi_or2.1.in1 <= pyvcp.tool-change net mdi_or2.1.in1 => or2.1.in1 net mdi_or2.1.out <= or2.1.out net mdi_or2.1.out => halui.mdi-command-02 net pdnt.macro.3 => or2.2.in0 net mdi_or2.2.in1 <= pyvcp.parking net mdi_or2.2.in1 => or2.2.in1 net mdi_or2.2.out <= or2.2.out net mdi_or2.2.out => halui.mdi-command-03 net pdnt.macro.4 => or2.3.in0 net mdi_or2.3.in1 <= pyvcp.wrzec net mdi_or2.3.in1 => or2.3.in1 net mdi_or2.3.out <= or2.3.out net mdi_or2.3.out => halui.mdi-command-04 net remote-touch-probe halui.mdi-command-00 <= pyvcp.touch-probe
xhc-whb04b-6.hal:
Code:
# Connect macro buttons to mdi commands net pdnt.macro.1 whb.button.macro-1 #halui.mdi-command-01 net pdnt.macro.2 whb.button.macro-2 #halui.mdi-command-02 net pdnt.macro.3 whb.button.macro-3 #halui.mdi-command-03 net pdnt.macro.4 whb.button.macro-4 #halui.mdi-command-04

Please Log in to join the conversation.

More
5 years 4 months ago #212265 by szatri
Thanks a lot, I would never have done it myself.
I have a question if there is any topic about using / calibrating this mpg, because the right switch in manual mode does not change the feed pitch (by a given distance) only the general OVERRIDE (first bar in the axis)

Please Log in to join the conversation.

More
5 years 4 months ago #212266 by alkabal
Well i'm unsure if i really answear to your question.

the right switch as i know is depending on the selected mode :
at startup is mode Mpg used for feedoverride
you can swap to mode Contiunous or Step using the corresponding button
using lead position you can change spindle override
after go back from position lead you get again Mpg mode for feedoverride

Please Log in to join the conversation.

More
5 years 4 months ago #212314 by szatri

alkabal wrote: you can swap to mode Contiunous or Step using the corresponding button

Hello, which button is it? is it on mpg?

Please Log in to join the conversation.

More
5 years 4 months ago #212322 by alkabal
yes on both side from mpg wheel

Please Log in to join the conversation.

Time to create page: 0.117 seconds
Powered by Kunena Forum