hope attached finds you well
I normally work in millimeters on a Mach3 CNC mill. So my program looks like this:
Problem is, now I need to generate a program for a Syntec machine that works in thousandths of a millimeter. So I need my program to look like this:Code:G0 X123.456 (rapid move to X=123.456mm)
I can make CamBam output exactly 3 decimal places after the point by tweaking the post processor:Code:G0 X123456 (rapid move to 123456/1000 = 123.456mm)
But how do I get rid of the decimal point, short of doing "Search and replace" in a text editor?Code:<NumberFormat>0.000</NumberFormat>
Similar Threads:
hope attached finds you well
we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...
then how else you wanna fix it in a text editor ? aaaa, you mean to edit the post ... sorry, can't help with that
but i can create a small program, to fix your file / background work service
we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...
Thanks for the offer Kitten, but that would be overkill. I only had 3 programs to make for the Syntec, so I did it in the text editor.
Still would be nice to find a solution for the post processor though.
i no longer deal with posts edit ... regardless of cam, as long as its generates a file, i can take it from there
all this methods for post edit, different implementations, diff softwares ... is a mini madness, even if you know them all not to mention the duration of learn curves
so, there is a common part in all of them, if you can see it
we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...
I wrote a Powershell script that converts all numbers for X, Y, Z, A, I, J (but leaves alone F).
I wonder if there is a way to run the script automatically from the post processor? I think I might have seen something like that in the CamBam documentation...
Code:rem Processes all .nc files in the current directory. rem Replaces X123.456 with X123456 for my Syntec controller for %%a in (*.nc) do ( echo %%a powershell -Command "(gc %%a) -replace '([X|Y|Z|A|I|J]\-?\d{1,4})(\.)(\d\d\d)', '$1$3' | Out-File -encoding ASCII %%~na-Syntec%%~xa" )
so it simply scans all *.nc files, and replaces all X***.*** with X***** ? who runs it ? you have to execute it manually ?
we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...
Yes. The results are saved as new files ("-Syntec" is added to the original file name). The original files remain intact.
For now I run it manually after posting a program. There might be a way to automate it in CamBam, I don't know for sure yet.
who runs it ? you have to execute it manually ?
hy citizen ( of dreams ) i automate by creating a service, or having exe hidden startup run, then loop repeat
having them to fix post files, idea come when someone complained about having to fix the file each time after post
we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...