Galil DMC-3425 Home Security System User Manual


 
DMC-3425 Chapter 7 Application Programming 109
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 Interpretation
:LS List entire program
:LS 5 Begin listing at line 5
:LS 5,9 List lines 5 thru 9
:LS #A,9 List line label #A thru line 9
:LS #A, #A +5 List line label #A and additional 5 lines
Program Format
A DMC program consists of 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-3425 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
program line where the maximum number of instructions on a line is limited by 80 characters. A
carriage return enters the final command on a program line.
Using Labels in Programs
All DMC-3425 programs must begin with a label and end with an End (EN) statement. Labels start
with the pound (#) sign followed by a maximum of seven characters. The first character must be a
letter; after that, numbers are permitted. Spaces are not permitted.
The maximum number of labels that may be defined is 254.
Valid labels
#BEGIN
#SQUARE
#X1
#BEGIN1
Invalid labels
#1Square
#123
Example
Instruction Interpretation
#START Beginning of the Program
PR 10000,20000 Specify relative distances on A and B axes
BG AB Begin Motion