Re: [Emc-users] Mb2hal 2.9?

2024-05-08 Thread gene heskett

On 5/8/24 13:44, Todd Zuercher via Emc-users wrote:

Gene,

Tell me more about this udev bug.

I'm not so sure this system even has it.  If I check the directory  
/dev/serial/by-id is there and has one device in it, and it looks like it is 
most likely my device.  If my system was affected bu this bug would the by-id 
directory not be there, or would it not have any devices in it, or would the 
device just not work?

I've a usb tree resembling a weeping willow, over a dozen usb cables 
plugged into at least three 4-port expanders, one of which is a 7 port 
and its full, so my output from that command shows 2 devices. One is 
driving an X10 CM11a to control some lights. And I don't recall what the 
other is doing. The x10 stuff has only been running about 35 years. I'm 
one of the two authors of the Amiga's ezhome software for x19 stuff. 
I've long since forgot the nitty and gritty details of what all I had it 
doing.


Whatever you have that did use the /dev/serial/by-id stuff would not be 
working if the bug is present. Buster is ok, bullseye and bookworm will 
fail and the final trixie is supposed to be fixed.  Your stuff is 
probably too old to be effected.


Take care & stay well Todd.


Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-Original Message-
From: gene heskett 
Sent: Wednesday, May 08, 2024 12:23 PM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Mb2hal 2.9?

[EXTERNAL EMAIL] Be sure links are safe.

On 5/8/24 08:13, Todd Zuercher via Emc-users wrote:

No, they are not.  The old pc was running Ubuntu 10.04.  (Because that was the 
last Linuxcnc distro that seemed work with this old pc and it's ISA IO card.) 
The new PC is running Debian 12 (installed using an ordinary Debian net install 
iso).

The groups the user belongs to  on the PC are "adm, dialout, cdrom, plugdev, lpadmin, admin, 
and sambashare".  The groups for the new PC are "cdrom, floppy, sudo, audio, dip, video, 
plugdev, users, netdev, lpadmin, and scanner"

So, I'm not sure, to my unskilled eye, it would seem that "dialout" might be the most 
logical possible permission deficiency, but I'm not sure if "dip" might be an equivalent 
replacement for that.


Your debian 12 install has the udev bug I sent you a link to the fix already.  
It restores the missing two lines that setup the serial/by-id stuff for usb.


Todd Zuercher
P. Graham Dunn
Inc.<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F
http://www.pgrahamdunn.com/%2Findex.php=05%7C02%7Ctoddz%40pgrahamdunn.com
%7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47cebee96c3e0806fb43
%7C0%7C0%7C638507822770580921%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C=
C4dBybKwKVpfOPShClzy%2BeP0urLVchdbYjNJ726xmHM%3D=0>
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

From: andy pugh 
Sent: Wednesday, May 08, 2024 4:18 AM
To: Enhanced Machine Controller (EMC)

Cc: Todd Zuercher 
Subject: Re: [Emc-users] Mb2hal 2.9?


[EXTERNAL EMAIL] Be sure links are safe.


On Wed, 8 May 2024 at 02:15, Todd Zuercher via Emc-users 
mailto:emc-users@lists.sourceforge.net>> wrote:
It was already set to 3.

What is your MB2HAL load line?
What does lsusb call  the dongle?

Are the two PCs in question running the same version of Linux?

--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed for the 
especial use of mechanical geniuses, daredevils and lunatics."
- George Fitch, Atlanta Constitution Newspaper, 1912

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://list/
s.sourceforge.net%2Flists%2Flistinfo%2Femc-users=05%7C02%7Ctoddz%
40pgrahamdunn.com%7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47c
ebee96c3e0806fb43%7C0%7C0%7C638507822770589530%7CUnknown%7CTWFpbGZsb3d
8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
0%7C%7C%7C=SgEuARxP0MmsgoB3BljySPtlJKAxijEVAv8qQbwQYYU%3D
ed=0


Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
   soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
   - Louis D. Brandeis



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
.


Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brande

Re: [Emc-users] Mb2hal 2.9?

2024-05-08 Thread Todd Zuercher via Emc-users
Like I said earlier, I added the user to the dialout group (using that usermod 
command below) and that fixed my issue.

My system does not show /dev/ttyUSB0 as locked  (I can't say for sure if that 
was the case before I added dialout to the user's groups.

"stat /dev/ttyUSB0"  does contain  Gid: ( 20/ dialout)

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-Original Message-
From: zz...@seznam.cz 
Sent: Wednesday, May 08, 2024 1:45 PM
To: Enhanced Machine Controller (EMC) 
Subject: Re: [Emc-users] Mb2hal 2.9?

[You don't often get email from zz...@seznam.cz. Learn why this is important at 
https://aka.ms/LearnAboutSenderIdentification ]

[EXTERNAL EMAIL] Be sure links are safe.

Bookworm has /dev/ttyUSB "locked"
File icon has red cross

stat /dev/ttyUSB0

Check if it contain:

Gid: ( 20/ dialout)

Then:

sudo usermod -a -G dialout $USER

"-- Původní zpráva --
Od: Todd Zuercher via Emc-users 
Datum: 08.05.2024 19:27:15
Předmět: Re: [Emc-users] Mb2hal 2.9?

Thanks Gene,

I'm not sure that, bug is completely relevant to my issue. As my Mb2hal config 
never used serial/by-id. It has always used /dev/ttyUSB0 to address the RS485 
device. Maybe serial by id might be a better way to address the specific serial 
port used, but I am not even sure if it is even be supported by Mb2hal or 
exactly how to set it up that way (none of the example Mb2hal configurations 
use it.) And even if it were possible, I'm not sure if I still would have had 
the permission problems and I would have also had to fix the udev bug first. 
Changing the permission is all I needed to do to get this working as it was 
before.

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone: (330)828-2105ext. 2031

-Original Message-
From: gene heskett
Sent: Wednesday, May 08, 2024 12:23 PM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Mb2hal 2.9?

[EXTERNAL EMAIL] Be sure links are safe.

On 5/8/24 08:13, Todd Zuercher via Emc-users wrote:
> No, they are not. The old pc was running Ubuntu 10.04. (Because that
> was
the last Linuxcnc distro that seemed work with this old pc and it's ISA IO
card.) The new PC is running Debian 12 (installed using an ordinary Debian net 
install iso).
>
> The groups the user belongs to on the PC are "adm, dialout, cdrom,
plugdev, lpadmin, admin, and sambashare". The groups for the new PC are "cdrom, 
floppy, sudo, audio, dip, video, plugdev, users, netdev, lpadmin, and scanner"
>
> So, I'm not sure, to my unskilled eye, it would seem that "dialout"
> might
be the most logical possible permission deficiency, but I'm not sure if "dip" 
might be an equivalent replacement for that.
>
Your debian 12 install has the udev bug I sent you a link to the fix already. 
It restores the missing two lines that setup the serial/by-id stuff for usb.

> Todd Zuercher
> P. Graham Dunn
> Inc.>
> http://www.p/
> grahamdunn.com%2F%252Findex.php%26data%3D05%257C02%257Ctoddz%2540
> =05%7C02%7Ctoddz%40pgrahamdunn.com%7C59f83c23425d48a02e7308dc6f8b585a%
> 7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638507891505884667%7CUnkn
> own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwi
> LCJXVCI6Mn0%3D%7C0%7C%7C%7C=AiUEBo31wTc8tCmh01ycujCEAsHQS1vaCpN0
> RI5YgCM%3D=0
pgrahamdunn.com
> %7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47cebee96c3e0806fb43
> %7C0%7C0%7C638507822770580921%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C=
> C4dBybKwKVpfOPShClzy%2BeP0urLVchdbYjNJ726xmHM%3D=0>
> 630 Henry Street
> Dalton, Ohio 44618
> Phone: (330)828-2105ext. 2031
>
> From: andy pugh
> Sent: Wednesday, May 08, 2024 4:18 AM
> To: Enhanced Machine Controller (EMC)
>
> Cc: Todd Zuercher
> Subject: Re: [Emc-users] Mb2hal 2.9?
>
>
> [EXTERNAL EMAIL] Be sure links are safe.
>
>
> On Wed, 8 May 2024 at 02:15, Todd Zuercher via Emc-users > wrote:
> It was already set to 3.
>
> What is your MB2HAL load line?
> What does lsusb call the dongle?
>
> Are the two PCs in question running the same version of Linux?
>
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed
for the especial use of mechanical geniuses, daredevils and lunatics."
> - George Fitch, Atlanta Constitution Newspaper, 1912
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://list/
> s.sourceforge.net%2Flists%2Flistinfo%2Femc-users=05%7C02%7Ctoddz%
> 40pgrahamdunn.com%7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47c
> ebee96c3e0806fb43%7C0%7C0%7C638507822770589530%7CUnknown%7CTWFpbGZsb3d
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX

Re: [Emc-users] Mb2hal 2.9?

2024-05-08 Thread zz912
Bookworm has /dev/ttyUSB "locked"
File icon has red cross

stat /dev/ttyUSB0

Check if it contain:

Gid: ( 20/ dialout)

Then:

sudo usermod -a -G dialout $USER

"-- Původní zpráva --
Od: Todd Zuercher via Emc-users 
Datum: 08.05.2024 19:27:15
Předmět: Re: [Emc-users] Mb2hal 2.9?

Thanks Gene, 

I'm not sure that, bug is completely relevant to my issue. As my Mb2hal 
config never used serial/by-id. It has always used /dev/ttyUSB0 to address 
the RS485 device. Maybe serial by id might be a better way to address the 
specific serial port used, but I am not even sure if it is even be supported
by Mb2hal or exactly how to set it up that way (none of the example Mb2hal 
configurations use it.) And even if it were possible, I'm not sure if I 
still would have had the permission problems and I would have also had to 
fix the udev bug first. Changing the permission is all I needed to do to get
this working as it was before. 

Todd Zuercher 
P. Graham Dunn Inc. 
630 Henry Street 
Dalton, Ohio 44618 
Phone: (330)828-2105ext. 2031 

-Original Message- 
From: gene heskett 
Sent: Wednesday, May 08, 2024 12:23 PM 
To: emc-users@lists.sourceforge.net 
Subject: Re: [Emc-users] Mb2hal 2.9? 

[EXTERNAL EMAIL] Be sure links are safe. 

On 5/8/24 08:13, Todd Zuercher via Emc-users wrote: 
> No, they are not. The old pc was running Ubuntu 10.04. (Because that was 
the last Linuxcnc distro that seemed work with this old pc and it's ISA IO 
card.) The new PC is running Debian 12 (installed using an ordinary Debian 
net install iso). 
> 
> The groups the user belongs to on the PC are "adm, dialout, cdrom, 
plugdev, lpadmin, admin, and sambashare". The groups for the new PC are 
"cdrom, floppy, sudo, audio, dip, video, plugdev, users, netdev, lpadmin, 
and scanner" 
> 
> So, I'm not sure, to my unskilled eye, it would seem that "dialout" might 
be the most logical possible permission deficiency, but I'm not sure if 
"dip" might be an equivalent replacement for that. 
> 
Your debian 12 install has the udev bug I sent you a link to the fix 
already. It restores the missing two lines that setup the serial/by-id stuff
for usb. 

> Todd Zuercher 
> P. Graham Dunn 
> Inc.> http://www.pgrahamdunn.com/%2Findex.php=05%7C02%7Ctoddz%40
pgrahamdunn.com 
> %7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47cebee96c3e0806fb43 
> %7C0%7C0%7C638507822770580921%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw 
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C= 
> C4dBybKwKVpfOPShClzy%2BeP0urLVchdbYjNJ726xmHM%3D=0> 
> 630 Henry Street 
> Dalton, Ohio 44618 
> Phone: (330)828-2105ext. 2031 
> 
> From: andy pugh 
> Sent: Wednesday, May 08, 2024 4:18 AM 
> To: Enhanced Machine Controller (EMC) 
> 
> Cc: Todd Zuercher 
> Subject: Re: [Emc-users] Mb2hal 2.9? 
> 
> 
> [EXTERNAL EMAIL] Be sure links are safe. 
> 
> 
> On Wed, 8 May 2024 at 02:15, Todd Zuercher via Emc-users > wrote: 
> It was already set to 3. 
> 
> What is your MB2HAL load line? 
> What does lsusb call the dongle? 
> 
> Are the two PCs in question running the same version of Linux? 
> 
> -- 
> atp 
> "A motorcycle is a bicycle with a pandemonium attachment and is designed 
for the especial use of mechanical geniuses, daredevils and lunatics." 
> - George Fitch, Atlanta Constitution Newspaper, 1912 
> 
> ___ 
> Emc-users mailing list 
> Emc-users@lists.sourceforge.net 
> https://list/ 
> s.sourceforge.net%2Flists%2Flistinfo%2Femc-users=05%7C02%7Ctoddz% 
> 40pgrahamdunn.com%7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47c 
> ebee96c3e0806fb43%7C0%7C0%7C638507822770589530%7CUnknown%7CTWFpbGZsb3d 
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C 
> 0%7C%7C%7C=SgEuARxP0MmsgoB3BljySPtlJKAxijEVAv8qQbwQYYU%3D 
> ed=0 

Cheers, Gene Heskett, CET. 
-- 
"There are four boxes to be used in defense of liberty: 
soap, ballot, jury, and ammo. Please use in that order." 
-Ed Howdershelt (Author, 1940) 
If we desire respect for the law, we must first make the law respectable. 
- Louis D. Brandeis 



___ 
Emc-users mailing list 
Emc-users@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/emc-users 


___ 
Emc-users mailing list 
Emc-users@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/emc-users 
"
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal 2.9?

2024-05-08 Thread Todd Zuercher via Emc-users
Gene,

Tell me more about this udev bug.

I'm not so sure this system even has it.  If I check the directory  
/dev/serial/by-id is there and has one device in it, and it looks like it is 
most likely my device.  If my system was affected bu this bug would the by-id 
directory not be there, or would it not have any devices in it, or would the 
device just not work?

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-Original Message-
From: gene heskett 
Sent: Wednesday, May 08, 2024 12:23 PM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Mb2hal 2.9?

[EXTERNAL EMAIL] Be sure links are safe.

On 5/8/24 08:13, Todd Zuercher via Emc-users wrote:
> No, they are not.  The old pc was running Ubuntu 10.04.  (Because that was 
> the last Linuxcnc distro that seemed work with this old pc and it's ISA IO 
> card.) The new PC is running Debian 12 (installed using an ordinary Debian 
> net install iso).
>
> The groups the user belongs to  on the PC are "adm, dialout, cdrom, plugdev, 
> lpadmin, admin, and sambashare".  The groups for the new PC are "cdrom, 
> floppy, sudo, audio, dip, video, plugdev, users, netdev, lpadmin, and scanner"
>
> So, I'm not sure, to my unskilled eye, it would seem that "dialout" might be 
> the most logical possible permission deficiency, but I'm not sure if "dip" 
> might be an equivalent replacement for that.
>
Your debian 12 install has the udev bug I sent you a link to the fix already.  
It restores the missing two lines that setup the serial/by-id stuff for usb.

> Todd Zuercher
> P. Graham Dunn
> Inc.<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F
> http://www.pgrahamdunn.com/%2Findex.php=05%7C02%7Ctoddz%40pgrahamdunn.com
> %7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47cebee96c3e0806fb43
> %7C0%7C0%7C638507822770580921%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C=
> C4dBybKwKVpfOPShClzy%2BeP0urLVchdbYjNJ726xmHM%3D=0>
> 630 Henry Street
> Dalton, Ohio 44618
> Phone:  (330)828-2105ext. 2031
>
> From: andy pugh 
> Sent: Wednesday, May 08, 2024 4:18 AM
> To: Enhanced Machine Controller (EMC)
> 
> Cc: Todd Zuercher 
> Subject: Re: [Emc-users] Mb2hal 2.9?
>
>
> [EXTERNAL EMAIL] Be sure links are safe.
>
>
> On Wed, 8 May 2024 at 02:15, Todd Zuercher via Emc-users 
> mailto:emc-users@lists.sourceforge.net>> 
> wrote:
> It was already set to 3.
>
> What is your MB2HAL load line?
> What does lsusb call  the dongle?
>
> Are the two PCs in question running the same version of Linux?
>
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is designed for 
> the especial use of mechanical geniuses, daredevils and lunatics."
> - George Fitch, Atlanta Constitution Newspaper, 1912
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://list/
> s.sourceforge.net%2Flists%2Flistinfo%2Femc-users=05%7C02%7Ctoddz%
> 40pgrahamdunn.com%7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47c
> ebee96c3e0806fb43%7C0%7C0%7C638507822770589530%7CUnknown%7CTWFpbGZsb3d
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
> 0%7C%7C%7C=SgEuARxP0MmsgoB3BljySPtlJKAxijEVAv8qQbwQYYU%3D
> ed=0

Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal 2.9?

2024-05-08 Thread Todd Zuercher via Emc-users
Thanks Gene,

I'm not sure that, bug is completely relevant to my issue.  As my Mb2hal config 
never used serial/by-id.  It has always used  /dev/ttyUSB0 to address the RS485 
device.  Maybe serial by id might be a better way to address the specific 
serial port used, but I am not even sure if it is even be supported by Mb2hal 
or exactly how to set it up that way (none of the example Mb2hal configurations 
use it.)  And even if it were possible, I'm not sure if I still would have had 
the permission problems and I would have also had to fix the udev bug first.  
Changing the permission is all I needed to do to get this working as it was 
before.

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-Original Message-
From: gene heskett 
Sent: Wednesday, May 08, 2024 12:23 PM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Mb2hal 2.9?

[EXTERNAL EMAIL] Be sure links are safe.

On 5/8/24 08:13, Todd Zuercher via Emc-users wrote:
> No, they are not.  The old pc was running Ubuntu 10.04.  (Because that was 
> the last Linuxcnc distro that seemed work with this old pc and it's ISA IO 
> card.) The new PC is running Debian 12 (installed using an ordinary Debian 
> net install iso).
>
> The groups the user belongs to  on the PC are "adm, dialout, cdrom, plugdev, 
> lpadmin, admin, and sambashare".  The groups for the new PC are "cdrom, 
> floppy, sudo, audio, dip, video, plugdev, users, netdev, lpadmin, and scanner"
>
> So, I'm not sure, to my unskilled eye, it would seem that "dialout" might be 
> the most logical possible permission deficiency, but I'm not sure if "dip" 
> might be an equivalent replacement for that.
>
Your debian 12 install has the udev bug I sent you a link to the fix already.  
It restores the missing two lines that setup the serial/by-id stuff for usb.

> Todd Zuercher
> P. Graham Dunn
> Inc.<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F
> http://www.pgrahamdunn.com/%2Findex.php=05%7C02%7Ctoddz%40pgrahamdunn.com
> %7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47cebee96c3e0806fb43
> %7C0%7C0%7C638507822770580921%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C=
> C4dBybKwKVpfOPShClzy%2BeP0urLVchdbYjNJ726xmHM%3D=0>
> 630 Henry Street
> Dalton, Ohio 44618
> Phone:  (330)828-2105ext. 2031
>
> From: andy pugh 
> Sent: Wednesday, May 08, 2024 4:18 AM
> To: Enhanced Machine Controller (EMC)
> 
> Cc: Todd Zuercher 
> Subject: Re: [Emc-users] Mb2hal 2.9?
>
>
> [EXTERNAL EMAIL] Be sure links are safe.
>
>
> On Wed, 8 May 2024 at 02:15, Todd Zuercher via Emc-users 
> mailto:emc-users@lists.sourceforge.net>> 
> wrote:
> It was already set to 3.
>
> What is your MB2HAL load line?
> What does lsusb call  the dongle?
>
> Are the two PCs in question running the same version of Linux?
>
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is designed for 
> the especial use of mechanical geniuses, daredevils and lunatics."
> - George Fitch, Atlanta Constitution Newspaper, 1912
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://list/
> s.sourceforge.net%2Flists%2Flistinfo%2Femc-users=05%7C02%7Ctoddz%
> 40pgrahamdunn.com%7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47c
> ebee96c3e0806fb43%7C0%7C0%7C638507822770589530%7CUnknown%7CTWFpbGZsb3d
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
> 0%7C%7C%7C=SgEuARxP0MmsgoB3BljySPtlJKAxijEVAv8qQbwQYYU%3D
> ed=0

Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal 2.9?

2024-05-08 Thread gene heskett

On 5/8/24 08:13, Todd Zuercher via Emc-users wrote:

No, they are not.  The old pc was running Ubuntu 10.04.  (Because that was the 
last Linuxcnc distro that seemed work with this old pc and it’s ISA IO card.) 
The new PC is running Debian 12 (installed using an ordinary Debian net install 
iso).

The groups the user belongs to  on the PC are “adm, dialout, cdrom, plugdev, 
lpadmin, admin, and sambashare”.  The groups for the new PC are “cdrom, floppy, 
sudo, audio, dip, video, plugdev, users, netdev, lpadmin, and scanner”

So, I’m not sure, to my unskilled eye, it would seem that “dialout” might be 
the most logical possible permission deficiency, but I’m not sure if “dip” 
might be an equivalent replacement for that.

Your debian 12 install has the udev bug I sent you a link to the fix 
already.  It restores the missing two lines that setup the serial/by-id 
stuff for usb.



Todd Zuercher
P. Graham Dunn Inc.<http://www.pgrahamdunn.com/index.php>
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

From: andy pugh 
Sent: Wednesday, May 08, 2024 4:18 AM
To: Enhanced Machine Controller (EMC) 
Cc: Todd Zuercher 
Subject: Re: [Emc-users] Mb2hal 2.9?


[EXTERNAL EMAIL] Be sure links are safe.


On Wed, 8 May 2024 at 02:15, Todd Zuercher via Emc-users 
mailto:emc-users@lists.sourceforge.net>> wrote:
It was already set to 3.

What is your MB2HAL load line?
What does lsusb call  the dongle?

Are the two PCs in question running the same version of Linux?

--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed for the 
especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal 2.9?

2024-05-08 Thread Todd Zuercher via Emc-users
Yes, it was a permission issue.  After I added the user to the "dialout" group 
it worked fine.  Thanks Peter for putting me on the right track.

That might be something that should be added to the Mb2hal documentation.  (If 
there isn't something about it already there.)

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-Original Message-
From: Todd Zuercher via Emc-users 
Sent: Wednesday, May 08, 2024 8:13 AM
To: andy pugh ; Enhanced Machine Controller (EMC) 

Cc: Todd Zuercher 
Subject: Re: [Emc-users] Mb2hal 2.9?

[EXTERNAL EMAIL] Be sure links are safe.

No, they are not.  The old pc was running Ubuntu 10.04.  (Because that was the 
last Linuxcnc distro that seemed work with this old pc and it's ISA IO card.) 
The new PC is running Debian 12 (installed using an ordinary Debian net install 
iso).

The groups the user belongs to  on the old PC are "adm, dialout, cdrom, 
plugdev, lpadmin, admin, and sambashare".  The groups for the new PC are 
"cdrom, floppy, sudo, audio, dip, video, plugdev, users, netdev, lpadmin, and 
scanner"

So, I'm not sure, to my unskilled eye, it would seem that "dialout" might be 
the most logical possible permission deficiency, but I'm not sure if "dip" 
might be an equivalent replacement for that.

Todd Zuercher
P. Graham Dunn Inc.<http://www.pgrahamdunn.com/index.php>
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

From: andy pugh 
Sent: Wednesday, May 08, 2024 4:18 AM
To: Enhanced Machine Controller (EMC) 
Cc: Todd Zuercher 
Subject: Re: [Emc-users] Mb2hal 2.9?


[EXTERNAL EMAIL] Be sure links are safe.


On Wed, 8 May 2024 at 02:15, Todd Zuercher via Emc-users 
mailto:emc-users@lists.sourceforge.net>> wrote:
It was already set to 3.

What is your MB2HAL load line?
What does lsusb call  the dongle?

Are the two PCs in question running the same version of Linux?

--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed for 
the especial use of mechanical geniuses, daredevils and lunatics."
- George Fitch, Atlanta Constitution Newspaper, 1912

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal 2.9?

2024-05-08 Thread Todd Zuercher via Emc-users
No, they are not.  The old pc was running Ubuntu 10.04.  (Because that was the 
last Linuxcnc distro that seemed work with this old pc and it’s ISA IO card.) 
The new PC is running Debian 12 (installed using an ordinary Debian net install 
iso).

The groups the user belongs to  on the PC are “adm, dialout, cdrom, plugdev, 
lpadmin, admin, and sambashare”.  The groups for the new PC are “cdrom, floppy, 
sudo, audio, dip, video, plugdev, users, netdev, lpadmin, and scanner”

So, I’m not sure, to my unskilled eye, it would seem that “dialout” might be 
the most logical possible permission deficiency, but I’m not sure if “dip” 
might be an equivalent replacement for that.

Todd Zuercher
P. Graham Dunn Inc.<http://www.pgrahamdunn.com/index.php>
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

From: andy pugh 
Sent: Wednesday, May 08, 2024 4:18 AM
To: Enhanced Machine Controller (EMC) 
Cc: Todd Zuercher 
Subject: Re: [Emc-users] Mb2hal 2.9?


[EXTERNAL EMAIL] Be sure links are safe.


On Wed, 8 May 2024 at 02:15, Todd Zuercher via Emc-users 
mailto:emc-users@lists.sourceforge.net>> wrote:
It was already set to 3.

What is your MB2HAL load line?
What does lsusb call  the dongle?

Are the two PCs in question running the same version of Linux?

--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed for 
the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal 2.9?

2024-05-08 Thread andy pugh
On Wed, 8 May 2024 at 02:15, Todd Zuercher via Emc-users <
emc-users@lists.sourceforge.net> wrote:

> It was already set to 3.


What is your MB2HAL load line?
What does lsusb call  the dongle?

Are the two PCs in question running the same version of Linux?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed
for the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal 2.9?

2024-05-07 Thread Todd Zuercher via Emc-users
It was already set to 3.

On May 7, 2024 7:37 PM, John Dammeyer  wrote:
[EXTERNAL EMAIL] Be sure links are safe.

Todd,
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FLinuxCNC%2Flinuxcnc%2Fblob%2Fmaster%2Fsrc%2Fhal%2Fuser_comps%2Fmb2hal%2Fm=05%7C02%7Ctoddz%40pgrahamdunn.com%7C70ae95d405504cef1b5d08dc6eee9e4d%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638507218366550444%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C=7UxWW9Wd0gVGG%2BBuIZdcbVxL8nWIQbQcXnDPRfxz8Bg%3D=0<https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/user_comps/mb2hal/m>
b2hal_HOWTO.ini
This link says you can set a debug level.

#OPTIONAL: Debug level of init and INI file parsing.
# 0 = silent.
# 1 = error messages (default).
# 2 = OK confirmation messages.
# 3 = debugging messages.
# 4 = maximum debugging messages (only in transactions).
INIT_DEBUG=3

Maybe set yours to 3 to get more information?
John

> -Original Message-
> From: Todd Zuercher via Emc-users [mailto:emc-
> us...@lists.sourceforge.net]
> Sent: May 7, 2024 1:29 PM
> To: Peter Wallace; Todd Zuercher via Emc-users
> Cc: Todd Zuercher
> Subject: Re: [Emc-users] Mb2hal 2.9?
>
> Peter,
>
> Not sure,  considering how many years ago its been since I set this up I
may
> have forrgotton about changing user permisions or adding a group.  I'll
have
> to look into that tomorrow.
>
> Todd Zuercher
> P. Graham Dunn Inc.
> 630 Henry Street
> Dalton, Ohio 44618
> Phone:  (330)828-2105ext. 2031
>
> -Original Message-
> From: Peter Wallace 
> Sent: Tuesday, May 07, 2024 4:16 PM
> To: Todd Zuercher via Emc-users 
> Cc: Todd Zuercher 
> Subject: Re: [Emc-users] Mb2hal 2.9?
>
> [EXTERNAL EMAIL] Be sure links are safe.
>
> On Tue, 7 May 2024, Todd Zuercher via Emc-users wrote:
>
> > Date: Tue, 7 May 2024 19:59:55 +
> > From: Todd Zuercher via Emc-users 
> > To: "Enhanced Machine Controller (EMC)"
> > 
> > Cc: Todd Zuercher 
> > Subject: [Emc-users] Mb2hal 2.9?
> >
> > The machine that I've been working on updating from 2.7 to 2.9 has hit a
> snag.  The one thing I didn't change now seems to be giving me the most
> trouble.
> >
> > The machine has 8 vfds for running 8 router spindles, they are/were
> connected to Linuxcnc using Mb2hal and a usb RS485 dongle.  It was working
> find on the old pc running Ubuntu, RTAi, and Linuxcnc 2.7.  I copied the
old
> mb2hal.ini and it's associated hal file over to the new machine and added
> them to the config, but I can not seem to establish communication between
> Linuxcnc and the drives.  Starting Linuxcnc from the terminal, and it
pukes out
> this string of error messages, so fast that I can't find any other
possibly more
> informative error messages further up the log, (beacaue I can't scroll
past all
> this other junk.)  My mb2hal config has 32 transactions, and there is an
error
> msg like below for each of the 32, then the list repeats ad nauseum.   Any
> one have any ideas what's going on?  The PC is running Debian 12, with
> Linuxcnc installed from the Debian repos.
> >
> > mb2hal get_tx_connection ERR: mb_tx_num[0] mb_links[0] cannot
> connect
> > to link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[1]
> > mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal
> > get_tx_connection ERR: mb_tx_num[2] mb_links[0] cannot connect to
> > link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[3]
> > mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal
> > get_tx_connection ERR: mb_tx_num[4] mb_links[0] cannot connect to
> > link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[5]
> > mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal
> > get_tx_connection ERR: mb_tx_num[6] mb_links[0] cannot connect to
> > link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[7]
> > mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal
> > get_tx_connection ERR: mb_tx_num[8] mb_links[0] cannot connect to
> > link, ret[-1] fd[-1]
> >
> > Moving the RS485 dongle back to the old pc and loading the mb2hal config
> there gives no errors.  So it shouldn't be a hardware or config issue that
I'm
> aware of.  Did something significant change in mb2hal between 2.7 and 2.9
> that would require a change to the mb2hal configuration files?
> >
> > Todd Zuercher
> > P. Graham Dunn
> >
> Inc.<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F
> >
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.pgrahamdunn.com%2F=05%7C02%7Ctoddz%40pgrahamdunn.com%7C70ae95d405504cef1b5d08dc6eee9e4d%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638507

Re: [Emc-users] Mb2hal 2.9?

2024-05-07 Thread gene heskett

On 5/7/24 16:02, Todd Zuercher via Emc-users wrote:

The machine that I've been working on updating from 2.7 to 2.9 has hit a snag.  
The one thing I didn't change now seems to be giving me the most trouble.

The machine has 8 vfds for running 8 router spindles, they are/were connected 
to Linuxcnc using Mb2hal and a usb RS485 dongle.  It was working find on the 
old pc running Ubuntu, RTAi, and Linuxcnc 2.7.  I copied the old mb2hal.ini and 
it's associated hal file over to the new machine and added them to the config, 
but I can not seem to establish communication between Linuxcnc and the drives.  
Starting Linuxcnc from the terminal, and it pukes out this string of error 
messages, so fast that I can't find any other possibly more informative error 
messages further up the log, (beacaue I can't scroll past all this other junk.) 
 My mb2hal config has 32 transactions, and there is an error msg like below for 
each of the 32, then the list repeats ad nauseum.   Any one have any ideas 
what's going on?  The PC is running Debian 12, with Linuxcnc installed from the 
Debian repos.

mb2hal get_tx_connection ERR: mb_tx_num[0] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[1] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[2] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[3] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[4] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[5] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[6] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[7] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[8] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]

Moving the RS485 dongle back to the old pc and loading the mb2hal config there 
gives no errors.  So it shouldn't be a hardware or config issue that I'm aware 
of.  Did something significant change in mb2hal between 2.7 and 2.9 that would 
require a change to the mb2hal configuration files?

Debian screwed the moose at debian 11, and it's not fixed until trixie.

Some how a copy paste left out the 2 udev lines that generate the 
/dev/serial/by-id to usb links.  There a pinned patch for that on the 
discord/klipper forum that restores that.


Contains a link to the fix.

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
.


Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal 2.9?

2024-05-07 Thread John Dammeyer
Todd,
https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/user_comps/mb2hal/m
b2hal_HOWTO.ini
This link says you can set a debug level.

#OPTIONAL: Debug level of init and INI file parsing.
# 0 = silent.
# 1 = error messages (default).
# 2 = OK confirmation messages.
# 3 = debugging messages.
# 4 = maximum debugging messages (only in transactions).
INIT_DEBUG=3

Maybe set yours to 3 to get more information?
John

> -Original Message-
> From: Todd Zuercher via Emc-users [mailto:emc-
> us...@lists.sourceforge.net]
> Sent: May 7, 2024 1:29 PM
> To: Peter Wallace; Todd Zuercher via Emc-users
> Cc: Todd Zuercher
> Subject: Re: [Emc-users] Mb2hal 2.9?
> 
> Peter,
> 
> Not sure,  considering how many years ago its been since I set this up I
may
> have forrgotton about changing user permisions or adding a group.  I'll
have
> to look into that tomorrow.
> 
> Todd Zuercher
> P. Graham Dunn Inc.
> 630 Henry Street
> Dalton, Ohio 44618
> Phone:  (330)828-2105ext. 2031
> 
> -Original Message-
> From: Peter Wallace 
> Sent: Tuesday, May 07, 2024 4:16 PM
> To: Todd Zuercher via Emc-users 
> Cc: Todd Zuercher 
> Subject: Re: [Emc-users] Mb2hal 2.9?
> 
> [EXTERNAL EMAIL] Be sure links are safe.
> 
> On Tue, 7 May 2024, Todd Zuercher via Emc-users wrote:
> 
> > Date: Tue, 7 May 2024 19:59:55 +
> > From: Todd Zuercher via Emc-users 
> > To: "Enhanced Machine Controller (EMC)"
> > 
> > Cc: Todd Zuercher 
> > Subject: [Emc-users] Mb2hal 2.9?
> >
> > The machine that I've been working on updating from 2.7 to 2.9 has hit a
> snag.  The one thing I didn't change now seems to be giving me the most
> trouble.
> >
> > The machine has 8 vfds for running 8 router spindles, they are/were
> connected to Linuxcnc using Mb2hal and a usb RS485 dongle.  It was working
> find on the old pc running Ubuntu, RTAi, and Linuxcnc 2.7.  I copied the
old
> mb2hal.ini and it's associated hal file over to the new machine and added
> them to the config, but I can not seem to establish communication between
> Linuxcnc and the drives.  Starting Linuxcnc from the terminal, and it
pukes out
> this string of error messages, so fast that I can't find any other
possibly more
> informative error messages further up the log, (beacaue I can't scroll
past all
> this other junk.)  My mb2hal config has 32 transactions, and there is an
error
> msg like below for each of the 32, then the list repeats ad nauseum.   Any
> one have any ideas what's going on?  The PC is running Debian 12, with
> Linuxcnc installed from the Debian repos.
> >
> > mb2hal get_tx_connection ERR: mb_tx_num[0] mb_links[0] cannot
> connect
> > to link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[1]
> > mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal
> > get_tx_connection ERR: mb_tx_num[2] mb_links[0] cannot connect to
> > link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[3]
> > mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal
> > get_tx_connection ERR: mb_tx_num[4] mb_links[0] cannot connect to
> > link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[5]
> > mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal
> > get_tx_connection ERR: mb_tx_num[6] mb_links[0] cannot connect to
> > link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[7]
> > mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal
> > get_tx_connection ERR: mb_tx_num[8] mb_links[0] cannot connect to
> > link, ret[-1] fd[-1]
> >
> > Moving the RS485 dongle back to the old pc and loading the mb2hal config
> there gives no errors.  So it shouldn't be a hardware or config issue that
I'm
> aware of.  Did something significant change in mb2hal between 2.7 and 2.9
> that would require a change to the mb2hal configuration files?
> >
> > Todd Zuercher
> > P. Graham Dunn
> >
> Inc.<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F
> >
> www.pgrahamdunn.com%2Findex.php=05%7C02%7Ctoddz%40pgraha
> mdunn.com
> >
> %7Cab367b57db9e4abbdc5108dc6ed282a3%7C5758544c573f47cebee96c3e08
> 06fb43
> >
> %7C0%7C0%7C638507097628024227%7CUnknown%7CTWFpbGZsb3d8eyJWIj
> oiMC4wLjAw
> >
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C
> =
> > rIq1Puq3K28VXm9oJqLE09fKDnjDgo1XGfCzicJGRTQ%3D=0>
> > 630 Henry Street
> > Dalton, Ohio 44618
> > Phone:  (330)828-2105ext. 2031
> >
> 
> Could this be some permissions or device name error with USB--> RS-485
> device driver?
> 
> 
> Peter Wallace
> Mesa Electronics
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal 2.9?

2024-05-07 Thread Todd Zuercher via Emc-users
Peter,

Not sure,  considering how many years ago its been since I set this up I may 
have forrgotton about changing user permisions or adding a group.  I'll have to 
look into that tomorrow.

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street 
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-Original Message-
From: Peter Wallace  
Sent: Tuesday, May 07, 2024 4:16 PM
To: Todd Zuercher via Emc-users 
Cc: Todd Zuercher 
Subject: Re: [Emc-users] Mb2hal 2.9?

[EXTERNAL EMAIL] Be sure links are safe.

On Tue, 7 May 2024, Todd Zuercher via Emc-users wrote:

> Date: Tue, 7 May 2024 19:59:55 +
> From: Todd Zuercher via Emc-users 
> To: "Enhanced Machine Controller (EMC)" 
> 
> Cc: Todd Zuercher 
> Subject: [Emc-users] Mb2hal 2.9?
>
> The machine that I've been working on updating from 2.7 to 2.9 has hit a 
> snag.  The one thing I didn't change now seems to be giving me the most 
> trouble.
>
> The machine has 8 vfds for running 8 router spindles, they are/were connected 
> to Linuxcnc using Mb2hal and a usb RS485 dongle.  It was working find on the 
> old pc running Ubuntu, RTAi, and Linuxcnc 2.7.  I copied the old mb2hal.ini 
> and it's associated hal file over to the new machine and added them to the 
> config, but I can not seem to establish communication between Linuxcnc and 
> the drives.  Starting Linuxcnc from the terminal, and it pukes out this 
> string of error messages, so fast that I can't find any other possibly more 
> informative error messages further up the log, (beacaue I can't scroll past 
> all this other junk.)  My mb2hal config has 32 transactions, and there is an 
> error msg like below for each of the 32, then the list repeats ad nauseum.   
> Any one have any ideas what's going on?  The PC is running Debian 12, with 
> Linuxcnc installed from the Debian repos.
>
> mb2hal get_tx_connection ERR: mb_tx_num[0] mb_links[0] cannot connect 
> to link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[1] 
> mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal 
> get_tx_connection ERR: mb_tx_num[2] mb_links[0] cannot connect to 
> link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[3] 
> mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal 
> get_tx_connection ERR: mb_tx_num[4] mb_links[0] cannot connect to 
> link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[5] 
> mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal 
> get_tx_connection ERR: mb_tx_num[6] mb_links[0] cannot connect to 
> link, ret[-1] fd[-1] mb2hal get_tx_connection ERR: mb_tx_num[7] 
> mb_links[0] cannot connect to link, ret[-1] fd[-1] mb2hal 
> get_tx_connection ERR: mb_tx_num[8] mb_links[0] cannot connect to 
> link, ret[-1] fd[-1]
>
> Moving the RS485 dongle back to the old pc and loading the mb2hal config 
> there gives no errors.  So it shouldn't be a hardware or config issue that 
> I'm aware of.  Did something significant change in mb2hal between 2.7 and 2.9 
> that would require a change to the mb2hal configuration files?
>
> Todd Zuercher
> P. Graham Dunn 
> Inc.<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F
> www.pgrahamdunn.com%2Findex.php=05%7C02%7Ctoddz%40pgrahamdunn.com
> %7Cab367b57db9e4abbdc5108dc6ed282a3%7C5758544c573f47cebee96c3e0806fb43
> %7C0%7C0%7C638507097628024227%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C=
> rIq1Puq3K28VXm9oJqLE09fKDnjDgo1XGfCzicJGRTQ%3D=0>
> 630 Henry Street
> Dalton, Ohio 44618
> Phone:  (330)828-2105ext. 2031
>

Could this be some permissions or device name error with USB--> RS-485 device 
driver?


Peter Wallace
Mesa Electronics


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal 2.9?

2024-05-07 Thread Peter Wallace

On Tue, 7 May 2024, Todd Zuercher via Emc-users wrote:


Date: Tue, 7 May 2024 19:59:55 +
From: Todd Zuercher via Emc-users 
To: "Enhanced Machine Controller (EMC)" 
Cc: Todd Zuercher 
Subject: [Emc-users] Mb2hal 2.9?

The machine that I've been working on updating from 2.7 to 2.9 has hit a snag.  
The one thing I didn't change now seems to be giving me the most trouble.

The machine has 8 vfds for running 8 router spindles, they are/were connected 
to Linuxcnc using Mb2hal and a usb RS485 dongle.  It was working find on the 
old pc running Ubuntu, RTAi, and Linuxcnc 2.7.  I copied the old mb2hal.ini and 
it's associated hal file over to the new machine and added them to the config, 
but I can not seem to establish communication between Linuxcnc and the drives.  
Starting Linuxcnc from the terminal, and it pukes out this string of error 
messages, so fast that I can't find any other possibly more informative error 
messages further up the log, (beacaue I can't scroll past all this other junk.) 
 My mb2hal config has 32 transactions, and there is an error msg like below for 
each of the 32, then the list repeats ad nauseum.   Any one have any ideas 
what's going on?  The PC is running Debian 12, with Linuxcnc installed from the 
Debian repos.

mb2hal get_tx_connection ERR: mb_tx_num[0] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[1] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[2] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[3] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[4] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[5] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[6] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[7] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[8] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]

Moving the RS485 dongle back to the old pc and loading the mb2hal config there 
gives no errors.  So it shouldn't be a hardware or config issue that I'm aware 
of.  Did something significant change in mb2hal between 2.7 and 2.9 that would 
require a change to the mb2hal configuration files?

Todd Zuercher
P. Graham Dunn Inc.<http://www.pgrahamdunn.com/index.php>
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031



Could this be some permissions or device name error with USB--> RS-485
device driver?


Peter Wallace
Mesa Electronics


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Mb2hal 2.9?

2024-05-07 Thread Todd Zuercher via Emc-users
The machine that I've been working on updating from 2.7 to 2.9 has hit a snag.  
The one thing I didn't change now seems to be giving me the most trouble.

The machine has 8 vfds for running 8 router spindles, they are/were connected 
to Linuxcnc using Mb2hal and a usb RS485 dongle.  It was working find on the 
old pc running Ubuntu, RTAi, and Linuxcnc 2.7.  I copied the old mb2hal.ini and 
it's associated hal file over to the new machine and added them to the config, 
but I can not seem to establish communication between Linuxcnc and the drives.  
Starting Linuxcnc from the terminal, and it pukes out this string of error 
messages, so fast that I can't find any other possibly more informative error 
messages further up the log, (beacaue I can't scroll past all this other junk.) 
 My mb2hal config has 32 transactions, and there is an error msg like below for 
each of the 32, then the list repeats ad nauseum.   Any one have any ideas 
what's going on?  The PC is running Debian 12, with Linuxcnc installed from the 
Debian repos.

mb2hal get_tx_connection ERR: mb_tx_num[0] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[1] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[2] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[3] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[4] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[5] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[6] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[7] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]
mb2hal get_tx_connection ERR: mb_tx_num[8] mb_links[0] cannot connect to link, 
ret[-1] fd[-1]

Moving the RS485 dongle back to the old pc and loading the mb2hal config there 
gives no errors.  So it shouldn't be a hardware or config issue that I'm aware 
of.  Did something significant change in mb2hal between 2.7 and 2.9 that would 
require a change to the mb2hal configuration files?

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal?

2021-09-29 Thread andrew beck
Not me.  But I have a one of those vfds so if you get it going let me know


On Wed, 29 Sep 2021, 09:13 Todd Zuercher,  wrote:

> Anyone out there ever try to use a Fuji Frenic VFD with Mb2hal?
>
> Todd Zuercher
> P. Graham Dunn Inc.
> 630 Henry Street
> Dalton, Ohio 44618
> Phone:  (330)828-2105ext. 2031
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Mb2hal?

2021-09-28 Thread Todd Zuercher
Anyone out there ever try to use a Fuji Frenic VFD with Mb2hal?

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] mb2hal and floating point conversions

2015-12-06 Thread TJoseph Powderly
Thx Jeff
I also use a Labjack with Hal.
This comp is much cleaner.
TomP tjtr33


--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] mb2hal and floating point conversions

2015-12-06 Thread Ralph Stirling
That worked perfectly, Jeff!  Thank you very much.

To summarize for future readers, process the comp
file Jeff wrote like this:

halcompile --install toieee.comp

Then add to the HAL file:

loadrt toieee
addf toieee.0 servo-thread

setp toieee.0.update 1
net low mb2hal.00.00.int toieee.0.in-high
net high mb2hal.00.01.int toieee.0.in-low
net ain-00 motion.analog-in-00 toieee.0.out

This will properly convert analog input registers read from
a LabJack UE9-Pro over Modbus TCP into a floating point
value readable by an M66 E0 L0.

Thanks again!
-- Ralph

From: Jeff Epler [jep...@unpythonic.net]
Sent: Friday, December 04, 2015 2:46 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] mb2hal and floating point conversions

No existing component will take a 32-bit floating point number encoded
as 2 16-bit "s32" values and output it as a HAL float.

I wrote and gave a very small amount of testing to a component that does.

component toieee
"""Interpret two 16-bit integers or one 32-bit integer as a 32-bit IEEE
floating-point value""";

pin in s32 in-low "Low 16 bits OR full 32-bit floating point value";
pin in s32 in-high "High 16 bits OR zero";
pin in bit update "TRUE to update output, FALSE to hold current value";

pin out float out "Result of conversion";

license "GPL";
function _
"""If update is TRUE, compute a new output value from the input values."""
;
;;
FUNCTION(_) {
if(!update) return;

union { uint32_t i; float f; } u;

u.i = ((uint32_t) in_low) | (((uint32_t) in_high) << 16);
out = u.f; // (automatically promoted from 32-bit float to 64-bit double)
}

For instance, treating the hex value 3EAB as a 32-bit IEEE float, it
obtains a value close to 1/3:
halcmd: setp toieee.0.update 1
halcmd: setp toieee.0.in-high 0x3eaa
halcmd: setp toieee.0.in-low 0xaaab
halcmd: getp toieee.0.out
0.333

However, if this is considered a "standard enough" modbus encoding then perhaps
this decoding should be added directly into mb2hal.

Jeff

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] mb2hal and floating point conversions

2015-12-06 Thread Jeff Epler
On Sun, Dec 06, 2015 at 08:21:30PM +, Ralph Stirling wrote:
> That worked perfectly, Jeff!  Thank you very much.

You're welcome.  I'm glad it worked!

Jeff

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] mb2hal and floating point conversions

2015-12-04 Thread Ralph Stirling
I am attempting to use a LabJack UE9 data acquisition
device with LinuxCNC using mb2hal.  I want to read
analog input channels, which the UE9 stores in modbus
registers starting at 0 as 32-bit floating point numbers
(two 16-bit registers per value).

When mb2hal reads the two registers (function 3), it
does not do any conversion.  I get exactly the same number
in the "float" pin as the "s32" pin.  The first register appears
to be the high word, and the second register appears to
be the low word.

I believe I need to concatenate these two 16-bit registers
to recover the 32-bit float, and then convert the 32-bit
float to a 64-bit float, which is what HAL uses.  Are there
any components already existing that would help with this,
or do I need to write a new component?

Thanks,
-- Ralph
--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] mb2hal and floating point conversions

2015-12-04 Thread Jeff Epler
No existing component will take a 32-bit floating point number encoded
as 2 16-bit "s32" values and output it as a HAL float.

I wrote and gave a very small amount of testing to a component that does.

component toieee
"""Interpret two 16-bit integers or one 32-bit integer as a 32-bit IEEE
floating-point value"""; 

pin in s32 in-low "Low 16 bits OR full 32-bit floating point value";
pin in s32 in-high "High 16 bits OR zero";
pin in bit update "TRUE to update output, FALSE to hold current value";

pin out float out "Result of conversion";

license "GPL";
function _
"""If update is TRUE, compute a new output value from the input values."""
;   
;;
FUNCTION(_) {
if(!update) return;

union { uint32_t i; float f; } u;

u.i = ((uint32_t) in_low) | (((uint32_t) in_high) << 16);
out = u.f; // (automatically promoted from 32-bit float to 64-bit double)
}

For instance, treating the hex value 3EAB as a 32-bit IEEE float, it
obtains a value close to 1/3:
halcmd: setp toieee.0.update 1
halcmd: setp toieee.0.in-high 0x3eaa
halcmd: setp toieee.0.in-low 0xaaab
halcmd: getp toieee.0.out
0.333

However, if this is considered a "standard enough" modbus encoding then perhaps
this decoding should be added directly into mb2hal.

Jeff

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] mb2hal and floating point conversions

2015-12-04 Thread Ralph Stirling
Thanks, Jeff.  I'll report back when I get back over to the lab and
test it next week.  I haven't used any other Modbus devices yet, so
don't know how common this 32-bit float is.

-- Ralph

From: Jeff Epler [jep...@unpythonic.net]
Sent: Friday, December 04, 2015 2:46 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] mb2hal and floating point conversions

No existing component will take a 32-bit floating point number encoded
as 2 16-bit "s32" values and output it as a HAL float.

I wrote and gave a very small amount of testing to a component that does.

component toieee
"""Interpret two 16-bit integers or one 32-bit integer as a 32-bit IEEE
floating-point value""";

pin in s32 in-low "Low 16 bits OR full 32-bit floating point value";
pin in s32 in-high "High 16 bits OR zero";
pin in bit update "TRUE to update output, FALSE to hold current value";

pin out float out "Result of conversion";

license "GPL";
function _
"""If update is TRUE, compute a new output value from the input values."""
;
;;
FUNCTION(_) {
if(!update) return;

union { uint32_t i; float f; } u;

u.i = ((uint32_t) in_low) | (((uint32_t) in_high) << 16);
out = u.f; // (automatically promoted from 32-bit float to 64-bit double)
}

For instance, treating the hex value 3EAB as a 32-bit IEEE float, it
obtains a value close to 1/3:
halcmd: setp toieee.0.update 1
halcmd: setp toieee.0.in-high 0x3eaa
halcmd: setp toieee.0.in-low 0xaaab
halcmd: getp toieee.0.out
0.333

However, if this is considered a "standard enough" modbus encoding then perhaps
this decoding should be added directly into mb2hal.

Jeff

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal?

2014-12-20 Thread alex chiosso
Hi Todd.
As someone else suggested in another thread you can give a try at a python
module called modbustk (modbus toolkit) .
I've tested it on TCP/IP and is a powerful,complete and documented python
module.
The serial line is supported as well.

Alex
Il giorno 20/dic/2014 03:26, Todd Zuercher zuerc...@embarqmail.com ha
scritto:

 Problem is I don't think I know enough about either C or Python to do it.

 - Original Message -
 From: Sebastian Kuzminsky s...@highlab.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Sent: Friday, December 19, 2014 1:57:18 PM
 Subject: Re: [Emc-users] Mb2hal?

 On 12/19/14 2:48 PM, Todd Zuercher wrote:
  Is it possible to make Mb2hal only make reads and writes of the
 nessisary registers, rather than all the registers used all the time?

 I don't know mb2hal at all, but looking at mb2hal_HOWTO.ini i see
 there's a MAX_UPDATE_RATE for each transaction.  Maybe you could reduce
 the update rate of the transactions you don't care as much about?

 If you need finer control over when reads and writes happen, you're
 probably better off writing a custom component (in C or python or the
 halcompile language) that does exactly what you need.


 --
 Sebastian Kuzminsky


 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal?

2014-12-20 Thread alex chiosso
Hi Todd.
Here https://code.google.com/p/modbus-tk/ is the link to modbus-tk python
module . ;-)

Alex

On Sat, Dec 20, 2014 at 9:26 AM, alex chiosso achio...@gmail.com wrote:

 Hi Todd.
 As someone else suggested in another thread you can give a try at a python
 module called modbustk (modbus toolkit) .
 I've tested it on TCP/IP and is a powerful,complete and documented python
 module.
 The serial line is supported as well.

 Alex
 Il giorno 20/dic/2014 03:26, Todd Zuercher zuerc...@embarqmail.com ha
 scritto:

 Problem is I don't think I know enough about either C or Python to do it.

 - Original Message -
 From: Sebastian Kuzminsky s...@highlab.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Sent: Friday, December 19, 2014 1:57:18 PM
 Subject: Re: [Emc-users] Mb2hal?

 On 12/19/14 2:48 PM, Todd Zuercher wrote:
  Is it possible to make Mb2hal only make reads and writes of the
 nessisary registers, rather than all the registers used all the time?

 I don't know mb2hal at all, but looking at mb2hal_HOWTO.ini i see
 there's a MAX_UPDATE_RATE for each transaction.  Maybe you could reduce
 the update rate of the transactions you don't care as much about?

 If you need finer control over when reads and writes happen, you're
 probably better off writing a custom component (in C or python or the
 halcompile language) that does exactly what you need.


 --
 Sebastian Kuzminsky


 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Mb2hal?

2014-12-19 Thread Todd Zuercher
Is it possible to make Mb2hal only make reads and writes of the nessisary 
registers, rather than all the registers used all the time? 

Just curious. I am using Mb2hal to control 8 VFDs on a gang router, and the 
slightly awkward way these drives must be addressed causes Mb2hal to have to 
make a lot of seemingly unnecessary reads and writes. 

Each drives registers must be addressed individually (can't send one write to 
all the drives). To oporate the drives, I have to write to 3 different non 
consecutive registers, and read a 3rd block of 6 registers, all of that times 8 
drives. I am pretty sure the 3 writes, do not need to be repeated, more than 
occasionally if at all. The read does need to be done regularly. 

The 3 reads are: 
writing 0 to register #48 - to unlock the drives mb control (only needs to be 
done once, or if serial link is lost) 
writing to register #1 - to start/stop the spindle (only needs writteen tp when 
changing state) 
writing to register #40 - to set the VFD frequency (only needs written to when 
changing the speed) 

The read is : 
reading registers #24-32 (this has to be read at least every 10 seconds to keep 
the drive unlocked (see the first write) also contains all drive status info. 
I don't think all of these would need to be read every time but, it is easier 
to do 1 large block than to pick and choose. 


-- 

 

Todd Zuercher 
mailto:zuerc...@embarqmail.com 

 
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal?

2014-12-19 Thread Sebastian Kuzminsky
On 12/19/14 2:48 PM, Todd Zuercher wrote:
 Is it possible to make Mb2hal only make reads and writes of the nessisary 
 registers, rather than all the registers used all the time?

I don't know mb2hal at all, but looking at mb2hal_HOWTO.ini i see 
there's a MAX_UPDATE_RATE for each transaction.  Maybe you could reduce 
the update rate of the transactions you don't care as much about?

If you need finer control over when reads and writes happen, you're 
probably better off writing a custom component (in C or python or the 
halcompile language) that does exactly what you need.


-- 
Sebastian Kuzminsky

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Mb2hal?

2014-12-19 Thread Todd Zuercher
Problem is I don't think I know enough about either C or Python to do it.

- Original Message -
From: Sebastian Kuzminsky s...@highlab.com
To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
Sent: Friday, December 19, 2014 1:57:18 PM
Subject: Re: [Emc-users] Mb2hal?

On 12/19/14 2:48 PM, Todd Zuercher wrote:
 Is it possible to make Mb2hal only make reads and writes of the nessisary 
 registers, rather than all the registers used all the time?

I don't know mb2hal at all, but looking at mb2hal_HOWTO.ini i see 
there's a MAX_UPDATE_RATE for each transaction.  Maybe you could reduce 
the update rate of the transactions you don't care as much about?

If you need finer control over when reads and writes happen, you're 
probably better off writing a custom component (in C or python or the 
halcompile language) that does exactly what you need.


-- 
Sebastian Kuzminsky

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] mb2hal?

2013-07-12 Thread Todd Zuercher
Is anyone successfully using mb2hal since the revision of master streamlining 
the modbus stuff? I have an install of master (I was using for testing) from 
before this where libmodbus3 had to be installed separately that is working but 
when I went to install the new on the pc I intended for the machine, I can't 
get it to work. Mb2hal is installed and appears to function, I just can't get 
it to actually communicate with the drives (using the same setup and hardware 
that works on the other pc). 

-- 

 

Todd Zuercher 
mailto:zuerc...@embarqmail.com 

 
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] mb2hal?

2013-07-12 Thread Sebastian Kuzminsky
On 7/12/13 05:32 , Todd Zuercher wrote:
 Is anyone successfully using mb2hal since the revision of master streamlining 
 the modbus stuff? I have an install of master (I was using for testing) from 
 before this where libmodbus3 had to be installed separately that is working 
 but when I went to install the new on the pc I intended for the machine, I 
 can't get it to work. Mb2hal is installed and appears to function, I just 
 can't get it to actually communicate with the drives (using the same setup 
 and hardware that works on the other pc).

Hi there, i'm the guy who changed the libmodbus usage in master recently.

I confess i have never run mb2hal, so it's possible i broke it somehow 
and didn't notice.  However, the changes i made did not touch a single 
line of the mb2hal source code, i only changed how mb2hal gets access to 
the libmodbus library, and possibly which version of the libmodbus 
library it uses.

Which platform were you running on when things were working?  Please 
report the distro and the installed libmodbus version.

Are you using the same modbus target (slave) in both the working and 
non-working situations?  Same cabling?


-- 
Sebastian Kuzminsky

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] mb2hal?

2013-07-12 Thread Todd Zuercher
Apparently, in my frustration, I posted to hastily.  When I was trying to get 
the new config to open a few days ago, I must have disabled my modbus to hal 
section, and forgotten about it.  Going back to it the next day with a fresher 
mind helped.  I removed the comment mark and now it worked (sort of).  I am 
still having a lot of communication errors, but that probably isn't related.

- Original Message -
From: Sebastian Kuzminsky s...@highlab.com
To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
Sent: Friday, July 12, 2013 11:31:15 AM
Subject: Re: [Emc-users] mb2hal?

On 7/12/13 05:32 , Todd Zuercher wrote:
 Is anyone successfully using mb2hal since the revision of master streamlining 
 the modbus stuff? I have an install of master (I was using for testing) from 
 before this where libmodbus3 had to be installed separately that is working 
 but when I went to install the new on the pc I intended for the machine, I 
 can't get it to work. Mb2hal is installed and appears to function, I just 
 can't get it to actually communicate with the drives (using the same setup 
 and hardware that works on the other pc).

Hi there, i'm the guy who changed the libmodbus usage in master recently.

I confess i have never run mb2hal, so it's possible i broke it somehow 
and didn't notice.  However, the changes i made did not touch a single 
line of the mb2hal source code, i only changed how mb2hal gets access to 
the libmodbus library, and possibly which version of the libmodbus 
library it uses.

Which platform were you running on when things were working?  Please 
report the distro and the installed libmodbus version.

Are you using the same modbus target (slave) in both the working and 
non-working situations?  Same cabling?


-- 
Sebastian Kuzminsky

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] mb2hal?

2013-07-12 Thread Sebastian Kuzminsky
On 7/12/13 11:25 , Todd Zuercher wrote:
 Apparently, in my frustration, I posted to hastily.  When I was trying to get 
 the new config to open a few days ago, I must have disabled my modbus to hal 
 section, and forgotten about it.  Going back to it the next day with a 
 fresher mind helped.  I removed the comment mark and now it worked (sort of). 
  I am still having a lot of communication errors, but that probably isn't 
 related.

Ok, glad to hear it's working (sort of)!  Thanks for reporting back.


-- 
Sebastian Kuzminsky

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users