[Ry...] Posted 19 hours ago Share Posted 19 hours ago 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 More sharing options...
[No...] Posted 4 hours ago Share Posted 4 hours ago 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in