beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 50

background image

Using the Program Port (PRT1)

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 50 of 234

ProSoft Technology, Inc.

December 13, 2011

5.3

EDIT Command

Sometimes you may have typed in a long line and made a mistake in the middle.

You fear that you may make more mistakes if you attempt to re-type the entire

line. To solve this dilemma, use the EDIT command. To edit a line, type EDIT

followed by that line number. For example "EDIT 100".
The EDIT command will respond by printing the entire line to the screen with the

cursor at the beginning of the line. At this point, EDIT has several sub-commands

that must be explained.

EDIT Sub-command

Description

Hitting the space key will cause the cursor to move to the right.

Hitting the backspace key will cause the cursor to move to the left.

Any character

Hitting any character will replace the character above the cursor with the

new character.

^A

^A toggles between insert mode and non-insert mode. When you first
enter the EDIT command, you are in non-insert mode. Typing a ^A will

erase the line from the cursor to the end. At this point, you can type in

any text which you want to insert into the line. When you type ^A again,

the part of the line which was erased when you first hit ^A will reappear,

and you will exit insert mode.

^D

^D will delete the character above the cursor.

The enter key will cause the line to be re-typed as it exists after the

edits.

^C

Typing ^C will exit EDIT mode without saving any changes.

^X

Typing ^X will exit EDIT mode and save all changes.