Example 7 – using formulas and plot line codes – Rockwell Automation 5370-UPK CVIM USER-PAK Option User Manual

Page 118

Advertising
background image

Chapter 8

Defining Strings for Serial Ports and Viewports

8–42

Recall that we also need to create a second string which will have the effect
of erasing the PART REJECTED string when the inspection passes. One
way to do this is to use the

Copy

and

Paste

features to copy the PART

REJECTED string to another string. This way both the string text, and the
exact string position, are copied.

Once the PART REJECTED string is copied to another string, we change the

Event

setting on this new string so that

Master Range

and

Print on PASS

are selected. Next we change the color on the

Color Selection

menu to

Clear

. This way, when the clear string is “displayed” (it will not actually

appear on the screen), it will have the effect of erasing the PART REJECTED
message.

Example 7 – Using Formulas and Plot Line Codes

Recall that it is possible to draw or plot lines, and/or position strings through
the use of draw line or plot line codes, and that it is possible to use the results
of formulas as draw/plot line parameters. The

Tool

viewport string in our

example display provides a case in which tool results are used to plot lines
and position strings within the display.

Tool Viewport String

This

Tool

viewport locates and points out the corner of the part shown in the

monitor image; it also displays the (x, y) coordinates of the corner.

Advertising