Jump to content

operator input for secondary alignment


---
 Share

Recommended Posts

I'm measuring a turbine blade with 17 blades but I can only measure 1 blade at a time with VAST sensor. Based on which blade I am checking, I rotate the part so the timing slot is at the correct rotation.  My base alignment picks up the spatial, X, Y and Z origin but not the planar.  I use a secondary alignment to pick up the timing slot for the planar rotation.  I am using a formula to determine which blade is being measured.  So, for each new blade, I open the secondary alignment and edit the number in the formula to select which blade I am checking.  In the picture below, the "11" is for blade3. I'm looking for suggestions for a prompt where I can enter the blade I want to check and have pcm edit the formula in the secondary alignment to run the appropriate blade.

Blade     Formula number

1                      9

2                     10

3                     11

.

.

.

15                     6

16                     7

17                     8

planar rotation formula.jpg

Edited
Link to comment
Share on other sites

If I'm understanding you correctly, I think this should work. I'm no PCM expert.

Below goes into the Presettings. Create a .para file with the formula number for each blade, e.g. (Blade_3 = the formula here)

 

Blade_Number = inquireList("Which Blade are you measuring?", "Blade_1", "Blade_2", "Blade_3")
selectCase Blade_Number
    case "Blade_3"
        readPCMFile(dir + "\Blade_3.PARA")
 

endSelect

Edited
  • Like! 1
Link to comment
Share on other sites

I would do it like Clarke, but a bit easier:

Blade_Number = inquireList("Which Blade are you measuring?", "Blade_1", "Blade_2", "Blade_3",...)
selectCase Blade_Number
    case "Blade_3"
        vX=11
    case "Blade_4"
        vX=12

endSelect

Then replace the 11 in your formula with the variable vX

  • Like! 1
Link to comment
Share on other sites

 

Please sign in to view this username.

  

Please sign in to view this username.

 Exactly what I was looking for.  Thank you.

  • Like! 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...