Re: [Emc-users] Serial Port access

2021-09-09 Thread John Dammeyer
> From: andy pugh [mailto:bodge...@gmail.com]
> 
> On Thu, 9 Sept 2021 at 05:31, John Dammeyer  wrote:
> 
> > I've been reading
> > http://linuxcnc.org/docs/2.4/html/hal_comp.html
> 
> For this application I think that a Pyhon userspace component using
> Pyserial is probably the easier approach.
> 
> http://linuxcnc.org/docs/2.8/html/hal/halmodule.html
> 
I did look at that document and saw the reference to pySerial at the bottom.  
First search last week didn’t really turn up anything.  This time from 2009 I 
found
https://forum.linuxcnc.org/10-advanced-configuration/538-controlling-coolant-w-serial-port

I'll put that into the Pi4 LinuxCNC and see if I can make it generate messages.

However I'm also still working on the .comp.  I've been editing and modifying 
"ArcEye arceyeATmgwareDOTcoDOTuk" serialcon2.comp

Thanks

Oh and my last posting on CANopen and LinuxCNC was back Sat, 27 Feb 2021 
10:12:25 -0800.  At that point I had done some things with the TI board and was 
working on a CANopen Lite version.  That project is on hold at the moment.  

I've since repurposed one of the projects I've done that has a dsPIC30F5011 and 
CAN bus with a CANopen Lite implementation.

The two buttons control pneumatic valves for Load/Release control of the 
drawbar.  The hall sensor counts socket revolutions so the R8 collet isn't 
dropped out with the TT Holder. Or press and hold the button and it turns 
continuously CW or CCW.  I can also send it a CAN message to do the same.

One of the DIP relays will run a different pneumatic solenoid for mist coolant 
so in the long run I'll want to connect that too. 

Baby steps.

John

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


Re: [Emc-users] Serial Port access

2021-09-09 Thread andy pugh
On Thu, 9 Sept 2021 at 05:31, John Dammeyer  wrote:

> I've been reading
> http://linuxcnc.org/docs/2.4/html/hal_comp.html

For this application I think that a Pyhon userspace component using
Pyserial is probably the easier approach.

http://linuxcnc.org/docs/2.8/html/hal/halmodule.html

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