Jump to content

Auto Run and Mini Plans


---
 Share

Recommended Posts

Hello all, 

I have some programs set up that I am currently trying to palletize. The parts are fixtures that need to be checked on a quarterly basis per our quality policy. Some of these programs have mini plans in them that either change how tight the tolerances are on some features or changes what features are checked depending on the situation. I currently have a pcm function set up so it will ask the operator which check needs to be run and then it sets the mini plan to that. 

Is there a way to perform all of the PCM inquiry at the beginning of an auto run rather then it finishing one program then waiting for a user input?

 

Thanks

Link to comment
Share on other sites

Well, you could modify your PCM code in a way that it does different things depending on a pallet-related variable. For example you could use the variables palletlocationnumber, firstpalletlocationnumber and lastpalletlocationnumber to call a data entry subroutine during the first run, write the parameters entered into separate parameter files and read them back in in the second and subsequent runs. It could roughly look like this:

// Data Entry
if getRecordHead("palletlocationnumber")==getRecordHead("firstpalletlocationnumber") then
	// input for part 1
	var_1 = inquire(....)
	addToFile("PCM_1.txt", "P001 = "+var_1
	...
	...
	// input for part 2
	var_2 = inquire(....)
	addToFile("PCM_2.txt", "P001 = "+var_2
	...
	...
endif

// Data Processing
if getRecordHead("palletlocationnumber")==1 then
	runPCMFile("PCM_1.txt")
endif

if getRecordHead("palletlocationnumber")==2 then
	runPCMFile("PCM_2.txt")
endif
...
...

Note that the above scheme only works if the same parts are always on the same pallet positions, otherwise you'll need to develop a more sophisticated approach.

Link to comment
Share on other sites

Well this gives me a starting point at least. I was hoping that there was a function in auto run that would run all the pallet location pre settings at first, But I can start getting creative with PCM.

Link to comment
Share on other sites

The only thing I know that goes thtrough the pallet in a different sequence is the option Pallet Optimizer. It's meant to reduce stylus changes by measuring all parts with the first stylus, then with the second and so on.  But I have no idea if this also would also allow for some PCM tricks to achieve what you have in mind.

Edited
Link to comment
Share on other sites

 Share

×
×
  • Create New...