beautypg.com

Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual

Page 58

background image

Editing a Procedure

Chapter 7

7Ć6

The second line of the procedure prints out:

P ‘LINE 2’
*

When using the insert command, you insert text above the procedure line
displayed on the CRT. So now, we can insert the new line by typing:

* I [ENTER]
P ‘LINE 1A’[ENTER]
[ENTER]

The 1775-S4B scanner displays an asterisk on the next line. Now P ’LINE
1A’ becomes the second line in the procedure, and the 1775-S4B scanner
automatically adjusts the rest of the procedure.

Definition: To set the line pointer or cursor at a specific line in the
procedure.

Format: [ENTER]

Description: The set line pointer command sets the line pointer to the line
number that you specify.

The first line of the procedure is number 1. If you enter 0 or a number
which exceeds the number of lines in the procedure, you will move to a
point just beyond the last line of the procedure (indicated by ).

Example using the set line pointer command:

In our @EXAMPLE procedure which contains the following lines:

P ‘LINE l’
P ‘LINE 1A’
P ‘LINE 2’
P ‘LINE 3’

We can immediately look at line four by entering:

*4[ENTER]

The following line prints out:

P ‘LINE 3’
*

Remember, you just inserted a line into this procedure.

7.3.2
Set Line Pointer