I am making a custom PCI for a bar feeder we have that needs some variables set at the beginning. I was able to make a dialog that asks for everything, and then outputs the NC code.
My problem comes in when I'm trying to output a line that has logic, but the PCI thinks it's trying to use a variable.
The line in question is:
IF[#525EQ2]GOTO999
The PCI thinks that [#525EQ2] is a variable, so it keeps outputting a 0 in place of the code.
Is there anyway to make that know it's a string and not a variable. I know in javascript you can add a \ in front of certain things to make sure they are output, but whenever I tried to save as a JS instead of PCI the file was blank.
Another question I have is how to force output to have ".0" at the end if it is a whole number. I have "Force '.' on integers" checked in the Format Table, but I guess that isn't translating to the Insert NC Code dialog.