6-8
Chapter 6: Creating Automated Scripts
stored in the associated pattern registers. To get this information you must RP_READ: it
into a variable.
For example, the following is a typical sequence of script commands to perform a
pattern rec:
BOX:150 300 500 350 2 (Draw a box to show window)
RP_WIN:150 300 500 350 (Define the window)
RECPT:0 0 1 1 50 (define the rec_pt’s)
RECPT:1 0 1 2 50
RP_EXEC:0 2 (execute the pattern rec)
RP_READ:0 V20 (Read the locations of the edges)
RP_READ:1 V22
Once the edges have been found, you can set up the sequence windows. The sequence
windows are where features are actually measured.
Sequence Windows
Sequence windows are very similar to pattern recognition windows, especially in how
they are set up. To set up sequence windows you will set the windows. There are two
windows per sequence setup, 0 and 1, which correspond with the left and right or top
and bottom in vertical measurements.
After defining the sequence windows, you can define the edges to be detected. The
SEQEDGE: command requires six parameters, as opposed to the five parameters
required by REC_PT:
The first SEQEDGE: command parameter is the same as the pattern register
number. It specifies which sequence setup the window will be stored in.
The second parameter defines which window (0 or 1) you are specifying. For each
axis horizontal/vertical measurements, 0 is the top-left window and 1 is the bottom-
right window.
The third parameter defines the axis as 0 or 1. As with pattern recognition
command RECPT: the 0-axis is horizontal and the 1-axis is vertical.
The fourth parameter is the direction. 0 is negative and 1 is positive.
The fifth parameter is the number of the edge to seek.
The sixth parameter is the threshold to use for the edge derivative algorithm.
Summary of Contents for KMS-310
Page 10: ...Contents viii...
Page 33: ...System Overview Product Overview Subsystem Overview Functional Overview 3...
Page 51: ...User Interface Overview Software Controls Software Organization 4...
Page 119: ...Creating Automated Scripts Overview Script Creation Script Locator Script Commands 6...
Page 266: ...7 48 Chapter 7 Operation...
Page 292: ...8 26 Chapter 8 Maintenance...
Page 293: ...Error Messages System Error Messages Script Error Messages 9...
Page 297: ...Glossary...
Page 304: ...I 4 Index...