Hi all,
I am currently an HSMWorks / Solidworks user and I'm trying to see if Camworks will fit my needs...
I am trying to modify the post to output some "special" characters in the final gcode file. For example, on my machine (Fanuc 18M) I need to bring the table to a certain position at the end of the cycle. This position is stored in macro variable #531.
My current HSMWorks code will output the following line:
G00 G53 X[#531] Y0.0
What I am struggling with in Camworks is how to insert the square brackets [ ] and number sign #.
Using the EC Editor, in my SRC file I have the following:
:SECTION=END_OF_TAPE
:T:<N><G:00><G:91><G:28> Z0<EOL>
:T:G00 G53 X[#531] Y0.0<EOL>
:T:<N><M:30><EOL>
However, when I post with this I only get the "G00 G53 X" and it seems to get confused with the square bracket. I assume these brackets are reserved for programming syntax. I have tried defining a new Attribute, but I don't think I am implementing it correctly.
I have added this into the MILL.lib file:
:ATTRNAME=LEFT SQ
:ATTRTYPE=POST
:ATTREMARK=
:CODETYPE=HARDCODE
:CODE=[
:ATTREND
:ATTRNAME=RIGHT SQ
:ATTRTYPE=POST
:ATTREMARK=
:CODETYPE=HARDCODE
:CODE=]
:ATTREND
And then try to use it like:
:SECTION=END_OF_TAPE
:T:<N><G:00><G:91><G:28> Z0<EOL>
:T:G00 G53 X<LEFT SQ>#531<RIGHT SQ> Y0.0<EOL>
:T:<N><M:30><EOL>
But my output puts out literally "<LEFT SQ>". How do I call up these attributes to use them in the post?
Any better ways to get around this? Are there any "escape characters" I can use to allow my just to type the exact text I want to see in the final posted file?
Cheers.