Using repeat string – Rockwell Automation 5370-UPK CVIM USER-PAK Option User Manual

Page 102

Advertising
background image

Chapter 8

Defining Strings for Serial Ports and Viewports

8–26

The

Repeat String

feature enables the CVIM module to repeat a particular

string multiple times for the same event (see “Defining the Event” in this
chapter). This is accomplished through the use of an “index” number, which
is incremented through a range of values – you define this range using the

Repeat String

menu.

Repeat String box

Repeat String menu

In configuring the repeat range for a string, you set the

Start

, the

End

, and

the

Increment

values:

Start value

End value

Increment value

During operation in the run mode, when the event conditions are satisfied for
sending the string, the index is set to the

Start

value, then:

(1) If the

End

value is greater than or equal to the

Start

value, the string

is sent.

(2) The index is incremented (according to the

Increment

value).

The string is sent for each index value, until the index value exceeds the

End

value.

For example, to repeat a string 5 times, you can set the

Start

value to 1, the

End

value to 5, and the

Increment

to 1. The index will increment through

values 1 to 5. Or, you can set the

Start

value to 6, the

End

value to 10, and

set the

Increment

to 1, so the index will increment from 6–10, and so forth.

Using Repeat String

Advertising