I have a program that loops 4 times and want to change the serial number to xxxx-1 xxxx-2 for part one to part 4
Loop serial number adding a -1,-2, -3 at the end of serial numbers
Collapse
X
-
Run an assignment within the loop when you have the File I/O and print commands that change based on the loop number.
Code:ASSIGN/DATA="C:\AAA\BBB\CCC\CMM_DATA_"+LOOP1+".csv"
Whatever a man sows, he shall reap.
Comment
-
thanks it's almost what I am looking for, I tried it and now it shows serial number xxxxx-1-2-3-4 what I want is xxx-1 xxx-2 xxx-3 xxx-4 on each report
LOOP1 =LOOP/START,ID=YES,NUMBER=4,START=1,SKIP=,
OFFSET:XAXIS=0,YAXIS=3,ZAXIS=0,ANGLE=0
ASSIGN/H006=H006+"-"+LOOP1
Comment
-
I would give the initial variable and the variable with the loop number added a different name. Then it won't keep adding to the end.
ASSIGN/H007=H006+"-"+LOOP1
or something like that. Otherwise you need to assign the original text to H006 at the beginning of the loop.PC-DMIS 2016.0 SP8
Jeff
Comment
Related Topics
Collapse
-
by MikeFI have a program using a loop for running 4 parts, how can I add 1 to the serial number for each part? example 1st part twx1234 next part twx1235...
-
Channel: PC-DMIS for CMMs
10-06-2021, 05:53 AM -
-
by EclipsegcHello there,
I am writing a program that measures four identical parts at the same time with the functionality of loops. When the program is...-
Channel: PC-DMIS for CMMs
03-23-2020, 01:36 PM -
-
by spsayeskiWe are looking into adding a loop into a program to be able to run 1, 2, 3 or 4 parts at a time on the CMM. All parts need to have serial numbers and...
-
Channel: PC-DMIS for CMMs
03-09-2017, 06:39 AM -
-
by IDR_jtHi all.
We are trying to do a program to measure 4 parts with the same program. These parts are going to be fixed in a specific tooling...-
Channel: PC-DMIS for CMMs
09-17-2012, 03:21 PM -
-
by earthling30I've searched the other posts and didn't see what I'm trying to figure out. I've successfully created a Loop program that measures 5 parts that are spaced...
-
Channel: PC-DMIS for CMMs
08-02-2012, 04:06 AM -
Comment