xhc-whb04b-6 and or2 problem with pin
I have these pins / commands:
pyvcp_options.hal:
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:
net pdnt.macro.1 whb.button.macro-1 halui.mdi-command-01
file hal:
[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
o<safe-z> sub
M5 M9
G49
G90
G53 G0 Z0
o<safe-z> endsub
m2
<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 postgui_call_list.hal:
source pyvcp_options.hal
source custom_postgui.hal
pyvcp_options.hal:14: Pin 'pdnt.macro.1' does not exist
Please Log in or Create an account to join the conversation.
you need to change :
xhc-whb04b-6.hal:
net pdnt.macro.1 whb.button.macro-1 #halui.mdi-command-01
and add to your postgui hal
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 or Create an account to join the conversation.
I corrected 4 commands, but still the problem:
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
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:
#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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
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
# 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 or Create an account to join the conversation.
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
# 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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
Hello, which button is it? is it on mpg?you can swap to mode Contiunous or Step using the corresponding button
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.