Want to test MPG

More
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
Last edit: 23 Feb 2021 13:32 by tecno.

Please Log in or Create an account to join the conversation.

More
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:~ $
Last edit: 23 Feb 2021 14:05 by tecno.

Please Log in or Create an account to join the conversation.

More
25 Feb 2021 15:29 #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!)

File Attachment:

File Name: plaCmpg.hal
File Size:7 KB
This is a modified xhc-hal from Phillc54

File Attachment:

File Name: plasmac-kopia.tcl.txt
File Size:4 KB

File Attachment:

File Name: tecnoplasm...2-25.ini
File Size:9 KB

File Attachment:

File Name: tecnoplasm...2-25.hal
File Size:6 KB

File Attachment:

File Name: pinoutfrxh...2-25.txt
File Size:8 KB


Any help would be appreciated
Attachments:

Please Log in or Create an account to join the conversation.

More
25 Feb 2021 15:30 #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!)

File Attachment:

File Name: plaCmpg.hal
File Size:7 KB
This is a modified xhc-hal from Phillc54

File Attachment:

File Name: plasmac-kopia.tcl.txt
File Size:4 KB

File Attachment:

File Name: tecnoplasm...2-25.ini
File Size:9 KB

File Attachment:

File Name: tecnoplasm...2-25.hal
File Size:6 KB

File Attachment:

File Name: pinoutfrxh...2-25.txt
File Size:8 KB


Any help would be appreciated

Please Log in or Create an account to join the conversation.

More
28 Feb 2021 22:42 - 28 Feb 2021 22:43 #200477 by andypugh
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.

More
01 Mar 2021 01:54 #200496 by crowloy
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.

More
01 Mar 2021 02:25 - 01 Mar 2021 07:36 #200500 by phillc54
Replied by phillc54 on topic Want to test MPG

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:

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
Last edit: 01 Mar 2021 07:36 by phillc54.

Please Log in or Create an account to join the conversation.

More
01 Mar 2021 10:09 #200533 by tecno

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.

More
01 Mar 2021 20:46 - 01 Mar 2021 20:48 #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
Last edit: 01 Mar 2021 20:48 by alkabal.

Please Log in or Create an account to join the conversation.

More
02 Mar 2021 17:55 #200804 by tecno

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.

File Attachment:

File Name: nisse.hal
File Size:14 KB


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.120 seconds
Powered by Kunena Forum