Jump to content

PCM/inquireList


---
 Share

Recommended Posts

I'm using the to prompt the operator with a two option choice.
Their choice will be displayed on the report via a Text Element.

Is there and easier way to do this?

Part_Type = inquireList("Are you running the Master Part or Production?","Master_Part","Production")
selectCase Part_Type
case "Master_Part"
getRecordHead("partid","Master_Part")
case "Production"
getRecordHead("partid","Production")

endSelect
Link to comment
Share on other sites

I would say that PCM is similar in some ways to VBA. I took the class last year, and am still scratching the surface. It is a very powerful tool. I would recommend it, especially if you have part families (Same geometry, different sizes). Say you have a part family of 12 sizes. With PCM, one program measures them all.
Link to comment
Share on other sites

Please sign in to view this quote.

Oops, posted the wrong code. Please disregard. Will repost soon with correct one.
Link to comment
Share on other sites

Please sign in to view this quote.

What advantage would you have of doing this with PCM instead of putting it as a userfield header variable, and forcing input on CNC Start?
Link to comment
Share on other sites

Sorry about that. I was looking at it and realized a small error. I had "getRecorHead" should be setRecordHead" Then I got rid of the text element because with the setRecordHead, it automatically goes to the report header. Back to my initial question, is there an easier way to do this?

Part_Type = inquireList("Are you running the Master Part or Production?","Master_Part","Production")
selectCase Part_Type
case "Master_Part"
setRecordHead("partid","Master_Part")
case "Production"
setRecordHead("partid","Production")

endSelect
Link to comment
Share on other sites

Please sign in to view this quote.

With the "force input on CNC start, can't the operator just not enter any info? With PCM it will populate the header.
Link to comment
Share on other sites

Please sign in to view this quote.

Sure. They could not change it. It will populate the header as well though. What's stopping your people from picking the wrong selection with the PCM method?
Link to comment
Share on other sites

This is a mandate from management. I guess I was thinking that the operator would be less likely to make a mistake this way.
Link to comment
Share on other sites

in case more attributes are needed would be better to make a bigger effort to set part traceability and extract automatically all the related attributes from a list or database. Then the operator, robot or software doesn’t have to type or select anything only introduce the part ID.
Link to comment
Share on other sites

Please sign in to view this quote.

Its kinda close but not really the same.
the 1 thing i don't like about PCM is there is little to no "error fixing" within the program, so you'll have a command like inquirelist() and it wont work and nothing will tell you what you did wrong and nothing will change color to show that the command needs a capital letter in the second word inquireList().
PCM is great as long as you don't need any help with it......

You should trick your boss into ordering it, tell him you can do a lot of important things with it, then when you get it just do what you want to do instead.
Link to comment
Share on other sites

Please sign in to view this quote.

I think you are in the correct way... my suggestion is to make it more difficult for yourself, then if you fail, only you will know it; on the other hand if you have success you will impress your requesters…
Of course there is always a limit, in my case sometimes I offer unnecessary ideas, but later when is needed we have the solution available..

In our programs we have a lot of attributes in each measuring. Years ago we added all the probe calibration data and temperature in order to detect sources of variation… after was requested to add the name of the operative System, RAM, Processor, IP address and program version. The management is very interested in the KPIs that we generated, mainly because our machines are worldwide distributed.
Link to comment
Share on other sites

Please sign in to view this quote.

If your qeustion is regarding the code it self, then yes. Your code is not wrong, but suboptimal.

Here is a suggestion:
setRecordHead("partid", inquireList("Are you running the Master Part or Production?","Master_Part","Production"))
Try to avoid flow control like "if" and "case" syntax when it's not required.
Link to comment
Share on other sites

No it was not. Even you who seems to have a hard time accepting that you dont know it all, must see the fundamental differences. {}, declare, oo, etc.

Maybe someone sometime said its like "its like c++" to explain what pcm is. But taken from c++, no.
Link to comment
Share on other sites

Yes they have modified the code by adding code.

But it is C++ so mush so that it installs all of this during the installation of calypso
And if you are having problems install older versions of calypso it is the C++ and SQL server likely causing your problem.
If I steal someone's idea and change 10th% I can patent it to. Just like Winklevoss brothers idea being stolen by Facebook founder Mark Zuckerberg

But I'm an Idiot that doesn't know anything. But Calypso needs all the right version of C++ to run

Capture.PNG

Link to comment
Share on other sites

Please sign in to view this quote.


You can agree with me or not Eric Oberg but attacking me personally once again isn't doing anyone any good.
Link to comment
Share on other sites

Sorry Daniel, but for sure PCM is not related to C++ ,
It's more like Roberto's statement...
English language being spoken in Australia
Link to comment
Share on other sites

 Share

×
×
  • Create New...