- Posts: 238
- Thank you received: 0
g-code replacement filter?
I am still learning all of this so please dont attack me out of the gate. Will this work?
#This is my filter section in .ini
# [FILTER]
# PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
# PROGRAM_EXTENSION = .py Python Script
# png = image-to-gcode
# gif = image-to-gcode
# jpg = image-to-gcode
# py = python
# gcode = gcode-convert
#A typical Fadal line
# N33G00G90G40M01E01
#will be changed to
# N33G00G90G40M01G54
#replace "E01" with "G54" on all lines
#This will change E01 to G54 on all lines.
#!/bin/bash
sed -e 's/\( E01\)\([0-1000000]*\)/ G54\2/' $1
Please Log in to join the conversation.
John
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Could this be made to run in the background while a machine is running a program? Ultimate goal would be for this to run while a program is being run.
Please Log in to join the conversation.
I think you will find that the filter runs so fast that there is no point. Effectively you feed Axis one program, and a filtered one gets run.tjamscad wrote: Could this be made to run in the background while a machine is running a program? Ultimate goal would be for this to run while a program is being run.
Please Log in to join the conversation.
andypugh wrote:
I think you will find that the filter runs so fast that there is no point. Effectively you feed Axis one program, and a filtered one gets run.tjamscad wrote: Could this be made to run in the background while a machine is running a program? Ultimate goal would be for this to run while a program is being run.
Andy,
Just so I am clear. I load a program into axis or what ever GUI. The program that will run will be the filtered one? Or do I need to run the filter outside and then load the filtered program?
Please Log in to join the conversation.
Technically the filter runs and sends it's output to AXIS or Gscreen.
Chris M
Please Log in to join the conversation.
Yes.tjamscad wrote: I load a program into axis or what ever GUI. The program that will run will be the filtered one?
As an example, try running the sim/axis configuration in the sample configs then open an image file (jpg, png) instead of a G-code file. You will see that you end up with G-code in the program window, not image data.
Please Log in to join the conversation.
Please Log in to join the conversation.
