82
•
Chapter 7 Application Programming
DMC-1500
#AUTO
Label for auto program start
#ININT
Label for Input Interrupt subroutine
#LIMSWI
Label for Limit Switch subroutine
#POSERR
Label for excess Position Error subroutine
#MCTIME
Label for timeout on Motion Complete trip point
#CMDERR
Label for incorrect command subroutine
#COMINT
Label for communication interrupt subroutine
Commenting Programs
There are two methods for commenting programs. The first method uses the NO command and allows
for comments to be embedded into Galil programs. The second method used the REM statement and
requires the use of Galil software.
Using the Command, NO
The DMC-1500 provides a command, NO, for commenting programs. This command allows the user
to include up to 77 characters on a single line after the NO command and can be used to include
comments from the programmer as in the following example:
#PATH
NO 2-D CIRCULAR PATH
VMXY
NO VECTOR MOTION ON X AND Y
VS 10000
NO VECTOR SPEED IS 10000
VP -4000,0
NO BOTTOM LINE
CR 1500,270,-180
NO HALF CIRCLE MOTION
VP 0,3000
NO TOP LINE
CR 1500,90,-180
NO HALF CIRCLE MOTION
VE
NO END VECTOR SEQUENCE
BGS
NO BEGIN SEQUENCE MOTION
EN
NO END OF PROGRAM
Note: The NO command is an actual controller command. Therefore, inclusion of the NO commands
will require process time by the controller.
Using REM Statements with the Galil Terminal Software.
If you are using Galil software to communicate with the DMC-1500 controller, you may also include
REM statements. ‘REM’ statements begin with the word ‘REM’ and may be followed by any
comments which are on the same line. The Galil terminal software will remove these statements when
the program is downloaded to the controller. For example:
Содержание DMC-1510
Страница 6: ......
Страница 18: ...6 Chapter 1 Overview DMC 1500 THIS PAGE LEFT BLANK INTENTIONALLY...
Страница 88: ...76 Chapter 6 Programming Motion DMC 1500 Figure 6 7 Motion intervals in the Home sequence...
Страница 90: ...78 Chapter 6 Programming Motion DMC 1500 THIS PAGE LEFT BLANK INTENTIONALLY...
Страница 137: ...DMC 1500 Chapter 7 Application Programming 125 THIS PAGE LEFT BLANK INTENTIONALLY...
Страница 157: ...DMC 1500 Chapter 10 Theory of Operation 145 THIS PAGE LEFT BLANK INTENTIONALLY...
Страница 160: ...148 Appendices DMC 1500 Card Level Layout...
Страница 178: ...166 Appendices DMC 1500 ICM 1100 Drawing 1 3 4 0 0 4 4 0 2 4 0 7 0 0 4 5 3 7 0 5 7 0 2 8 5 1 0 0 1 0 1 0 7 0 1 0 0...
Страница 180: ...168 Appendices DMC 1500...
Страница 198: ...186 Appendices DMC 1500 THIS PAGE LEFT BLANK INTENTIONALLY...