Jump to content

While running a program, can you run a separate program at the beginning?


---
 Share

Recommended Posts

---

I have a program that runs in AutoRun on a pallet, and I'd like to run a separate program at the beginning using something like a batch file (which I know very little about).  The reason why, is I'd like to check a centrally located artifact for probe breakage (0.3mm).  If I were to just put the check at the beginning of the program, I believe I would need an artifact at each station of the pallet.  My thought is if I have a separate program that only references the pallet alignment, then I should be able to just have one artifact at a fixed location.  I could be way off on this approach, but it would still be nice to know if this is possible for other potential applications.  Thanks in advance!

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to view this username.

Do you care if it is checked after the base alignment features? Or are you looking to do this before it even touches the part?

If the former, then there is a way to use PCM to only do it on pallet location 1. 

1. Program as normal.

2. Add your artifact measurement and place it after the base alignment features.

3. Set up a miniplan for that artifact measurement and regular inspection ("Artifact and Norm"). 

     3.1 You will need a characteristic for the artifact, of course. 

4. Set up a miniplan for regular inspection ("Norm"), skipping the artifact measurement.

5. In the program Presetting, add in the PCM below

There are probably other methods too. 

PltNum=getRecordHead("palletlocationnumber")

if PltNum=="1" then
	setRunID("Artifact and Norm")
endif

if PltNum<>"1" then
	setRunID("Norm")
endif
Link to comment
Share on other sites

 Share

×
×
  • Create New...