If you wanted totally automated, you could use linuxcncrsh.
Ngcgui or pyngcgui sound like they might be useful for this
too.  Otherwise, overwriting the single file (or copying over)
doesn't sound like that bad of an idea.

-- Ralph

________________________________________
From: andy pugh [[email protected]]
Sent: Wednesday, February 23, 2022 2:33 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] F-Engrave and LinuxCNC scripting

CAUTION: This email originated from outside the Walla Walla University email 
system.


On Wed, 23 Feb 2022 at 17:58, [email protected] <[email protected]> wrote:
>
> in the past I programmed single letters as gcode.

Yes, I have done the same thing for numbers to engrave scale rings.

This time I am using F-engrave and a cxf font that I created
specifically for the job at hand.

(CXF is easy, just a set of lines and arcs:
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FLinuxCNC%2Fsimple-gcode-generators%2Fblob%2Fmaster%2Fengrave%2Fcxf-fonts%2Fnormal.cxf&amp;data=04%7C01%7Cralph.stirling%40wallawalla.edu%7Cf83c84f6aef04a4ec2ff08d9f71c97e8%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C1%7C637812524470660244%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=YRyLEKxM0r7xljmcRnN7o0rwSpGnG81wg9ISlUnQZZc%3D&amp;reserved=0
)

(note how this is part of the LinuxCNC code base already....)

My questions are around how best to throw G-code at LinuxCNC and have
it do the job. I think I want my Python script to be in charge, ]

The simple option is to just keep overwriting a single file, then
reload that file and run it from the LinuxCNC GUI. But in some ways I
would prefer LinuxCNC to be entirely controlled by the Python script.
That is the part I am asking about. ie how to tell LinuxCNC to load a
file and then run it. part of this can be done in the _Axis_ interface
with axis_remote
(https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinuxcnc.org%2Fdocs%2F2.8%2Fhtml%2Fman%2Fman1%2Faxis-remote.1.html&amp;data=04%7C01%7Cralph.stirling%40wallawalla.edu%7Cf83c84f6aef04a4ec2ff08d9f71c97e8%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C1%7C637812524470660244%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=7%2BnWb3wRTjW8Si362CY9uJbsgnHLJTD9dYnImd2PaDs%3D&amp;reserved=0
 ) But
I am using Touchy. I was looking for a non gui-specific hook.


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
[email protected]
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&amp;data=04%7C01%7Cralph.stirling%40wallawalla.edu%7Cf83c84f6aef04a4ec2ff08d9f71c97e8%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C1%7C637812524470660244%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=S3z6c6nXCyup36apd8SB2LvLxvcI1pEpvfc2AWeQxw8%3D&amp;reserved=0


_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to