hexagon logo

Looping question: Unique Input for Each Part plus Skipping Stations

I'd like to write a program capable of inspecting 4 identical parts mounted to fixtures, pitched 100mm apart from one another.
The user will be asked where each part came from (location on on the CNC machine)
Each report pdf will be named to identify where each part came from.
It will be possible to skip one or several of the parts.

The program I have allows me to do all of this except for the looping.

Manual alignment
Ask user part location
DCC alignment
Features
Dimensions
Report with pdf name identifying part location


Using the help file, I can create a simple looping program to measure the four parts, but I'm not sure how to include part identification and part skipping. I'd rather not have to have the program pause between parts while waiting for user input.
Parents
  • When I call LOOP_ORIGIN in the alignment, I get red text. Why is that? (I double checked to ensure the names of both were identical. I even tried temporarily renaming them Z just to be sure they were identical. When I renamed LOOOP_ORIGIN, the alignment call of LOOP_ORIGIN did not automatically update to the new name)


    Now I REALLY want to take level 3. Gonna have work on convincing the boss Slight smile


    If you have RED script in a variable it does not like the variable (script name or variable of assign line of code; spacing, special characters or reserved words are common cause for this error)
    Often time when using a variable in and alignment or command group it will ask you if that is the variable you are trying to use and you have to answer yes when that question comes up; My understanding is that creates the connection of the variable used and assignment lines of code.

    Post code
Reply
  • When I call LOOP_ORIGIN in the alignment, I get red text. Why is that? (I double checked to ensure the names of both were identical. I even tried temporarily renaming them Z just to be sure they were identical. When I renamed LOOOP_ORIGIN, the alignment call of LOOP_ORIGIN did not automatically update to the new name)


    Now I REALLY want to take level 3. Gonna have work on convincing the boss Slight smile


    If you have RED script in a variable it does not like the variable (script name or variable of assign line of code; spacing, special characters or reserved words are common cause for this error)
    Often time when using a variable in and alignment or command group it will ask you if that is the variable you are trying to use and you have to answer yes when that question comes up; My understanding is that creates the connection of the variable used and assignment lines of code.

    Post code
Children
No Data