Galil DMC-1400 User manual

Type
User manual
DMC-1400 Series
DMC-1400 Series
Command Reference
Manual Rev. 2.8
By Galil Motion Control, Inc.
Galil Motion Control, Inc.
3750 Atherton Road
Rocklin, California 95765
Phone: (916) 626 0101
Fax: (916) 626-0102
Internet Address: [email protected]
URL: www.galilmc.com
Rev 8/06
ARRAYS CONTROL FEEDBACK MATH PROGRAM STEPPER
DA deallocate DV dual loop AF analog feedback @ABS[n] | | BK breakpoint KS smoothing n
_DA arrays le FA accel feedfw AL arm latch @ACOS[n] arccos DL downlo
VECTOR
ft d ad
DM defin FV speed feedf _AL latch occurred? arcsin _DL labels l AV wait for arc length e wd @ASIN[n] eft
_DM space le IL integrator li configure arctan ED edit _AVS arc length ft mit CE @ATAN[n]
LA li derivative g OC output compare n] bit not ELSE if else CA 2nd vector st KD ain @COM[
QD downloa KI integral gain _OC first pulse? ] cosine EN end CR circle d @COS[n
QU print/uploa KP proportional gain RL read latch @FRAC[n] fraction ENDIF if en CS clear sequence d dif
RA reco MO motor _RL latch position @INT[n] integer HX halt thread _CS segment rd off
RC begi _MO motor o TD tell dual @RND[n] round IF conditio elliptical scale n ff? nal ES
_RC recording NB notch wid TP tell position @SIN[n] sine JP for/while loop LE linear end ? th
RD dat NF notch frequen TV tell veloc @SQR[n] x^0. JS jump subrou e _LE total arc length a cy ity 5 tin
_RD addres NZ notch ze
GEAR
@TAN[n] tangent LL list labels LI linear point s ro
[ ] index F offs GA ax + add LS list LM linear axes O et es
COMMUNICAT
PL low pas GM gantry mode - subtract LV list variables _LM buffer space
E
s
CC aux seri SH servo he GR ratio * multiply NO (') comment TN tangent scale al re
CF unsolicite TE tell er
HOME
/ divide RE return e r _TN 1st position d ror rro
CI interrup TK peak torqu DE define dual ( ) parenthesis REM fast comment VA acceleration t e
CW unsolicited b TL torque limit DP define position & an RI return interrupt VD deceleration it d
DR data recor TM sample time FE find home o | SL single step VE vector end d nly or
EO ech TT tell torq FI find index on $ hexadecimal TB tell status b VM vector axes o ue ly yte
HS handle swit
ECAM
HM hom < less than TR debug trace _VM velocity ch e
IA IP addre master ax _HM home inp > greater than UL upload VP vector point ss EA is ut
_IA Ethernet in EB enable
INFO
= assign / equ _UL variables left _VP last point fo al
IH open hand count _BN serial number <= less or equal XQ execute VR VS multiplier le EC er
_IH handle in EG engage slav _BV axes >= greater or equal _XQ current li # VS speed fo e ne
IN user inpu modul ^R^V firmware rev <> not equ ZS zero stack VT s curve t EM us al
LZ leading zero master positions
I/O MOTION
_ZS stack level s EP
MG messag EQ disengage slave @AN[x] analog in C acceleratio #AUTO; EN e A n
P2CD port 2 cod ET table @IN[x] digital in begi #AUTOERR; EN e BG n
P2CH characte
EEPROM
@OUT[x] digital out tion? ; command delimr _BG in mo iter
P2NM numbe ^R^S master reset AI wait for input DC deceleratio # subrouti r n ne
P2ST string BN burn AO set analog output IP increment position
TIME
PF position forma BP burn program CB clear digital out IT s curv AT wait refere t e nce
QR query record BV burn variables CN configure JG jo TIME clock g
QZ record info RS reset CO extended I/O PA position absolut WT wait e
SA send command
ERRORS
II input interr A last targe
SINE DRIVE
upt _P t
_SA response AB abo MB Modbus TCP PR position relativ BA ax rt e es
TH tell handles _AB abort input MW Modbus w _PR relative targe _BA 2nd DAC axis ait t
VF variable forma BL reverse soft limit OB output bit PT position trackin BB hall off t g set
WH which handle _ED program line OP output port RP desired positio BC calibration n
_WH numeric _ED1 thread SB set digital out SP speed _BC hall state
#COMINT; N1,1 ER maximum TE TI tell input b ST stop BD degre yte es
#TCPERR; RE FL forward soft limit TS tell switch ~a axis variabl BI hall inputs es e
CONTOUR
_LF forward limit TZ tell Ethernet I/O
MOTION WAIT
BM magnetic cy
cle
CD data _LR reverse limit #ININT; RI1 AD distance (RP) BO DAC offset
CM axes OE off on e AM complete (RP) BS setup rror
_CM buffer ful SC stop code AP position (TP) BZ find zero l
DT delta tim TC tell code AR distance (RP) _BZ distance to zero e
WC wait for buffe #CMDERR; EN1 AS at speed (SP) r
IMSWI; RE1 MC complete (TP) #L
OSERR; RE1 MF forward (TP) #P
MR reverse (TP)
TW MC timeout
#MCTIME; EN1
DMC-1400 Series Command Reference Contents i
Contents
CONTENTS ......................................................................................................................................................................... I
OVERVIEW.........................................................................................................................................................................1
CONTROLLER NOTATION ................................................................................................................... 1
S
ERVO AND STEPPER MOTOR NOTATION:.......................................................................................... 1
C
OMMAND DESCRIPTIONS ................................................................................................................. 1
Arguments..................................................................................................................................... 2
Operand Usage............................................................................................................................. 2
Usage Description ........................................................................................................................ 2
Default Description....................................................................................................................... 2
Controller Usage .......................................................................................................................... 3
SERVO UPDATE RATES ...................................................................................................................... 3
#..................................................................................................................................................... 4
$..................................................................................................................................................... 5
& | ................................................................................................................................................. 6
( )................................................................................................................................................... 7
;..................................................................................................................................................... 8
[ ] .................................................................................................................................................. 9
+ - * / .......................................................................................................................................... 10
<, >, =, <=, >=, <>.................................................................................................................. 11
=.................................................................................................................................................. 12
AB................................................................................................................................................ 13
@ABS[n]..................................................................................................................................... 14
AC ............................................................................................................................................... 15
@ACOS[n].................................................................................................................................. 16
AD............................................................................................................................................... 17
AF................................................................................................................................................ 18
AI................................................................................................................................................. 19
AL................................................................................................................................................ 20
AM............................................................................................................................................... 21
@AN[n]....................................................................................................................................... 22
AO............................................................................................................................................... 23
AP................................................................................................................................................ 24
AR................................................................................................................................................ 25
AS................................................................................................................................................ 26
@ASIN[n] ................................................................................................................................... 27
AT................................................................................................................................................ 28
@ATAN[n].................................................................................................................................. 29
#AUTO........................................................................................................................................ 30
#AUTOERR................................................................................................................................. 31
AV................................................................................................................................................ 32
BA................................................................................................................................................ 33
BB................................................................................................................................................ 34
BC ............................................................................................................................................... 35
BD............................................................................................................................................... 36
BG............................................................................................................................................... 37
ii • Contents DMC-1400 Series Command Reference
BI................................................................................................................................................. 38
BK ............................................................................................................................................... 39
BL................................................................................................................................................ 40
BM............................................................................................................................................... 41
BN ............................................................................................................................................... 42
BO............................................................................................................................................... 43
BP................................................................................................................................................ 44
BS................................................................................................................................................ 45
BV................................................................................................................................................ 46
BZ................................................................................................................................................ 47
CB ............................................................................................................................................... 48
CC............................................................................................................................................... 49
CD............................................................................................................................................... 50
CE ............................................................................................................................................... 51
CF ............................................................................................................................................... 52
CI................................................................................................................................................. 53
CM............................................................................................................................................... 54
#CMDERR .................................................................................................................................. 55
CN............................................................................................................................................... 56
CO............................................................................................................................................... 57
@COM[n]................................................................................................................................... 58
#COMINT ................................................................................................................................... 59
@COS[n].................................................................................................................................... 60
CR ............................................................................................................................................... 61
CS................................................................................................................................................ 62
CW............................................................................................................................................... 63
DA............................................................................................................................................... 64
DC............................................................................................................................................... 65
DE............................................................................................................................................... 66
DL ............................................................................................................................................... 67
DM .............................................................................................................................................. 68
DP............................................................................................................................................... 69
DT ............................................................................................................................................... 70
DV............................................................................................................................................... 71
EA................................................................................................................................................ 72
EB................................................................................................................................................ 73
EC ............................................................................................................................................... 74
ED............................................................................................................................................... 75
EG............................................................................................................................................... 76
EI................................................................................................................................................. 77
ELSE ........................................................................................................................................... 78
EM............................................................................................................................................... 79
EN ............................................................................................................................................... 80
ENDIF......................................................................................................................................... 82
EO............................................................................................................................................... 83
EP................................................................................................................................................ 84
EQ............................................................................................................................................... 85
DMC-1400 Series Command Reference Contents iii
ER................................................................................................................................................ 86
ES................................................................................................................................................ 87
ET................................................................................................................................................ 88
FA................................................................................................................................................ 89
FE................................................................................................................................................ 90
FI................................................................................................................................................. 91
FL................................................................................................................................................ 92
@FRAC[n].................................................................................................................................. 93
FV................................................................................................................................................ 94
GA............................................................................................................................................... 95
GN............................................................................................................................................... 96
GM .............................................................................................................................................. 97
GR............................................................................................................................................... 98
HM .............................................................................................................................................. 99
HX............................................................................................................................................. 100
IA............................................................................................................................................... 101
IF............................................................................................................................................... 102
IH .............................................................................................................................................. 103
II................................................................................................................................................ 105
IL............................................................................................................................................... 107
IN............................................................................................................................................... 108
@IN[n]...................................................................................................................................... 110
#ININT ...................................................................................................................................... 111
@INT[n] ................................................................................................................................... 112
IP............................................................................................................................................... 113
IT............................................................................................................................................... 114
IV............................................................................................................................................... 115
JG.............................................................................................................................................. 116
JP .............................................................................................................................................. 117
JS............................................................................................................................................... 118
KD............................................................................................................................................. 119
KI............................................................................................................................................... 120
KP ............................................................................................................................................. 121
KS.............................................................................................................................................. 122
LA.............................................................................................................................................. 123
LE.............................................................................................................................................. 124
_LF*.......................................................................................................................................... 125
LI............................................................................................................................................... 126
#LIMSWI................................................................................................................................... 128
LL.............................................................................................................................................. 129
LM............................................................................................................................................. 130
_LR*.......................................................................................................................................... 131
LS .............................................................................................................................................. 132
LV.............................................................................................................................................. 133
LZ.............................................................................................................................................. 134
MB............................................................................................................................................. 135
MC............................................................................................................................................. 137
#MCTIME................................................................................................................................. 138
iv • Contents DMC-1400 Series Command Reference
MF............................................................................................................................................. 139
MG ............................................................................................................................................ 140
MO ............................................................................................................................................ 141
MR............................................................................................................................................. 142
MT............................................................................................................................................. 143
NB ............................................................................................................................................. 144
NF ............................................................................................................................................. 145
NO............................................................................................................................................. 146
NZ.............................................................................................................................................. 147
OB............................................................................................................................................. 148
OC............................................................................................................................................. 149
OE............................................................................................................................................. 150
OF............................................................................................................................................. 151
OP............................................................................................................................................. 152
@OUT[n].................................................................................................................................. 154
P1CD P2CD............................................................................................................................. 155
P1CH P2CH............................................................................................................................. 156
P1NM P2NM............................................................................................................................ 157
P1ST P2ST............................................................................................................................... 158
#POSERR.................................................................................................................................. 159
PA.............................................................................................................................................. 160
PF.............................................................................................................................................. 161
PR.............................................................................................................................................. 162
QD............................................................................................................................................. 163
QR............................................................................................................................................. 164
QU............................................................................................................................................. 165
QZ ............................................................................................................................................. 166
RA.............................................................................................................................................. 167
RC ............................................................................................................................................. 168
RD............................................................................................................................................. 169
RE.............................................................................................................................................. 170
REM .......................................................................................................................................... 171
RI............................................................................................................................................... 172
RL.............................................................................................................................................. 173
@RND[n].................................................................................................................................. 174
RP.............................................................................................................................................. 175
RS.............................................................................................................................................. 176
<control>R<control>S............................................................................................................ 177
<control>R<control>V............................................................................................................ 178
SA.............................................................................................................................................. 179
SA n........................................................................................................................................... 180
SB.............................................................................................................................................. 181
SC.............................................................................................................................................. 182
SH.............................................................................................................................................. 183
@SIN[n].................................................................................................................................... 184
SL .............................................................................................................................................. 185
SP.............................................................................................................................................. 186
DMC-1400 Series Command Reference v
@SQR[n] .................................................................................................................................. 187
ST .............................................................................................................................................. 188
@TAN[n] .................................................................................................................................. 189
TB.............................................................................................................................................. 190
TC.............................................................................................................................................. 191
#TCPERR.................................................................................................................................. 193
TD ............................................................................................................................................. 194
TE.............................................................................................................................................. 195
TH ............................................................................................................................................. 196
TI............................................................................................................................................... 197
TIME*....................................................................................................................................... 198
TL.............................................................................................................................................. 199
TM............................................................................................................................................. 200
TP.............................................................................................................................................. 201
TR.............................................................................................................................................. 202
TS .............................................................................................................................................. 203
TT.............................................................................................................................................. 204
TV.............................................................................................................................................. 205
TW............................................................................................................................................. 206
UI .............................................................................................................................................. 207
UL ............................................................................................................................................. 208
VA.............................................................................................................................................. 209
VD............................................................................................................................................. 210
VE.............................................................................................................................................. 211
VF.............................................................................................................................................. 212
VM............................................................................................................................................. 213
VP.............................................................................................................................................. 214
VR.............................................................................................................................................. 215
VS.............................................................................................................................................. 216
VT.............................................................................................................................................. 217
WC............................................................................................................................................. 218
WH ............................................................................................................................................ 219
WT............................................................................................................................................. 220
XQ............................................................................................................................................. 221
ZR.............................................................................................................................................. 222
ZS .............................................................................................................................................. 223
INDEX..............................................................................................................................................................................225
Overview
Controller Notation
This command reference is a supplement to the Galil Motion Control User Manual. For proper
controller operation, consult the Users Manual. This manual describes commands to be used with the
Galil Econo Series Motion Controllers: DMC-1410, DMC-1411, DMC-1412, DMC-1414, DMC-
1415, DMC-1416, DMC-1417, and DMC-1425. Commands are listed in alphabetical order.
This command summary includes all executable commands, which can be used with the DMC-1400
series motion controller. These commands are common to all the controllers in that series with certain
exceptions. These exceptions are noted on each corresponding command as “Controller Usage”. An
example is Ethernet commands for the DMC-1415, DMC-1416, and DMC-1425.
Servo and Stepper Motor Notation:
Your motion controller has been designed to work with both servo and stepper type motors.
Installation and system setup will vary depending upon whether the controller will be used with stepper
motors, or servo motors. To make finding the appropriate instructions faster and easier, icons will be
next to any information that applies exclusively to one type of system. Otherwise, assume that the
instructions apply to all types of systems. The icon legend is shown below.
Attention: Pertains to servo motor use.
Attention: Pertains to stepper motor use.
Command Descriptions
Each executable instruction is listed in the following section in alphabetical order. Below is a
description of the information, which is provided for each command.
The two-letter Opcode for each instruction is placed in the upper left corner. Below the Opcode is a
description of the command and required arguments.
DMC-1400 Series Command Reference 1
2 Overview DMC-1400 Series Command Reference
Arguments
As arguments, some commands require actual values to be specified following the instruction. These
commands are followed by lower case n where n is replaced by an actual value.
A “?” returns the specified value for that axis. For example, AC? returns the acceleration of the axis.
Other commands require action on the axis to be specified. These commands do not have an operand
action for the axis or are specified by writing the command only, such as BG or ST. When
downloading commands to the DMC-141X, do not insert a space prior to any command. For example,
ST; AM is invalid because there is a space after the semicolon.
The DMC-1425 is the only controller in the DMC-1400 Econo Series that supports two axes. For this
controller, arguments are specified for the X and Y axis.
Operand Usage
Most commands have a corresponding operand that can be used for interrogation. The Operand Usage
description provides proper syntax and the value returned by the operand. Operands must be used
inside of valid DMC expressions. For example, to display the value of an operand, the user could use
the command:
MG ‘operand’
All of the command operands begin with the underscore character (_). For example, the value of the
current position on the motor can be assigned to the variable ‘V’ with the command:
V=_TP
Usage Description
The Usage description specifies the restrictions on proper command usage. The following provides an
explanation of the command information provided:
"While Moving" states whether or not the command is valid while the controller is performing a
previously defined motion.
"In a program" states whether the command may be used as part of a user-defined program.
"Command Line" states whether the command may be used other than in a user-defined program.
"Can be Interrogated" states whether or not the command can be interrogated by using the “?” as a
command argument.
"Used as an Operand" states whether the command has an associated operand.
Default Description
In the command description, the DEFAULT section provides the default values for controller setup
parameters. These parameters can be changed and the new values can be saved in the controller's non-
volatile memory by using the command, BN. If the setup parameters are not saved in non-volatile
memory, the default values will automatically reset when the system is reset. A reset occurs when the
power is turned off and on, when the reset button is pushed, or the command, RS, is given.
When a master reset occurs, the controller will always reset all setup parameters to their default values
and the non-volatile memory is cleared to the factory state. A master reset is executed by the
command, <ctrl R> <ctrl S> <Return> OR
by powering up or resetting the controller with the MRST
jumper or dip switch on.
For example, the command KD is used to set the Derivative Constant for each axis. The default value
for the derivative constant is 64. If this parameter is not set by using the command KD, the controller
will automatically set this value to 64 for each axis. If the Derivative Constant is changed but not
saved in non-volatile memory, the default value of 64 will be used if the controller is reset or upon
DMC-1400 Series Command Reference Overview 3
power up of the controller. If this value is set and saved in non-volatile memory, it will be restored
upon reset until a master reset is given to the controller.
The default format describes the format for numerical values, which are returned when the command is
interrogated. The format value represents the number of digits before and after the decimal point.
Controller Usage
The controller usage indicates which models within the DMC-1400 Econo Series line support the
current command. Controllers referenced in this manual are the DMC-1410, DMC-1411, DMC-1412,
DMC-1414, DMC-1415, DMC-1416, DMC-1417 and DMC-1425. ALL indicates that all Econo
controllers support the specific command.
Servo Update Rates
The standard servo update period on all E-Series Motion Controllers is 1msec. To change the servo
update, use the command, TM. The controller firmware will allow operation down to 250 usec per
sample.
Fast Firmware (DMC-1415/1416/1425)
The DMC-1415, DMC-1416 and DMC-1425 motion controllers can operate in ‘fast mode’ that allows
operation down to 125 usec per sample.
In order to run the motion controller in fast mode, the fast firmware must be uploaded. This can be
done through the Galil terminal software such as DMCTERM and WSDK. Use the menu option,
"Update Flash EEPROM" to change the controller firmware. The fast firmware is included with the
controller utilities.
When operating in fast mode, there are functions that are disabled and/or altered.
Commands which are not Allowed when Operating in Fast Mode:
Command
Gearing Mode
Ecam Mode
Analog Feedback (AF)
Stepper Motor Operation (MT 2, -2, 2.5, -2.5)
Trippoints allowed only in thread 0
Tell Velocity Interrogation Command (TV)
Commands which are Altered when Operating in Fast Mode:
Command Modification
MT Command argument 2, 2.5, -2, -2.5 not valid
AD, AI, AM, AP, AR, AS, AT, AV, MC,
MF, MR, WC
Commands not allowed in thread 1
4 # DMC-1400 Series Command Reference
#
FUNCTION: Label (subroutine)
DESCRIPTION:
The # operator denotes the name of a program label (for example #Move). Labels can be up
to seven characters long and are often used to implement subroutines or loops. Labels are
divided into (a) user defined and (b) automatic subroutines. User defined labels can be
printed with LL and the number of labels left available can be queried with MG _DL.
The automatic subroutines include #CMDERR, #LIMSWI, #POSERR, #ININT, #AUTO,
and #MCTIME.
ARGUMENTS: #nnnnnnn where
nnnnnnn is a label name up to seven characters
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line No
Controller Usage
ALL
RELATED COMMANDS:
LL List labels
_
UL Labels left
JP Jump statement
JS Jump subroutine
EXAMPLES:
#Loop; JP#Loop, x=10 ;’wait until x becomes 10
#Move
PRX=1000
BGX
;’define a subroutine to move the x axis
AMX
EN
DMC-1400 Series Command Reference $ 5
$
FUNCTION: Hexadecimal
DESCRIPTION:
The $ operator denotes that the following string is in hexadecimal notation
ARGUMENTS: $nnnnnnnn.mmmm
n is up to eight hexadecimal digits (denoting 32 bits of integer)
m is up to four hexadecimal digits (denoting 16 bits of fraction)
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL
RELATED COMMANDS:
* Multiply (shift left)
/ Divide (shift right)
MG {$8.4} Print in hexadecimal
EXAMPLES:
x = $7fffffff.0000 ;’store 2147483647 in x
y = x & $0000ffff.0000 ;’store lower 16 bits of x in y
z = x & $ffff0000.0000 / $10000 ;’store upper 16 bits of x in z
6 & | DMC-1400 Series Command Reference
& |
FUNCTION: Bitwise Logical Operators AND and OR
DESCRIPTION:
The operators & and | are typically used with IF, JP, and JS to perform conditional jumps;
however, they can also be used to perform bitwise logical operations.
ARGUMENTS: n & m or n | m where
n and m are signed numbers in the range -2147483648 to 2147483647.
For IF, JP, and JS, n and m are typically the results of logical expressions such as (x > 2)
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL
RELATED COMMANDS:
@COM[n] Bitwise complement
IF If statement
JP Jump statement
JS Jump subroutine
EXAMPLES:
IF (x > 2) & (y = 4)
MG “true”
ENDIF
;x must be greater than 2 and y equal to 4 for the message to print
:MG 1 | 2
3.0000
:
;'Bitwise operation: 01 OR 10 is 11 = 3
DMC-1400 Series Command Reference ( ) 7
( )
FUNCTION: Parentheses (order of operations)
DESCRIPTION:
The parentheses denote the order of math and logical operations. Note that the controller
DOES NOT OBEY STANDARD OPERATOR PRECEDENCE. For example,
multiplication is NOT evaluated before addition. Instead, the controller follows left-to-
right precedence. Therefore, it is recommended to use parenthesis as much as possible.
ARGUMENTS: (n) where
n is a math (+ - * /) or logical (& |) expression
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL
RELATED COMMANDS:
+ - * / Math Operators
& | Logical Operators
EXAMPLES:
:MG 1 + 2 * 3
9.0000
:MG 1 + (2 * 3)
7.0000
:
8 ; DMC-1400 Series Command Reference
;
FUNCTION: Semicolon (Command Delimiter)
DESCRIPTION:
The semicolon operator allows multiple Galil commands to exist on a single line. It is used
for the following three reasons:
(1) To put comments on the same line as the command (BGX ;’begin motion)
(2) To compress DMC programs to fit within the program line limit (Note: use a
compression utility to do this. Do not program this way because it is hard to read.)
(3) To give higher priority to a thread. All commands on a line are executed before the
thread scheduler switches to the next thread.
ARGUMENTS: n; n; n; … where
n is a Galil command
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL
RELATED COMMANDS:
NO or ‘ comment
EXAMPLES:
BGX ;’comment
PRX=1000;BGX;AMX ;’Save program line space
#High
a = a + 1; b = b + 1
JP#High
#Low
c = c + 1
d = d + 1
JP#Low
;’#High priority thread executes twice as fast as #Low when run in
;’parallel
DMC-1400 Series Command Reference [ ] 9
[ ]
FUNCTION: Square Brackets (Array Index Operator)
DESCRIPTION:
The square brackets are used to denote the array index for an array, or to denote an array
name.
ARGUMENTS: mmmmmmmm[n] where
mmmmmmmm is the array name
n is the array index and is an integer between 0 and 7999
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL
RELATED COMMANDS:
DM Dimension Array
QU Print/Upload Array
EXAMPLES:
DM A[100] ;’define a 100 element array
A[0] = 3 ;’set first element to 3
MG A[0] ;’print element 0
QU A[] ;’print entire array
10 + - * / DMC-1400 Series Command Reference
+ - * /
FUNCTION: Math Operators
DESCRIPTION:
The addition, subtraction, multiplication, and division operators are binary operators (they
take two arguments and return one value) used to perform mathematical operations on
variables, constants, and operands.
ARGUMENTS: (n + m) or (n – m) or (n * m) or (n / m) where
n and m are signed numbers in the range -2147483648 to 2147483647
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL
RELATED COMMANDS:
( ) Parenthesis
EXAMPLES:
x = ((1 + (2 * 3)) / 7) - 2 ;’assign -1 to x
DMC-1400 Series Command Reference <, >, =, <=, >=, <> 11
<, >, =, <=, >=, <>
FUNCTION: Comparison Operators
DESCRIPTION:
The comparison operators are as follows:
< less than
> greater than
= equals
<= less than or equal
>= greater than or equal
<> not equals
These are used in conjunction with IF, JP, JS, ( ), &, and | to perform conditional jumps. The
result of a comparison expression can also be printed with MG or assigned to a variable.
ARGUMENTS: (n < m) or (n > m) or (n = m) or (n <= m) or (n >= m) or (n <> m) where
n and m are signed numbers in the range -2147483648 to 2147483647
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL
RELATED COMMANDS:
( ) Parentheses
IF If statement
JP Jump
JS Jump subroutine
EXAMPLES:
IF (x > 2) & (y = 4)
MG “true”
ENDIF
;x must be greater than 2 and y equal to 4 for the message to print
12 = DMC-1400 Series Command Reference
=
FUNCTION: Equals (Assignment Operator)
DESCRIPTION:
The assignment operator is used for three reasons:
(1) to define and initialize a variable (x = 0) before it is used
(2) to assign a new value to a variable (x = 5)
(3) to print a variable or array element (x= which is equivalent to MG x). MG is the
preferred method of printing.
ARGUMENTS: mmmmmmmm = n where
mmmmmmmm is a variable name and n is a signed number in the range -
2147483648 to 2147483647
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL
RELATED COMMANDS:
MG Print Message
EXAMPLES:
:x=5
:x=
5.0000
:MG x
5.0000
:
;’define and initialize x to 5
;’print x two different ways
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235

Galil DMC-1400 User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI