[Emc-users] Q for Peter?

2022-02-28 Thread gene heskett
Greetings Peter;

The 7i76 has, I recall reading, the ability to do analog to digital 
conversions on the first 4 of its inputs. But the full scale range is 36 
volts if I recall right.  I don't recall the bit range, though, whether 
its 8 bit, or 16.

Would it be possible to lower the full scale range to 0-5 volts with a 
firmware change?

I have acquired a couple pressure sensors rated at 0-10 psi with a 5 volt 
input, .5 to 4.5 volt outbut and want to use them to monitor, and control 
the speed by pwm means as the mister(s) only need 3 or 4 psi to do their 
job if the nozzle is close enough to the cutting face. Inch or so.

Thanks Peter, take care and stay well.

Cheers, Gene Heskett.
-- 
"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
Genes Web page 





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


Re: [Emc-users] Recommendations for touch pad to replace mouse

2022-02-28 Thread Chris Albertson
Apple Magic Trackpad 2 used as a USB-connected device.  It is by far the
best trackpad on the market.   You can unplug the USB cable to use it
wirelessly, but in Linux, the battery power is not managed and runs down
quickly.

The Apple trackpad is sturdy as it is made from solid aluminum and the
surface is glass, not plastic.  It costs more than the all-plastic
trackpads but works better.  Using textured glass as the surface was a very
good idea.  Apple got the balance between friction and smoothness perfect.

But do get the one with the USB cable.  The older model was wireless only
and Linux does not know how to power-manage it

The only other touchscreen I've used is my iPad.  I can share the Linux
screen to the iPad and then use touch interface in place of a mouse.   It
works.

You can buy a 14" touch screen monitor for about $300.   That would seem le
the ideal solution.   Smaller one are under $100.



On Mon, Feb 28, 2022 at 1:44 PM Ed  wrote:

> Title says most of it. For most commands I use the keyboard for the
> speed but changing the tooltable and a couple of other things I like to
> use a touchpad. Mouse works OK if you have the room and do not have
> chips landing there. The touchpads I have now are getting obsolete,
> round plug and even RS232. Anyone have a favorite? Wired or wireless is
> fine.
>
>
> Thanks, Ed.
>
>
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


-- 

Chris Albertson
Redondo Beach, California

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


Re: [Emc-users] Auxiliary axis DRO only

2022-02-28 Thread Andy Pugh


> On 26 Feb 2022, at 04:36, Thaddeus Waldner  wrote:
> 
> Anything else I can try?

How about a Python HAL component that logs encoder position (on a HAL pin) to 
file when a trigger pin goes high? 
As it would be a user space component you would need a “handshake” in the 
G-code. Ie a log / logged pair of signals. Possibly using a bidirectional pin 
in the same way as index-enable. 
M65(?) to trigger a measurement then wait-in-falling-edge before continuing 



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


[Emc-users] Recommendations for touch pad to replace mouse

2022-02-28 Thread Ed
Title says most of it. For most commands I use the keyboard for the 
speed but changing the tooltable and a couple of other things I like to 
use a touchpad. Mouse works OK if you have the room and do not have 
chips landing there. The touchpads I have now are getting obsolete, 
round plug and even RS232. Anyone have a favorite? Wired or wireless is 
fine.



Thanks, Ed.




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


Re: [Emc-users] Custom m codes

2022-02-28 Thread Todd Zuercher
Alternatively, you could just set up your M102 code to just setp your hal 
pin(s) and then use a subroutine o-sub call for the G-code part including the 
M-code.  Then instead of issuing a remapped g-code you just use 
"o call".

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

-Original Message-
From: andy pugh  
Sent: Monday, February 28, 2022 7:12 AM
To: Enhanced Machine Controller (EMC) 
Subject: Re: [Emc-users] Custom m codes

[EXTERNAL EMAIL] Be sure links are safe.

On Mon, 28 Feb 2022 at 10:51, andrew beck  wrote:
>

> I want to issue a m102
>
> And get this code run
>
> S5m3
> Halcmd setp hm2 7i77etc pin output on

This is slightly tricky, as you want to both issue a G-code command and a 
Halcmd command.

I think you need to do a G-code remap to create a new M-code that runs G-code, 
and then have that G-code include a custom M-code that calls the halcmd.

Or:

Create a Python remap that includes an MDI to run the G-code then a command to 
set the HAL pin.
(import linxcnc / import hal:
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinuxcnc.org%2Fdocs%2F2.8%2Fhtml%2Fconfig%2Fpython-interface.html%23_code_linuxcnc_command_code_attributesdata=04%7C01%7Ctoddz%40pgrahamdunn.com%7Ca17c2381dda144b5cfc808d9fab3c60c%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C637816472649963804%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000sdata=XxVYdWZVS2%2FDEr7hPiNzf%2B2takJzNEdC5wLe6ndheMI%3Dreserved=0
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinuxcnc.org%2Fdocs%2Fdevel%2Fhtml%2Fhal%2Fhalmodule.html%23_set_pdata=04%7C01%7Ctoddz%40pgrahamdunn.com%7Ca17c2381dda144b5cfc808d9fab3c60c%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C637816472649963804%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000sdata=GINhJoeDid%2BvP5sjZ70Wb9oBhf98sQV6x5Dvg2NM30s%3Dreserved=0

Or:

Use a G-code remap and the little-documented (py, ...) "magic comment"
I have never seen docs for this, but alongside the other documented "magic 
comments" there are:
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FLinuxCNC%2Flinuxcnc%2Fblob%2Fmaster%2Fsrc%2Femc%2Frs274ngc%2Finterp_convert.cc%23L1447data=04%7C01%7Ctoddz%40pgrahamdunn.com%7Ca17c2381dda144b5cfc808d9fab3c60c%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C637816472649963804%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000sdata=Yon3OqdIcfxdZNsqfF%2F%2BuhfM%2Bf5QcLFNpfc0atgUUMw%3Dreserved=0


--
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://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Ctoddz%40pgrahamdunn.com%7Ca17c2381dda144b5cfc808d9fab3c60c%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C637816472649963804%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000sdata=jzYEC%2FNw0My3j%2FAIykh0iOCvVRM1TRGxQj8oYPfeS1E%3Dreserved=0


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


Re: [Emc-users] Custom m codes

2022-02-28 Thread andy pugh
On Mon, 28 Feb 2022 at 10:51, andrew beck  wrote:
>

> I want to issue a m102
>
> And get this code run
>
> S5m3
> Halcmd setp hm2 7i77etc pin output on

This is slightly tricky, as you want to both issue a G-code command
and a Halcmd command.

I think you need to do a G-code remap to create a new M-code that runs
G-code, and then have that G-code include a custom M-code that calls
the halcmd.

Or:

Create a Python remap that includes an MDI to run the G-code then a
command to set the HAL pin.
(import linxcnc / import hal:
http://linuxcnc.org/docs/2.8/html/config/python-interface.html#_code_linuxcnc_command_code_attributes
http://linuxcnc.org/docs/devel/html/hal/halmodule.html#_set_p

Or:

Use a G-code remap and the little-documented (py, ...) "magic comment"
I have never seen docs for this, but alongside the other documented
"magic comments" there are:
https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/rs274ngc/interp_convert.cc#L1447


-- 
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] who has used thin client pcs

2022-02-28 Thread Les Newell

On 26/02/2022 19:54, Rafael Skodlar wrote:


Les, barns are for horses, cows, or pigs not PC computers ;-)

Rafael



Yes, that's all very well in theory but 4 CNC machines won't fit in my 
house.


Les




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


[Emc-users] Custom m codes

2022-02-28 Thread andrew beck
Hey guys

I want to issue a m102

And get this code run

S5m3
Halcmd setp hm2 7i77etc pin output on

Whats the best way to do it.

I can do it fine with m6 but it won't let me remap m100+ codes
I'm also happy to use digital output codes m66 65 etc

What do you guys think?

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