Want to test MPG

More
5 years 8 months ago #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

Please Log in to join the conversation.

More
5 years 8 months ago #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:~ $

Please Log in to join the conversation.

More
5 years 8 months ago #200100 by tecno
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!)

Attachment not found

This is a modified xhc-hal from Phillc54

Attachment not found


Attachment not found


Attachment not found


Attachment not found



Any help would be appreciated

Please Log in to join the conversation.

More
5 years 8 months ago #200102 by tecno
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!)

Attachment not found

This is a modified xhc-hal from Phillc54

Attachment not found


Attachment not found


Attachment not found


Attachment not found



Any help would be appreciated

Please Log in to join the conversation.

More
5 years 8 months ago #200477 by andypugh
You seem to be missing joint.2.jog-scale:
Code:
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

Please Log in to join the conversation.

More
5 years 7 months ago #200496 by crowloy
Replied by crowloy on topic Want to test MPG

phillc54 wrote: 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 to join the conversation.

More
5 years 7 months ago #200500 by phillc54
Replied by phillc54 on topic Want to test MPG

crowloy wrote: 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.

The ini file stuff:
Warning: Spoiler!


The M codes:
Warning: Spoiler!


The subroutines:
Warning: Spoiler!


EDIT:

crowloy wrote: 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.

If you have TWOPASS = ON in the [HAL] section it allows multiple load lines

linuxcnc.org/docs/2.8/html/config/ini-config.html#_hal_section

Please Log in to join the conversation.

More
5 years 7 months ago #200533 by tecno

andypugh wrote: You seem to be missing joint.2.jog-scale:

Code:
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

Attachment not found

Please Log in to join the conversation.

More
5 years 7 months ago #200732 by alkabal
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

Please Log in to join the conversation.

More
5 years 7 months ago #200804 by tecno

alkabal wrote: 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.

Attachment not found



No COUNTS

So how is the counts to be connected to count and get axis moving?

Cheers
Bengt

Please Log in to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum