How can I send the PART_NAME and SERIAL_NUMBER to a file?
I am trying to come up with a comma delimited file for our SPC folks that includes certain feature specifics. However, I have been unable to get to the PART_NAME and all these other goodies specified in the program heading.
Here's my code so far (all works fine, except where I define variable V15):
Where it fails is at where I define variable V15. That call does NOT work. I want the serial number from the heading to be the first line in the file.
Anybody an idea??
Thanks, Jan.
I am trying to come up with a comma delimited file for our SPC folks that includes certain feature specifics. However, I have been unable to get to the PART_NAME and all these other goodies specified in the program heading.
Here's my code so far (all works fine, except where I define variable V15):
Code:
ASSIGN/V11 = LOC21.X.DEV ASSIGN/V12 = LOC21.Y.DEV ASSIGN/V13 = LOC21.D.DEV ASSIGN/V14 = LOC21.RN.DEV ASSIGN/V15 = SERIAL_NUMBER ASSIGN/V101 = TUTORELEMENT("CYL1-J-") FPTR =FILE/OPEN,writetest.txt,WRITE FILE/WRITELINE,FPTR,V15 FILE/WRITELINE,FPTR,V101.ID +","+V11+","+V12+","+V13+","+V14 FILE/CLOSE,FPTR,KEEP
Anybody an idea??

Thanks, Jan.
Comment