Hardware manual

5-1 Datalogic Automation Inc.
CHAPTER 5
Impact Basic
This chapter discusses the Basic language that is used in the Basic tool in VPM and the Basic Interpreter
control in CPM. The Basic tool performs logical and mathematical calculations based on a set of user-writ-
ten statements using the Basic programming language. The program results are available to link to other
tools.
Basic Editor Window
Basic language commands are typed in the Basic editor window in the VPM Basic tool and the CPM Basic
Interpreter. As variable names are entered, variables are created as inputs in the input list. Click the Compile
button to test the validity of your Basic code. To run the tool or control, click the Run button and the calcu-
lated variable values appear in the properties tab. For more CPM details, see “Basic Interpreter” on page 4-
102. For more VPM details, see “Basic” on page 3-204.
Typing in the Editor Window
The Editor window uses standard Windows text editing commands. You enter text by typing in the Editor
window. When you reach the end of a line, press Enter to create a new line. To put a blank line between
lines, press Enter twice.
To select text
Using the mouse: Move the cursor to the beginning of the text, then click and hold the left mouse but-
ton while you drag across the text you want to select.
Using the keyboard: Move the cursor to the beginning of the text, then hold down the Shift key while
you move the cursor using the keyboard arrow keys. You can select a word at a time if you hold down
the Shift and Control keys while you move the cursor.
To add a new text line
1. Move the cursor to the desired location, then press Enter.
2. Type the new text.
To delete text
Press the Backspace key to delete the character to the left of the cursor. Press the Delete key to delete the
character to the right of the cursor. To delete multiple words, letters, or lines, select the desired text, then
press the Delete or Backspace key.
To move text
1. Select the desired text, then press Ctrl X.
2. Move the cursor to the new location, then press Ctrl C.