ENGRAVING MACRO
- Shalotek
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 1
25 Oct 2018 18:45 #119398
by Shalotek
ENGRAVING MACRO was created by Shalotek
Is there a way to remap a code for engraving, I would like to make a macro if not exactly the same then as close as possible to a haas G47.
example G47 P0 X-3. Y0 I20. J0.5 R0.05 Z-0.005 E10. F15. (TEXT)
is there a way to can pass the (string) when calling a python,macro,sub so we can engrave the letters called out?
I am tryin to get this to work on pathpilot and linuxcnc.
example G47 P0 X-3. Y0 I20. J0.5 R0.05 Z-0.005 E10. F15. (TEXT)
is there a way to can pass the (string) when calling a python,macro,sub so we can engrave the letters called out?
I am tryin to get this to work on pathpilot and linuxcnc.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
26 Oct 2018 03:32 #119420
by cmorley
Replied by cmorley on topic ENGRAVING MACRO
I looked at the remap docs - which are incomplete and unfortunately the developer that did the work is not with the project anymore.
I can't definitively figure out if comments (TEXT) can be parsed.
G47 is available.
So I would say, yes it can be done though you may need to use a parameter for the text.
Chris M
I can't definitively figure out if comments (TEXT) can be parsed.
G47 is available.
So I would say, yes it can be done though you may need to use a parameter for the text.
Chris M
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
26 Oct 2018 03:53 #119422
by cmorley
Replied by cmorley on topic ENGRAVING MACRO
I see now if you use python, you can get the line comment.
linuxcnc.org/docs/2.7/html/remap/remap.h...he_argspec_parameter
So yes I think you can do it.
Do you have Gcode for the actual engraving?
Chris M
linuxcnc.org/docs/2.7/html/remap/remap.h...he_argspec_parameter
So yes I think you can do it.
Do you have Gcode for the actual engraving?
Chris M
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
26 Oct 2018 04:26 #119425
by cmorley
Replied by cmorley on topic ENGRAVING MACRO
There is a remap example in the sample configs that would be a proof of concept.
onfigs/sim/axis/remap/getting-started/demo
home it and the in MDI type:
G86.6 X0 Y0 Z0 P0 (TEXT)
It will display user messages to display the gcode line info.
Chris M
onfigs/sim/axis/remap/getting-started/demo
home it and the in MDI type:
G86.6 X0 Y0 Z0 P0 (TEXT)
It will display user messages to display the gcode line info.
Chris M
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- Shalotek
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 1
26 Oct 2018 05:28 #119429
by Shalotek
Replied by Shalotek on topic ENGRAVING MACRO
Thanks for the input guy's i will study it some more. I have a working sequential serial numbers file, its a bit rough but it works.
instructions are in the file they are for path pilot, linuxcnc will be about the same.
instructions are in the file they are for path pilot, linuxcnc will be about the same.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
26 Oct 2018 11:55 #119438
by andypugh
Replied by andypugh on topic ENGRAVING MACRO
It looks like you might have a slightly more complex font than me:
forum.linuxcnc.org/20-g-code/27169-g-cod...ders?start=10#113935
(Using pretty much exactly the same idea)
forum.linuxcnc.org/20-g-code/27169-g-cod...ders?start=10#113935
(Using pretty much exactly the same idea)
Please Log in or Create an account to join the conversation.
- Shalotek
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 1
26 Oct 2018 21:58 #119489
by Shalotek
Replied by Shalotek on topic ENGRAVING MACRO
Yeah I just made my font in cad and programmed each number in G91.
Please Log in or Create an account to join the conversation.
- Shalotek
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 1
26 Oct 2018 21:59 #119490
by Shalotek
Replied by Shalotek on topic ENGRAVING MACRO
Here is another sloppy version that has rotation implemented, it uses G59.3 to handle the shift so be careful
The following user(s) said Thank You: andypugh
Please Log in or Create an account to join the conversation.
Time to create page: 0.065 seconds