Chapter 7 Application Programming; Overview; Using The Dmc-14Xx Editor To Enter Programs - Galil Motion Control DMC-14 5 Series Manual

Table of Contents

Advertisement

Chapter 7 Application Programming

Overview

The DMC-14XX provides a powerful programming language that allows users to customize the
controller for their particular application. Programs can be downloaded into the DMC-14XX memory
freeing the host computer for other tasks. However, the host computer can send commands to the
controller at any time, even while a program is being executed. Only ASCII commands can be used
for application programming.
In addition to standard motion commands, the DMC-14XX provides commands that allow the DMC-
14XX to make its own decisions. These commands include conditional jumps, event triggers, and
subroutines. For example, the command JP#LOOP, n<10 causes a jump to the label #LOOP if the
variable n is less than 10.
For greater programming flexibility, the DMC-14XX provides user-defined variables, arrays, and
arithmetic functions. For example, with a cut-to-length operation, the length can be specified as a
variable in a program which the operator can change as necessary.
The following sections in this chapter discuss all aspects of creating applications programs. The
program memory size is 80 characters x 500 lines.

Using the DMC-14XX Editor to Enter Programs

The DMC-14XX has an internal editor, which may be used to create and edit programs in the
controller's memory. The internal editor is opened by the command ED. Note that the command ED
will not open the internal editor if issued from Galil's Window based software – in this case, a
Windows based editor will be automatically opened. The Windows based editor provides much more
functionality and ease-of-use, therefore, the internal editor is most useful when using a simple terminal
with the controller and a Windows based editor is not available.
In the Edit Mode, each program line is automatically numbered sequentially starting with 000. If no
parameter follows the ED command, the editor prompter will default to the last line of the last program
in memory. If desired, the user can edit a specific line number or label by specifying a line number or
label following ED.
:ED
:ED 5
:ED #BEGIN
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:
DMC-14x5/6
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Puts Editor at end of last program
Puts Editor at line 5
Puts Editor at label #BEGIN
Chapter 7 Application Programming
91
i

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dmc-14 6 seriesDmc-1415Dmc-1416Dmc-1425

Table of Contents