Rockwell Automation 5370-UPK CVIM USER-PAK Option User Manual

Page 104

Advertising
background image

Chapter 8

Defining Strings for Serial Ports and Viewports

8–28

Example of Using the Repeat String and Index Character

Serial Port: This section provides an example of using the repeat string
feature, and the index character. For this example, assume the following
inspection results:

Gage 1 = 205
Gage 2 = 30
Gage 3 = (gage disabled)
Gage 4 = 110
Gage 5 = 20

The

Repeat String

settings are set to:

The

string

text is entered as:

Index character as part of data code

Index character alone

The resulting transmission for the inspection consists of five strings, one for
each increment of the index (1–5), where the gage results are transmitted for
gages 1–5, respectively:

Gage 1 = 205 [CR] [LF]

– (where current index is 1)

Gage 2 = 30 [CR] [LF]

– (current index is 2)

Gage 3 = [CR] [LF]

– (current index is 3)

Gage 4 = 110 [CR] [LF]

– (current index is 4)

Gage 5 = 20 [CR] [LF]

– (current index is 5)

Regarding the first

#

(index) character in the string: because the

#

is entered

alone in the string, the current index number is transmitted at that point. This
is used in identifying the gage results, 1–5, in each string, respectively:

Index character

Transmitted Strings:

Gage 1 = 205 [CR] [LF]

Gage 2 = 30 [CR] [LF]
. . . etc.

Advertising