PCM Instructors Guide

5
Calypso 3.6 PCM class instructors guide

Transcript of PCM Instructors Guide

Page 1: PCM Instructors Guide

Calypso 3.6

PCM class instructors guide

Page 2: PCM Instructors Guide

Note This class is an experiment in presentation, the reference material and labs are displayed using a VB executable called “PCMViewer.exe”. All of the PCM commands can be called up via this viewer and via HTML links an example of its use can be displayed. At the beginning of each lab are listed the PCM commands that will be discussed in a particular lab, each of these also has a hyperlink. The labs are written in such a way that they almost become a self-teaching document. I recommend that before each lab is undertaken by the student, the instructor should display the current lab in the viewer and go through each step. At the end of each lab is a program listing of the code generated in the steps. I think the biggest problem the instructor will have with this class is being able to identify “typo’s” in the students code, especially missing parenthesis

Day 1 1. Introduction and course structure

� Have the students sign the class attendance sheet. � Introduce yourself and describe the facilities, location of rest rooms etc. � Class hours, breakdown of the day, lunch arrangements. � The course participants introduce themselves – obviously this is optional as some

people do not like to be put on the spot.

2. Worksheet 1

� Explain the concept of formula versus input boxes – one is a fixed value the other a

variable. Right mouse click in an input field accesses the formula dialog.

� Explain the concept of pre and post settings.

� Introduce the user-defined variable. o variablename = inquire(“Enter your name”)

� Go to worksheet 1 and using the “viewer” display the worksheet. The worksheet

itself can actually be your script for explaining the steps. It is probably best to try and control the pace at which the students do the exercises as an experienced person will be able to go through the lab much quicker than an inexperienced one.

3. Worksheet 2

� Explain the concept of accessing Calypso variables and their various properties (x, y, radius, diameter etc.

o getActual(“Circle1”).x o getProbe(“Stylus name”).radius

� Go to worksheet 2. This lab deals with positioning the probe based on the result of a

feature. Although the lab only asks for one position, try doing 4 positions as this

Page 3: PCM Instructors Guide

reinforces the procedure.

� Let the students adopt this procedure in other features

o Measuring a hole at a particular depth (relative to a feature).

4. Worksheet 3

� Explain looping and the break condition. � Introduce the inquire statement

� Go to worksheet 3 and work through the example with the viewer.

5. Worksheet 4

� Explain the concept of “Conditions”, either use an actual example or the in the

viewer (Flow control overview – top right options). Let the student run the program without the condition first so that they see a result for ever iteration of the loop.

� Go to worksheet 4 and work through the example with the viewer.

6. Worksheet 5

� This lab uses the location of a gage diameter in a cone as a secondary alignment. A

theoretical point is created to store the depth of the gage diameter.

� Go to worksheet 5 and work through the example with the viewer. Day 2

� Review the previous day and should it be necessary revisit any of the areas which are not clear.

7. Worksheet 6

� Discuss the concept of a family of parts and parameterization of the nominals. The example uses a flange with holes in it as the example. There a four new PCM commands introduced in this lab:

o inquireList() o readPCMFile() o redrawCAD() o if endif

� Go to worksheet 6 and work through the example using the viewer.

8. Worksheet 7

� This example creates an elapsed time variable, which is then output in the custom

report header.

� Go to worksheet 7 and work through it using the viewer.

Page 4: PCM Instructors Guide

9. Worksheet 8

� This example puts a lot of things together into a program that is able to create linear

hole patterns. The data is created from operator inputs and is exported to a parameter file. It also demonstrates the use of batch files which can be called using the “systemCallWithWait()” function. Take your time with this one as there are a lot of things going on.

Functions in this worksheet:

o inquireParameterList() o addToFile() o for...next loop o batch files o systemCallWithWait() o readPCMFile() o point array

� Go to worksheet 8 and step through the program with the viewer.

10. Worksheet 9

� This example shows how to format data and send it to an indexed results file. In this

instance, the format required was the Datamyte format.

Functions in this worksheet: o inquireParameterList() o format() o addToFile() o systemCallWith Wait() o deleteFile()

� Go to worksheet 9 and step through the program with the viewer.

11. Worksheet 10

� This worksheet covers the creation of a self-validating qualification program. The

idea is that a set of reference values are created for each probe and stylus in the rack. This data is written away to a parameter file. An auto qualification program is created and the individual styli compared to this data. If the deviation is greater than a defined value the calibration is repeated.

Functions in this worksheet:

o vector() o getWD() o readPCMFile() o getProbe() o if endif() o round()

� Go to worksheet 10 and step through the program with the viewer.

Page 5: PCM Instructors Guide

Day 3

12. Worksheet 11

� This worksheet creates a menu driven point generator to create formatted curve data. This data can then be read into a curve feature. Functions in this worksheet:

o inquireText() o if else o abs() o int() o getActualInspectionDir() o chr() o for next o sin() o cos() o //

� Go to worksheet 11 and step through the program with the viewer.

13. Worksheet 12

� This example analyzes a series of true position characteristics and reports which

one had the greatest error and which the least.

Functions in this worksheet: o getNominal().nominal o asc() o inStr() o len() o mid() o val() o sqrt() o squared()

� Go to worksheet 12 and step through the program with the viewer.

� Review the class and re-enforce any areas that the students were unsure of.

� If any time remains add any other examples that you wish.