Want to test MPG
23 Feb 2021 13:11 - 23 Feb 2021 13:32 #199822
by tecno
Replied by tecno on topic Want to test MPG LHB04-6
It must be the driver that cannot handle the LHB04-6
halcmd loadusr xhc-whb04b-6 = no connection.
failed to claim interface
So I ask if it can be compiled to suite LHB04-6
halcmd loadusr xhc-whb04b-6 = no connection.
failed to claim interface
So I ask if it can be compiled to suite LHB04-6
Last edit: 23 Feb 2021 13:32 by tecno.
Please Log in or Create an account to join the conversation.
23 Feb 2021 14:03 - 23 Feb 2021 14:05 #199827
by tecno
Replied by tecno on topic Want to test MPG LHB04-6
This LHB mpg does not work on RPi but OK on Debian10
pi@pi4-mate:~ $ uname -a
Linux pi4-mate 4.19.71-rt24-v7lrt+ #1 SMP PREEMPT RT Mon May 18 16:17:58 AEST 2020 armv7l GNU/Linux
pi@pi4-mate:~ $
pi@pi4-mate:~ $ uname -a
Linux pi4-mate 4.19.71-rt24-v7lrt+ #1 SMP PREEMPT RT Mon May 18 16:17:58 AEST 2020 armv7l GNU/Linux
pi@pi4-mate:~ $
Last edit: 23 Feb 2021 14:05 by tecno.
Please Log in or Create an account to join the conversation.
25 Feb 2021 15:29 #200100
by tecno
Replied by tecno on topic WANTED MPG HELP with xhc-whb04b-6
I have now a setup partly working but cannot wrap my head around how to get motors moving from pendant.
Buttons etc are working in Show Hal Configuration (no MDI yet!)
This is a modified xhc-hal from Phillc54
Any help would be appreciated
Buttons etc are working in Show Hal Configuration (no MDI yet!)
This is a modified xhc-hal from Phillc54
Any help would be appreciated
Attachments:
Please Log in or Create an account to join the conversation.
25 Feb 2021 15:30 #200102
by tecno
Replied by tecno on topic WANTED MPG HELP with xhc-whb04b-6
I have now a setup partly working but cannot wrap my head around how to get motors moving from pendant.
Buttons etc are working in Show Hal Configuration (no MDI yet!)
This is a modified xhc-hal from Phillc54
Any help would be appreciated
Buttons etc are working in Show Hal Configuration (no MDI yet!)
This is a modified xhc-hal from Phillc54
Any help would be appreciated
Please Log in or Create an account to join the conversation.
28 Feb 2021 22:42 - 28 Feb 2021 22:43 #200477
by andypugh
Replied by andypugh on topic WANTED MPG HELP with xhc-whb04b-6
You seem to be missing joint.2.jog-scale:
net pendant:jog-scale-out pendant:jog_enable_mux.out => pendant:jog_mult2.in0
net pendant:scale_div_1000 pendant:jog_mult2.out => axis.x.jog-scale axis.y.jog-scale axis.z.jog-scale
net pendant:scale_div_1000 => joint.0.jog-scale joint.1.jog-scale
Last edit: 28 Feb 2021 22:43 by andypugh.
Please Log in or Create an account to join the conversation.
01 Mar 2021 01:54 #200496
by crowloy
Any chance of having a look at your mdi_commands in you .ini? I finally got my xhc-hb04 working kinda.. Need to do the mdi-commands.
One problem I had was an loadrt or2 in plasmanew.ini conflicting with the loadrt or2 names= line in your pendant.hal. After some headscratching and cursing, I ended up putting a or2.0 in the names= line and removing the one loadrt line. Everything seems to be working at that point.
Replied by crowloy on topic Want to test MPG
You will probably need to rearrange some hal logic to suit the pendant.
I use a XHC-HB04 so I don't know if this will be any help but my hal file is attached.
Any chance of having a look at your mdi_commands in you .ini? I finally got my xhc-hb04 working kinda.. Need to do the mdi-commands.
One problem I had was an loadrt or2 in plasmanew.ini conflicting with the loadrt or2 names= line in your pendant.hal. After some headscratching and cursing, I ended up putting a or2.0 in the names= line and removing the one loadrt line. Everything seems to be working at that point.
Please Log in or Create an account to join the conversation.
01 Mar 2021 02:25 - 01 Mar 2021 07:36 #200500
by phillc54
The M codes:
M110
M111
M112
The subroutines:
load_sheet
next_corner
EDIT:
linuxcnc.org/docs/2.8/html/config/ini-config.html#_hal_section
Replied by phillc54 on topic Want to test MPG
The ini file stuff:Any chance of having a look at your mdi_commands in you .ini? I finally got my xhc-hb04 working kinda.. Need to do the mdi-commands.
Warning: Spoiler!
[HALUI]
#BUTTON=01:button-goto-zero
MDI_COMMAND = G0 X0
MDI_COMMAND = G0 Y0
MDI_COMMAND = G0 Z0
MDI_COMMAND = (debug, Goto Zero A Pressed)
#BUTTON=04:button-probe-z
MDI_COMMAND = M111
#BUTTON=05:button-macro-3
MDI_COMMAND = o<next_corner> call
#BUTTON=06:button-half
MDI_COMMAND = (debug, Half X Pressed)
MDI_COMMAND = (debug, Half Y Pressed)
MDI_COMMAND = (debug, Half Z Pressed)
MDI_COMMAND = (debug, Half A Pressed)
#BUTTON=07:button-zero
MDI_COMMAND = G10 L20 P0 X0
MDI_COMMAND = G10 L20 P0 Y0
MDI_COMMAND = (debug, Touchoff Zero Z Pressed)
MDI_COMMAND = (debug, Touchoff Zero A Pressed)
#BUTTON=08:button-safe-z
MDI_COMMAND = G53 G0 Z#<_ini[joint_3]home>
#BUTTON=0B:button-macro-2
MDI_COMMAND = o<load_sheet> call
#BUTTON=0C:button-spindle
MDI_COMMAND = M112
#BUTTON=OF:button-macro-6
MDI_COMMAND = (debug, Macro-6 Pressed)
#BUTTON=10:button-macro-7
MDI_COMMAND = M110
[XHC-HB04]
BUTTON=01:button-goto-zero
BUTTON=02:button-start-pause
BUTTON=03:button-rewind
BUTTON=04:button-probe-z
BUTTON=05:button-macro-3
BUTTON=06:button-half
BUTTON=07:button-zero
BUTTON=08:button-safe-z
BUTTON=09:button-home
BUTTON=0A:button-macro-1
BUTTON=0B:button-macro-2
BUTTON=0C:button-spindle
BUTTON=0D:button-step
BUTTON=0E:button-mode
BUTTON=0F:button-macro-6
BUTTON=10:button-macro-7
BUTTON=16:button-stop
BUTTON=17:button-reset
The M codes:
Warning: Spoiler!
M110
#!/bin/sh
# CLEAR AXIS NOTIFICATIONS
halcmd setp axisui.notifications-clear 1
sleep 0.25
halcmd setp axisui.notifications-clear 0
exit 0
M111
#!/bin/sh
# PROBE TEST
if [ `halcmd gets plasmac:program-is-idle` ] && [ `halcmd getp plasmac.probe-test` = FALSE ]; then
halcmd setp plasmac.probe-test 1
sleep 10
halcmd setp plasmac.probe-test 0
fi
exit 0
M112
#!/bin/sh
# TORCH PULSE
if [ `halcmd getp plasmac.torch-enable` ] && [ `halcmd gets plasmac:program-is-idle` ]; then
halcmd setp plasmac.torch-pulse-start 1
sleep 0.1
halcmd setp plasmac.torch-pulse-start 0
fi
exit 0
The subroutines:
Warning: Spoiler!
load_sheet
o<load_sheet> sub
; these are absolute (G53) coordinates
#<x_load> = 100 ;X loading position
#<y_load> = 625 ;Y loading position
#<x_park> = 0 ;X parking position
#<y_park> = 0 ;Y parking position
G28.1 ;save current absolute coordinates
#<x_saved> = #5161 ;X saved position
#<y_saved> = #5162 ;Y saved position
o100 if [#<x_saved> ne #<x_load>]
G53 G0 X#<x_load> Y#<y_load>
o100 elseif [#<y_saved> ne #<y_load>]
G53 G0 X#<x_load> Y#<y_load>
o100 else
G53 G0 X#<x_park> Y#<y_park>
o100 endif
m2
o<load_sheet> endsub
next_corner
o<next_corner> sub
; these are absolute (G53) coordinates
#<x_left> = 20 ;X left position
#<x_right> = 592 ;X right position
#<y_rear> = 605 ;Y rear position
#<y_front> = 20 ;Y front position
G28.1 ;save current absolute coordinates
#<x_saved> = #5161 ;X saved position
#<y_saved> = #5162 ;Y saved position
o100 if [#<x_saved> eq #<x_left>]
o101 if [#<y_saved> eq #<y_rear>]
G53 G0 X#<x_right>
o101 else
G53 G0 Y#<y_rear>
o101 endif
o100 elseif [#<x_saved> eq #<x_right>]
o102 if [#<y_saved> eq #<y_rear>]
G53 G0 Y#<y_front>
o102 elseif [#<y_saved> eq #<y_front>]
G53 G0 X#<x_left>
o102 else
G53 G0 X#<x_left> Y#<y_rear>
o102 endif
o100 else
G53 G0 X#<x_left> Y#<y_rear>
o100 endif
m2
o<next_corner> endsub
EDIT:
If you have TWOPASS = ON in the [HAL] section it allows multiple load linesOne problem I had was an loadrt or2 in plasmanew.ini conflicting with the loadrt or2 names= line in your pendant.hal. After some headscratching and cursing, I ended up putting a or2.0 in the names= line and removing the one loadrt line. Everything seems to be working at that point.
linuxcnc.org/docs/2.8/html/config/ini-config.html#_hal_section
Last edit: 01 Mar 2021 07:36 by phillc54.
Please Log in or Create an account to join the conversation.
01 Mar 2021 10:09 #200533
by tecno
Ahh, missed that one. But still no go.
Selecting StepMode this happens
Replied by tecno on topic WANTED MPG HELP with xhc-whb04b-6
You seem to be missing joint.2.jog-scale:
net pendant:jog-scale-out pendant:jog_enable_mux.out => pendant:jog_mult2.in0 net pendant:scale_div_1000 pendant:jog_mult2.out => axis.x.jog-scale axis.y.jog-scale axis.z.jog-scale net pendant:scale_div_1000 => joint.0.jog-scale joint.1.jog-scale
Ahh, missed that one. But still no go.
Selecting StepMode this happens
Attachments:
Please Log in or Create an account to join the conversation.
01 Mar 2021 20:46 - 01 Mar 2021 20:48 #200732
by alkabal
Replied by alkabal on topic WANTED MPG HELP with xhc-whb04b-6
Hi
I think you try to use the new version xhc-whb04b-6 but your config is really different than the near ready to use config file
raw.githubusercontent.com/LinuxCNC/linux...ple-configuration.md
the man page related to this one is :
linuxcnc.org/docs/2.8/html/man/man1/xhc-whb04b-6.1.html
In theory you only need to link this file in your ini thats all !
(and if you have some duplicated pin used in you ini and in the pendant file you need to adapt using the same net name for both signal)
Are you sure the vid and pid number are the same for your wired device ? (but if button work like you says imo this is ok)
If you have only some difficulty with the MPG wheel, you only need to press button Step or Continuous before turning the wheel or by default the wheel change the feedrate override.
Br
I think you try to use the new version xhc-whb04b-6 but your config is really different than the near ready to use config file
raw.githubusercontent.com/LinuxCNC/linux...ple-configuration.md
the man page related to this one is :
linuxcnc.org/docs/2.8/html/man/man1/xhc-whb04b-6.1.html
In theory you only need to link this file in your ini thats all !
(and if you have some duplicated pin used in you ini and in the pendant file you need to adapt using the same net name for both signal)
Are you sure the vid and pid number are the same for your wired device ? (but if button work like you says imo this is ok)
If you have only some difficulty with the MPG wheel, you only need to press button Step or Continuous before turning the wheel or by default the wheel change the feedrate override.
Br
Last edit: 01 Mar 2021 20:48 by alkabal.
Please Log in or Create an account to join the conversation.
02 Mar 2021 17:55 #200804
by tecno
In theory you only need to link this file in your ini thats all ! Theory and practice is different beasts.
Have been pounding my head around example-configuration.md and it is not working either.
No COUNTS
So how is the counts to be connected to count and get axis moving?
Cheers
Bengt
Replied by tecno on topic WANTED MPG HELP with xhc-whb04b-6
Hi
I think you try to use the new version xhc-whb04b-6 but your config is really different than the near ready to use config file
raw.githubusercontent.com/LinuxCNC/linux...ple-configuration.md
the man page related to this one is :
linuxcnc.org/docs/2.8/html/man/man1/xhc-whb04b-6.1.html
In theory you only need to link this file in your ini thats all !
(and if you have some duplicated pin used in you ini and in the pendant file you need to adapt using the same net name for both signal)
Are you sure the vid and pid number are the same for your wired device ? (but if button work like you says imo this is ok)
If you have only some difficulty with the MPG wheel, you only need to press button Step or Continuous before turning the wheel or by default the wheel change the feedrate override.
Br
In theory you only need to link this file in your ini thats all ! Theory and practice is different beasts.
Have been pounding my head around example-configuration.md and it is not working either.
No COUNTS
So how is the counts to be connected to count and get axis moving?
Cheers
Bengt
Attachments:
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.263 seconds