Edit Mode Commands; Program Format - Galil Motion Control DMC-18 2 Series User Manual

Table of Contents

Advertisement

NOTE: The ED command only accepts a parameter (e.g., #BEGIN) in a DOS Window. For general
purposes, the editing features described in this section are not applicable when not in DOS mode.
Line numbers appear as 000,001,002, and so on. Program commands are entered following the line
numbers. Multiple commands may be given on a single line as long as the total number of characters
doesn't exceed 80 characters per line.
While in the Edit Mode, the programmer has access to special instructions for saving, inserting, and
deleting program lines. These special instructions are listed below:

Edit Mode Commands

<RETURN>
Typing the return key causes the current line of entered instructions to be saved. The editor will
automatically advance to the next line. Thus, hitting a series of <RETURN> will cause the editor to
advance a series of lines. Note, changes on a program line will not be saved unless a <return> is given.
<cntrl>P
The <cntrl>P command moves the editor to the previous line.
<cntrl>I
The <cntrl>I command inserts a line above the current line. For example, if the editor is at line
number 2 and <cntrl>I is applied, a new line will be inserted between lines 1 and 2. This new line will
be labeled line 2. The old line number 2 is renumbered as line 3.
<cntrl>D
The <cntrl>D command deletes the line currently being edited. For example, if the editor is at line
number 2 and <cntrl>D is applied, line 2 will be deleted. The previous line number 3 is now
renumbered as line number 2.
<cntrl>Q
The <cntrl>Q quits the editor mode. In response, the DMC-18x2 will return a colon.
After the Edit session is over, the user may list the entered program using the LS command. If no
operand follows the LS command, the entire program will be listed. The user can start listing at a
specific line or label using the operand n. A command and new line number or label following the
start listing operand specifies the location at which listing is to stop.
Example:
Instruction
:LS
:LS 5
:LS 5,9
:LS #A,9
:LS #A, #A +5

Program Format

A DMC-18x2 program consists of DMC-18x2 instructions combined to solve a machine control
application. Action instructions, such as starting and stopping motion, are combined with Program
Flow instructions to form the complete program. Program Flow instructions evaluate real-time
conditions, such as elapsed time or motion complete, and alter program flow accordingly.
Each DMC-18x2 instruction in a program must be separated by a delimiter. Valid delimiters are the
semicolon (;) or carriage return. The semicolon is used to separate multiple instructions on a single
110 ● Chapter 7 Application Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Interpretation
List entire program
Begin listing at line 5
List lines 5 thru 9
List line label #A thru line 9
List line label #A and additional 5 lines
DMC-18x2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dmc-1812Dmc-1822Dmc-1832Dmc-1842

Table of Contents