[Cl...] Posted May 29, 2020 Share Posted May 29, 2020 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 More sharing options...
[SH...] Posted May 29, 2020 Share Posted May 29, 2020 I don't have PCM,but I wish I had. This look like computer c programming, PCM is a subset of c programming?? Link to comment Share on other sites More sharing options...
[Cl...] Posted May 29, 2020 Author Share Posted May 29, 2020 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 More sharing options...
[Cl...] Posted May 29, 2020 Author Share Posted May 29, 2020 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 More sharing options...
[Ri...] Posted May 29, 2020 Share Posted May 29, 2020 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 More sharing options...
[Cl...] Posted May 29, 2020 Author Share Posted May 29, 2020 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 More sharing options...
[Cl...] Posted May 29, 2020 Author Share Posted May 29, 2020 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 More sharing options...
[Ri...] Posted May 29, 2020 Share Posted May 29, 2020 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 More sharing options...
[Cl...] Posted May 29, 2020 Author Share Posted May 29, 2020 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 More sharing options...
[Is...] Posted May 29, 2020 Share Posted May 29, 2020 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 More sharing options...
[Cl...] Posted May 29, 2020 Author Share Posted May 29, 2020 As I am just starting to understand the basics of PCM, what would be the best way to do that? Link to comment Share on other sites More sharing options...
[Ro...] Posted May 29, 2020 Share Posted May 29, 2020 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 More sharing options...
[Is...] Posted May 29, 2020 Share Posted May 29, 2020 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 More sharing options...
[Er...] Posted May 29, 2020 Share Posted May 29, 2020 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 More sharing options...
[Cl...] Posted May 29, 2020 Author Share Posted May 29, 2020 Just learning, thanks! Link to comment Share on other sites More sharing options...
[Da...] Posted May 30, 2020 Share Posted May 30, 2020 Please sign in to view this quote. It Is C++ Programming Link to comment Share on other sites More sharing options...
[Er...] Posted May 30, 2020 Share Posted May 30, 2020 Please sign in to view this quote. Nope. Link to comment Share on other sites More sharing options...
[Jo...] Posted May 30, 2020 Share Posted May 30, 2020 It is like Smalltalk. Link to comment Share on other sites More sharing options...
[Ro...] Posted May 30, 2020 Share Posted May 30, 2020 It's like the English language being spoken in Australia. Link to comment Share on other sites More sharing options...
[Da...] Posted May 31, 2020 Share Posted May 31, 2020 Please sign in to view this quote. They can call it what every they want but it was taken from C++ Link to comment Share on other sites More sharing options...
[Er...] Posted May 31, 2020 Share Posted May 31, 2020 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 More sharing options...
[Da...] Posted May 31, 2020 Share Posted May 31, 2020 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 runCapture.PNG Link to comment Share on other sites More sharing options...
[Er...] Posted May 31, 2020 Share Posted May 31, 2020 Man, one day you are going to be ashamed. But good job trashing yet another thread with your missinformation. Link to comment Share on other sites More sharing options...
[Da...] Posted May 31, 2020 Share Posted May 31, 2020 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 More sharing options...
[Is...] Posted May 31, 2020 Share Posted May 31, 2020 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in