Special Labels - Galil Motion Control DMC-14 5 Series Manual

Table of Contents

Advertisement

The maximum number of labels, which may be defined, is 126.
Valid labels
#BEGIN
#SQUARE
#X1
#begin1
Invalid labels
#1Square
#123
A Simple Example Program:
Instruction
#START
PR 10000,20000
BG XY
AM
WT 2000
JP #START
EN
The above program moves X and Y, 10000 and 20000 units respectively. After the motion is
complete, the motors rest for 2 seconds. The cycle repeats indefinitely until the ST or HX command is
issued.

Special Labels

The DMC-141X also has some special labels, which are used to define input interrupt subroutines,
limit switch subroutines, error handling subroutines, and command error subroutines. The following
table lists the automatic subroutines supported by the controller. Sample programs for these
subroutines can be found in the section Automatic Subroutines for Monitoring Conditions.
#AUTO
#AUTOERR
#ININT
#LIMSWI
#POSERR
#MCTIME
#CMDERR
#TCPERR
DMC-14x5/6
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Interpretation
Beginning of the Program
Specify relative distances on X and Y axes
Begin Motion
Wait for motion complete
Wait 2 sec
Jump to label START
End of Program
Starts program on power-up or reset
Starts program on power-up error
Label for input interrupt subroutine
Label for limit switch subroutine
Label for excess position error subroutine
Label for timeout on motion complete trip point
Label for incorrect command subroutine
Ethernet communication error
Chapter 7 Application Programming
93
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