Hi everyone
I have several programs which create DMO files which are then sent to the customer, we are passing these measurements onto the shop floor staff due to time constraints (always a nervous time). The DMO files are automatically generated and saved onto the system.
The problem I have is that the way DMO files work is that you have to print the "report" before the measurements are taken and so a report is saved onto the system before anything is measured. If this was a normal report I would just have a skip command in there before the print command if anything was out of tolerance, however that will not work in this case.
to try and give the operators as little as possible to do I am looking to have the file automatically deleted if there are any out of tolerance features.
I have already put in a comment which pops up if anything is out of tolerance but at the moment they have to manually delete the last generated file. So far I have it set up to open the saved file and then delete. The problem I cannot overcome is that the file name always changes after each run part. they are always saved as the program name, date and then 1,2,3.... so on at the end.
this is what I have so far.
any help would be great
I have several programs which create DMO files which are then sent to the customer, we are passing these measurements onto the shop floor staff due to time constraints (always a nervous time). The DMO files are automatically generated and saved onto the system.
The problem I have is that the way DMO files work is that you have to print the "report" before the measurements are taken and so a report is saved onto the system before anything is measured. If this was a normal report I would just have a skip command in there before the print command if anything was out of tolerance, however that will not work in this case.
to try and give the operators as little as possible to do I am looking to have the file automatically deleted if there are any out of tolerance features.
I have already put in a comment which pops up if anything is out of tolerance but at the moment they have to manually delete the last generated file. So far I have it set up to open the saved file and then delete. The problem I cannot overcome is that the file name always changes after each run part. they are always saved as the program name, date and then 1,2,3.... so on at the end.
this is what I have so far.
Code:
ASSIGN/OT1=SUM(ARRAY(GH004G1_R.T.OUTTOL <> 0, GH031F1_R.T.OUTTOL <> 0, GH032F1_R.T.OUTTOL <> 0, GH033G1_R.T.OUTTOL <> 0, GH034G1_R.T.OUTTOL <> 0, GH035G1_R.T.OUTTOL <> 0, GH036G1_R.T.OUTTOL <> 0)) ASSIGN/OT2=SUM(ARRAY(GH037F2_R.T.OUTTOL <> 0, GH037F1_R.T.OUTTOL <> 0, GH037G1_R.T.OUTTOL <> 0, GH038G1_R.T.OUTTOL <> 0)) IF/SUM(ARRAY(OT1, OT2)) <> 0 FILE/DELETE,S: RH ANODISED SILVER 21.09.2017 - 10.DMO COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO, Part is out of tolerance Re-fixture the part and re-measure ************ If this has already been done reject the part and set aside END_IF/