Rockwell Automation 5370-CUPK Color CVIM USER-PAK Option User Manual

Page 120

Advertising
background image

Chapter 8

Defining Strings for Serial Ports and Viewports

8 – 31

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.

The second

#

is used with the data code –

g#

; used this way, the index

causes the transmission of the gage results for gages 1-5, respectively, as the
index increments from 1-5:

Index character

Transmitted String:

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

Advertising