Galil DMC-3425 Home Security System User Manual


 
108 • Chapter 7 Application Programming DMC-3425
The program memory size for each DMC-3425 is 80 characters per line and 500 lines long.
Entering Programs
The DMC-3425 has an internal editor that may be used to create and edit programs in the controller's
memory. The internal editor is a rudimentary editor and is only recommended when operating with
Galil’s DOS utilities or through a simple RS-232 communication interface such as the Windows Utility
Hyperterminal.
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.
Once the ED command has been given, 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.
Instruction
Interpretation
:ED Puts Editor at end of last program
:ED 5 Puts Editor at line 5
:ED #BEGIN Puts Editor at label #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:
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-3425 will return a colon.