Galil DMC-1400 Bedienungsanleitung

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235

Zur Seite of

Richtige Gebrauchsanleitung

Die Vorschriften verpflichten den Verkäufer zur Übertragung der Gebrauchsanleitung Galil DMC-1400 an den Erwerber, zusammen mit der Ware. Eine fehlende Anleitung oder falsche Informationen, die dem Verbraucher übertragen werden, bilden eine Grundlage für eine Reklamation aufgrund Unstimmigkeit des Geräts mit dem Vertrag. Rechtsmäßig lässt man das Anfügen einer Gebrauchsanleitung in anderer Form als Papierform zu, was letztens sehr oft genutzt wird, indem man eine grafische oder elektronische Anleitung von Galil DMC-1400, sowie Anleitungsvideos für Nutzer beifügt. Die Bedingung ist, dass ihre Form leserlich und verständlich ist.

Was ist eine Gebrauchsanleitung?

Das Wort kommt vom lateinischen „instructio”, d.h. ordnen. Demnach kann man in der Anleitung Galil DMC-1400 die Beschreibung der Etappen der Vorgehensweisen finden. Das Ziel der Anleitung ist die Belehrung, Vereinfachung des Starts, der Nutzung des Geräts oder auch der Ausführung bestimmter Tätigkeiten. Die Anleitung ist eine Sammlung von Informationen über ein Gegenstand/eine Dienstleistung, ein Hinweis.

Leider widmen nicht viele Nutzer ihre Zeit der Gebrauchsanleitung Galil DMC-1400. Eine gute Gebrauchsanleitung erlaubt nicht nur eine Reihe zusätzlicher Funktionen des gekauften Geräts kennenzulernen, sondern hilft dabei viele Fehler zu vermeiden.

Was sollte also eine ideale Gebrauchsanleitung beinhalten?

Die Gebrauchsanleitung Galil DMC-1400 sollte vor allem folgendes enthalten:
- Informationen über technische Daten des Geräts Galil DMC-1400
- Den Namen des Produzenten und das Produktionsjahr des Geräts Galil DMC-1400
- Grundsätze der Bedienung, Regulierung und Wartung des Geräts Galil DMC-1400
- Sicherheitszeichen und Zertifikate, die die Übereinstimmung mit entsprechenden Normen bestätigen

Warum lesen wir keine Gebrauchsanleitungen?

Der Grund dafür ist die fehlende Zeit und die Sicherheit, was die bestimmten Funktionen der gekauften Geräte angeht. Leider ist das Anschließen und Starten von Galil DMC-1400 zu wenig. Eine Anleitung beinhaltet eine Reihe von Hinweisen bezüglich bestimmter Funktionen, Sicherheitsgrundsätze, Wartungsarten (sogar das, welche Mittel man benutzen sollte), eventueller Fehler von Galil DMC-1400 und Lösungsarten für Probleme, die während der Nutzung auftreten könnten. Immerhin kann man in der Gebrauchsanleitung die Kontaktnummer zum Service Galil finden, wenn die vorgeschlagenen Lösungen nicht wirksam sind. Aktuell erfreuen sich Anleitungen in Form von interessanten Animationen oder Videoanleitungen an Popularität, die den Nutzer besser ansprechen als eine Broschüre. Diese Art von Anleitung gibt garantiert, dass der Nutzer sich das ganze Video anschaut, ohne die spezifizierten und komplizierten technischen Beschreibungen von Galil DMC-1400 zu überspringen, wie es bei der Papierform passiert.

Warum sollte man Gebrauchsanleitungen lesen?

In der Gebrauchsanleitung finden wir vor allem die Antwort über den Bau sowie die Möglichkeiten des Geräts Galil DMC-1400, über die Nutzung bestimmter Accessoires und eine Reihe von Informationen, die erlauben, jegliche Funktionen und Bequemlichkeiten zu nutzen.

Nach dem gelungenen Kauf des Geräts, sollte man einige Zeit für das Kennenlernen jedes Teils der Anleitung von Galil DMC-1400 widmen. Aktuell sind sie genau vorbereitet oder übersetzt, damit sie nicht nur verständlich für die Nutzer sind, aber auch ihre grundliegende Hilfs-Informations-Funktion erfüllen.

Inhaltsverzeichnis der Gebrauchsanleitungen

  • Seite 1

    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: support@galilmc.com URL: www.galilmc.com Rev 8/06[...]

  • Seite 2

    ARRAYS CONTROL FEEDBACK MATH PROGRAM STEPPER DA deallocate DV dual loop AF analog feedback @ABS[n] | | BK bre akpoint 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 l[...]

  • Seite 3

    DMC-1400 Series Command Reference Contents ● i Contents CONTENTS ......................................................................................................................................................................... I OVERVIEW ......................................................................................................[...]

  • Seite 4

    ii • Contents DMC-1400 Series Comman d Reference BI ................................................................................................................................................. 38 BK ............................................................................................................................................... [...]

  • Seite 5

    DMC-1400 Series Command Reference Contents ● iii ER ................................................................................................................................................ 86 ES ................................................................................................................................................ [...]

  • Seite 6

    iv • Contents DMC-1400 Series Comman d Reference MF ............................................................................................................................................. 139 MG ............................................................................................................................................ 140 MO[...]

  • Seite 7

    DMC-1400 Series Command Reference ● v @SQR[n] ........................................................................................................................ .......... 187 ST .............................................................................................................................................. 188 @TAN[n] ........[...]

  • Seite 8

    [...]

  • Seite 9

    Overview Controller Notation This command reference is a supplement to the Galil Motion Contro l User Manual. For proper controller operation, co nsult the Users Manual. T his manual describes com mands 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 DM C-1425. [...]

  • Seite 10

    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 axi s. Fo r example, AC ? returns the acceleration of the a xis. Ot[...]

  • Seite 11

    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 for mat describes the form at for nume rical values, which are ret urned when th e command is interrogate d. The form at value[...]

  • Seite 12

    4 ● # DMC-1400 Series Command Reference # FUNCTION: Label (subroutine) DESCRIPTION: The # operator denotes the na me of a pro gram label (for exam ple #Move). La bels can be u p to seven characters long and are often used to implement subroutines or loops. Labels are divided i nto (a) user defined and (b) aut omatic sub routines. Use r define d l[...]

  • Seite 13

    DMC-1400 Series Command Reference $ ● 5 $ FUNCTION: Hexadecim al DESCRIPTION: The $ operato r denotes that the followi ng string is in hexa decimal notation ARGUMENTS: $nnnnnnnn.mmmm n is up to eight hexadecimal dig its (denoting 32 bits of integer) m is up to four hexadecimal dig its (denoting 16 b its of fraction) USAGE: DEFAULTS: While Moving [...]

  • Seite 14

    6 ● & | DMC-1400 Series Co mmand Reference & | FUNCTION: Bitwise Logical Operators AND and OR DESCRIPTION: The operators & and | are typica lly used with IF, JP, and JS to perform conditional jumps; however, they can also be use d to perform bitwise logical operations. ARGUMENTS: n & m or n | m where n and m are signed numbers in [...]

  • Seite 15

    DMC-1400 Series Command Reference ( ) ● 7 ( ) FUNCTION: Parentheses (order of ope rations) DESCRIPTION: The parenthese s denote the order of m ath and logical o perations. Note tha t the controll er DOES NOT OBEY STANDARD OPERATOR PRECEDENCE. For example, multiplication is NOT evalu ated before addition. Instead, the controller follows left-to- r[...]

  • Seite 16

    8 ● ; DMC-1400 Series Command Referen ce ; FUNCTION: Semicolon (Co mmand Delim iter) DESCRIPTION: The semicolon operator allows multiple Galil command s 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 pr[...]

  • Seite 17

    DMC-1400 Series Command Reference [ ] ● 9 [ ] FUNCTION: Square Brackets (Array In dex Operator) DESCRIPTION: The square brack ets are used to denote the array index fo r an array, or to denote an ar ray name. ARGUMENTS: mmmmmmmm[n] wh ere mmmmmmmm is the array nam e n is the array i ndex and i s an inte ger between 0 and 7999 USAGE: DEFAULTS: Whi[...]

  • Seite 18

    10 ● + - * / DMC-1400 Series Command Reference + - * / FUNCTION: Math Operators DESCRIPTION: The addition, sub traction, m ultiplication, an d division operators are binary operators (they take two arg uments and ret urn one value ) us ed to perform mathematical operations on variables, constan ts, and operands. ARGUMENTS: (n + m) or ( n – m) o[...]

  • Seite 19

    DMC-1400 Series Command Reference <, >, =, <=, >=, <> ● 11 <, >, =, <=, >=, <> FUNCTION: Comparison Operat ors 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 conjuncti on w[...]

  • Seite 20

    12 ● = DMC-1400 Series Co mmand Reference = FUNCTION: Equals ( Assignment Ope rator) DESCRIPTION: The assignment ope rator is used fo r 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= wh ich is equ ivalent to MG x). MG is [...]

  • Seite 21

    DMC-1400 Series Command Reference AB ● 13 AB FUNCTION: Abort DESCRIPTION: AB (Abort) stops a motion instantly withou t a co ntrolled deceleration. If there is a progra m operating, AB also aborts the pro gram unless a 1 argum ent is specified. The comm and, AB, will shut off the motors for any axis in which the off-on-error fun ction is enabled ([...]

  • Seite 22

    14 ● @ABS[n] DMC-1400 Series Command Reference @ABS[n] FUNCTION: Absolute va lue DESCRIPTION: Takes the absolute value of the given number. Returns the value if positive, and returns -1 times the value if negativ e. ARGUMENTS: @ABS[n] where n is a signed number in the rang e -2147483647 to 2147483647 USAGE: DEFAULTS: While Moving Yes Default Valu[...]

  • Seite 23

    DMC-1400 Series Command Reference AC ● 15 AC FUNCTION: Acceleration DESCRIPTION: The Acceleration (AC) command se ts the linear acceleration rate for independent moves, such as PR, PA and JG moves. T he param eters input will be rounded down to the nearest factor of 1024. The un its of the param ete rs are counts per second square d. The accelera[...]

  • Seite 24

    16 ● @ACOS[n] DMC-1400 Series Command Reference @ACOS[n] FUNCTION: Inverse cosine DESCRIPTION: Returns in de grees the arc cosine of t he given num ber. ARGUMENTS: @AC OS[n] where n is a signed n umber in the ra nge -1 t o 1. USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller Usage ALL [...]

  • Seite 25

    DMC-1400 Series Command Reference AD ● 17 AD FUNCTION: After Distance DESCRIPTION: The After Distance (AD) command is a trippoint used to control the timing of events. This command will hold up the ex ecution of the following command until one of the following conditions have been met: 1. The commanded motor position cro sses the specified relati[...]

  • Seite 26

    18 ● AF DMC-1400 Series Command Reference A F FUNCTION: Analog Feedback DESCRIPTION: The Analog Feedback (AF ) command is us ed to set an axis w ith analog feed back instea d of digital feedbac k (quadrature/p ulse dir). As the analog feedback is decode d by a 12-bit A/D converter, an input vo ltage of 10 volts is decoded as a position of 2047 co[...]

  • Seite 27

    DMC-1400 Series Command Reference AI ● 19 AI FUNCTION: After Input DESCRIPTION: The AI command is used in motion programs to wait until after the sp ecified input has occurred. If n is positive, it waits for the input to go high. If n is negative, it waits for n to go low. ARGUMENTS: AI +/-n where n is an i nteger i n the range 1 to 7 decim al fo[...]

  • Seite 28

    20 ● AL DMC-1400 Series Command Reference AL FUNCTION: Arm Latch DESCRIPTION: The AL command enables the latching function (high speed position capture) of the controller. When the AL command is used to arm the position latch, the encod er position of the main encoder input will be captured upon a low going signal on Input 1. The command RL retur[...]

  • Seite 29

    DMC-1400 Series Command Reference AM ● 21 AM FUNCTION: After M ove DESCRIPTION: The AM command is a trippoint us ed to control the timing of events. This command will hold up execution of the follo wing commands until the current move on the specified axis or axes is completed. AM occurs when the pr ofiler is finished generating the last position[...]

  • Seite 30

    22 ● @AN[n] DMC-1400 Series Com mand Reference @AN[n] FUNCTION: Read analog input DESCRIPTION: Returns the value of the given analog inpu t in volts ARGUMENTS: @AN[n] where n is an unsigned integer in the range 1 to 8 USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller Usage ALL RELATED [...]

  • Seite 31

    DMC-1400 Series Command Reference AO ● 23 AO FUNCTION: Analog Out DESCRIPTION: The AO command sets the analog output voltage of Modbus Devices connected via Ethernet. ARGUMENTS: AO m, n where m is the I/O number calculated using the following equations: m = (Slav eAddress*10000) + (HandleNu m *1000) + ((Modu le-1)*4) + (Bitnum-1) Slave Address is[...]

  • Seite 32

    24 ● AP DMC-1400 Series Command Reference AP FUNCTION: After Absolute Position DESCRIPTION: The After Position (AP) command is a trippoin t us ed to control the timing of events. This command will hold up the ex ecution of the following command until one of the following conditions have been met: 1. The commande d motor position crosses the speci[...]

  • Seite 33

    DMC-1400 Series Command Reference AR ● 25 AR FUNCTION: After Relative Distance DESCRIPTION: The After Relative (AR) command is a trippoint used to control the timing of events. This command will hold up the ex ecution of the following command until one of the following conditions have been met: 1. The commanded motor position cro sses the specifi[...]

  • Seite 34

    26 ● AS DMC-1400 Series Command Reference AS FUNCTION: At Speed DESCRIPTION: The AS command is a trippoint that occ urs wh en the generated motion profile has reached the specified speed. This command will ho ld up execution of the following command until the speed is reached. The AS command will operate after ei ther accelerating or decelerating[...]

  • Seite 35

    DMC-1400 Series Command Reference @ASIN[n] ● 27 @ASIN[n] FUNCTION: Inverse sine DESCRIPTION: Returns in de grees the arc sine of the given num ber. ARGUMENTS: @A SIN[n] where n is a signed num ber in the range -1 to 1. USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller Usage ALL RELATED[...]

  • Seite 36

    28 ● AT DMC-1400 Series Command Reference AT FUNCTION: At Time DESCRIPTION: The AT command is a trippoint which is used to ho ld up execution of the next command until after the specified time has el apsed. The time is measured with respect t o a defined reference time. AT 0 establishes the initial reference. AT n specifies n msec from the refere[...]

  • Seite 37

    DMC-1400 Series Command Reference @ATAN[n] ● 29 @ATAN[n] FUNCTION: Inverse tangent DESCRIPTION: Returns in degrees the arc tangent of the given nu m ber. ARGUMENTS: @ATAN[n] n is a signed number in the rang e -2147483647 to 2147483647 USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller U[...]

  • Seite 38

    30 ● #AUTO DMC-1400 Series Comma nd Reference #AUTO FUNCTION: Subrout ine to run automat ically upon power up DESCRIPTION: #AUTO de notes code t o run autom atically whe n power is applied to t he control ler, or a fter the controller is reset. Whe n no host softwa re is used with the con troller, #AUTO and the BP command are require d to run an [...]

  • Seite 39

    DMC-1400 Series Command Reference #AUTOERR ● 31 #AUTOERR FUNCTION: Automatic subroutine for notifica tion of EEPROM checksum errors DESCRIPTION: #AUTOERR will run cod e upon power up if data in the EEPROM has been corrupted. Th e EEPROM is c onsidered corr upt if the checksum calcul ated on the bytes in the EEPROM do not match the checksum writte[...]

  • Seite 40

    32 ● AV DMC-1400 Series Command Reference A V FUNCTION: After Vector Distance DESCRIPTION: The AV command is a trippoint which is used to ho ld up execution of the next command during coordinated moves such as VP,CR or LI. This trippoint occur s when the path distance of a sequence reaches the specified va lue. The distance is measure d from the [...]

  • Seite 41

    DMC-1400 Series Command Reference BA ● 33 B A FUNCTION: Brushl ess Axis DESCRIPTION: The BA command sets the contro ller up for sinusoidal commutation of the axis. Th is command enables the se cond DAC for us e as the second phas e of commutatio n. ARGUMENTS: BAX w here X specifies sinusoidal comm utation for the axis. No argum ent clears all axe[...]

  • Seite 42

    34 ● BB DMC-1400 Series Command Reference BB FUNCTION: Brushl ess Phase Begi ns DESCRIPTION: The BB function describes the position offset between the Hall transition point and θ = 0, for sinusoidally commutated motor. This command must be saved in non-vo latile m emory to be effective upon reset. ARGUMENTS: BB x wh ere x represents the phase o [...]

  • Seite 43

    DMC-1400 Series Command Reference BC ● 35 B C FUNCTION: Brushless Calibration DESCRIPTION: The function BC monitors the status of the Hall sensors of a sinusoidally commutated motor, and upon transition, replaces the estimated value of a commutated phase by an exact value. ARGUMENTS: BC USAGE: While Moving Yes Default Value 0 In a Program Yes Def[...]

  • Seite 44

    36 ● BD DMC-1400 Series Command Reference BD FUNCTION: Brushless De grees DESCRIPTION: This command sets the commu tation phase of a sinusoidally commutated motor. When using hall effect sensors, a more accurate value for this parameter can be set by using the command, BC. This comm and should not be use d except when the user is creati ng a spec[...]

  • Seite 45

    DMC-1400 Series Command Reference BG ● 37 BG FUNCTION: Begin DESCRIPTION: The BG command starts a motion. When Used as an Op erand, the BG command will return a 1 if there is a commanded motion in progress , a 0 otherwi se. ARGUMENTS: B G USAGE: While Moving Yes Default Value --- In a Program Yes Default Format --- Command Line Yes Can be Interro[...]

  • Seite 46

    38 ● BI DMC-1400 Series Com mand Reference B I FUNCTION: Brushl ess Inputs DESCRIPTION: The BIx indicates the starting number for the input lines to which the Hall sensors have been wired for sinusoidally co mm utated motors. These inputs must be the general use inputs (bits 1-7). The Hall sensors of the motor must be connected with consecutive n[...]

  • Seite 47

    B K FUNCTION: Breakpoint DESCRIPTION: For debuggi ng. Cause s the co ntroller to pause exec ution of t he given threa d at the gi ven program l ine number (whi ch is n ot executed) . All othe r threads c ontinue r unning. Only one breakpoi nt may be arm ed at any ti me. After a breakpoint i s encounte red, a new breakpoint can be armed (to continue[...]

  • Seite 48

    40 ● BL DMC-1400 Series Command Reference BL FUNCTION: Reverse Soft ware Limit DESCRIPTION: The BL command sets the reverse software limit. If t his limit is exceeded during a commanded motion, the motion will decelerate to a st op. Reverse motion beyond this limit is not permitted . The reverse limit is activated at position n-1. To disab le the[...]

  • Seite 49

    DMC-1400 Series Command Reference BM ● 41 BM FUNCTION: Brushl ess Modul o DESCRIPTION: The BM comm and defines the length of the ma gnetic cycle in e ncoder counts. ARGUMENTS: BM x where x is a decimal valu e between 1 and 1000000 with a resolution of 1/10 that represents th e magnetic cycles of the brushless motor. This value can also be specifi[...]

  • Seite 50

    42 ● BN DMC-1400 Series Command Reference BN FUNCTION: Burn DESCRIPTION: The BN command saves certain controller parameters in non-volatile EEPROM memory. This command typically takes 1 second to execute and must not be interrupted. The controller returns a: when the Burn is complete. PARAMETERS SAVED DURING BURN: AC CW IA PF AF DC IL BA DV IT SB[...]

  • Seite 51

    DMC-1400 Series Command Reference BO ● 43 BO FUNCTION: Brushl ess Offset DESCRIPTION: The BOx sets a fixed offset on the DAC' s of a sinusoidally comm utated motor. This may be used to offset any bias in the am plifier, or can be used for phase initializatio n. ARGUMENTS: B Ox,x whe re x specifies the voltage as a real value bet ween -10 a n[...]

  • Seite 52

    44 ● BP DMC-1400 Series Command Reference B P FUNCTION: Burn Program DESCRIPTION: : The BP command saves th e application prog ram in non-volatile EEPROM mem ory. This command ty pically ta kes up to 10 sec onds to execut e and m ust not be int errupted. The controller returns a : when the Bu rn is complete. ARGUMENTS: None USAGE: While Moving No[...]

  • Seite 53

    DMC-1400 Series Command Reference BS ● 45 BS FUNCTION: Brushl ess Setup DESCRIPTION: The command BS tests the wiring of a sinus oida lly commutated brushless m otor. If no Hall sensors are connected, the function tests the wi rin g of the DAC' s. If Hall sens ors are connected, the function also te sts the wiring of the Hall sensors. The fir[...]

  • Seite 54

    46 ● BV DMC-1400 Series Command Reference BV FUNCTION: Burn Variables and Array DESCRIPTION: The BV command saves the defin ed variables and arrays in non-volatile EEPROM memory. This command typically takes up to 2 seconds to execute and must not be interrupted. The controller returns a : when the Burn v ariables is complete. Operand returns siz[...]

  • Seite 55

    DMC-1400 Series Command Reference BZ ● 47 B Z FUNCTION: Brushl ess Zero DESCRIPTION: The BZ comm and is whe n the contr oller is con figured f or sinusoidal comm utation. This command drives the motor to zero magnetic phase and th en sets the commutation phase to zero. This comm and may be gi ven whe n the mot or is off. ARGUMENTS: B Z x where x [...]

  • Seite 56

    48 ● CB DMC-1400 Series Command Reference CB FUNCTION: Clear Bit DESCRIPTION: The CB command clears one of three bits on the outpu t port sets the output to logic 0. The CB and SB (Set Bit) instructions can be used to con trol the state of output lines. ARGUMENTS: CB n, where n is an int eger correspo nding t o a specific ou tput on the co ntroll[...]

  • Seite 57

    DMC-1400 Series Command Reference CC ● 49 CC FUNCTION: Configure Communicat ions Port 2 DESCRIPTION: : The CC comm and configures baud rate, handshake, ec ho, and daisy c hain feature s for the AUX SERIAL PORT, refe rred to as Po rt 2. This c ommand m ust be given before usi ng the MG, IN or CI comm ands wi th Port 2. ARGUMENTS: CC m ,n,r,p m - B[...]

  • Seite 58

    50 ● CD DMC-1400 Series Command Reference CD FUNCTION: Contour Data DESCRIPTION: The CD command specifies the incremental position. Th e units of the command are in quadrature counts fo r servo m ode, steps for stepper m ode. Thi s comma nd is used o nly in the Contour Mode (CM ). ARGUMENTS: C D n where n is an integer in the range of +/-32762 US[...]

  • Seite 59

    DMC-1400 Series Command Reference CE ● 51 CE FUNCTION: Config ure Encode r DESCRIPTION: The CE command configures the encoder input s to t he quadrature t ype or the p ulse and direction type. It also allows inverting th e polarity of the encoders. The co nfiguration applies independently to the main ax is encoder and the auxiliary encoder inputs[...]

  • Seite 60

    52 ● CF DMC-1400 Series Command Reference CF FUNCTION: Configure DESCRIPTION: The CF command is used to specify the co mm unication port to which unsolicited responses are sent. By default, the DMC-1415/1416/1425 will send unso licited responses to the serial port. ARGUMENTS: CF n where n is A thru F for Ethernet handles 1 thru 6, S for Main seri[...]

  • Seite 61

    DMC-1400 Series Command Reference CI ● 53 CI FUNCTION: Comm unication Inter rupt DESCRIPTION: The CI command configures a pr ogram interr upt based on charact e rs received on either Port 1, the MAIN serial port, or Por t 2, the AUX serial port. An interru pt causes program flow to jump to the #COMINT subroutine labe l. If multiple program thread[...]

  • Seite 62

    54 ● CM DMC-1400 Series Com mand Reference CM FUNCTION: Cont ouring Mode DESCRIPTION: The Contour Mode is initiated by the instruction CM. This mode allows the generation of an arbitrary motion trajector y. The C D command specifies the po sition increment, and the DT command specifies th e tim e interval. The CM? or _ CM commands can be used t o[...]

  • Seite 63

    DMC-1400 Series Command Reference #CMDERR ● 55 #CMDERR FUNCTION: Command error automatic subroutin e DESCRIPTION: Without #CM DERR define d, if an err or (see TC comm and) occur s in an appli cation program running on the Galil controller, the program (all threads) will stop. #CMDERR allows the program mer to ha ndle the err or by run ning code i[...]

  • Seite 64

    56 ● CN DMC-1400 Series Command Reference CN FUNCTION: Configure DESCRIPTION: The CN command configures the pola rity of the limit switches, the home switch and the latch input. ARGUMENTS: C N m,n,o where m,n,o are integers with values 1 or -1. m = 1 Limit switches active high -1 Limit switches active low n = 1 Home switch configured to drive mot[...]

  • Seite 65

    DMC-1400 Series Command Reference CO ● 57 C O FUNCTION: Configure Out puts DESCRIPTION: The CO command configures the extende d I/O in bloc ks of 8. ARGUMENTS: C O n where n is a decim al value which represents a binary number. Ea ch bit of the binary n umber represents one block of ext ended I/ O. When set t o 1, the c orrespondin g block is con[...]

  • Seite 66

    58 ● @COM[n] DMC-1400 Series Comma nd Reference @COM[n] FUNCTION: Bitwise complement DESCRIPTION: Performs the bitwise com plement (NOT) operat ion to the given number ARGUMENTS: @COM[n] where n is a signed integer in the range -2147483647 to 2147483647. The integer is interpreted as a 32-bit field. USAGE: DEFAULTS: While Moving Yes Default Value[...]

  • Seite 67

    DMC-1400 Series Command Reference #COMINT ● 59 #COMINT FUNCTION: Comm unication inte rrupt aut omatic sub routine DESCRIPTION: #COMINT can be c onfigured by the CI com ma nd to run either when any character or a carriage return is receive d on the auxiliary se rial port. CI,1 m ust be issued to use #COMINT . USAGE: While Moving Yes In a Program Y[...]

  • Seite 68

    60 ● @COS[n] DMC-1400 S eries Command Reference @COS[n] FUNCTION: Cosine DESCRIPTION: Returns the co sine of the gi ven angle i n degrees ARGUMENTS: @COS[n] where n is a signed number in degr ees in the range -2147483648 to 2147483647 . USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller[...]

  • Seite 69

    DMC-1400 Series Command Reference CR ● 61 C R FUNCTION: Circle DESCRIPTION: The CR command specifies a 2-dimensional arc segment of radius, r, starting at angl e, θ , and traversing over angle ∆ θ . A positive ∆ θ denotes counterclockwise traverse, negative ∆ θ denotes clockwi se. The VE com mand m ust be used to denote the end of the m[...]

  • Seite 70

    62 ● CS DMC-1400 Series Command Reference C S FUNCTION: Clear Se quence DESCRIPTION: The CS command will remove VP, CR or LI commands stored in a motion sequence for the coordinate sy stem. A fter a seque nce has been e xecuted, the CS comm and is not necessary to put in a new sequence. This command is useful when you have incorrectly specified V[...]

  • Seite 71

    DMC-1400 Series Command Reference CW ● 63 CW FUNCTION: Copyright information / Data Adjustment bit on/off DESCRIPTION: The CW command has a dual u sage. The CW command will return the copyright information when the arg ument, n is 0 . Otherwise, t he CW com mand is use d as a comm unications enhancement for use by t he Servo Desig n Kit soft ware[...]

  • Seite 72

    64 ● DA DMC-1400 S eries Command Reference DA FUNCTION: Deallocate the Va riables & Arrays DESCRIPTION: The DA command frees the array and/or vari able memory space. In t his command, more than one array or variable ca n be specified for mem ory de-allocation. Di fferent array s and variables are s eparated by commas when sp ecified in one co[...]

  • Seite 73

    DMC-1400 Series Command Reference DC ● 65 DC FUNCTION: Deceleration DESCRIPTION: The Deceleration command (DC) se ts the linear deceleration rate for i ndependent moves such as PR, PA and JG moves. The parameters will be rounded down to the nearest factor of 1024 and have un its of counts per second squared. ARGUMENTS: DC n where n is an un signe[...]

  • Seite 74

    DE FUNCTION: Dual (Auxiliary) Encoder Positio n DESCRIPTION: The DE n command defines the position of the auxiliary encoder. The DE n command defi nes the encoder posi tion when used wi th stepper m otors. Note: The auxiliary encoder is not av ailable for the stepper axis. ARGUMENTS: DE n where n is a signed integer in th e range -2147483648 to 214[...]

  • Seite 75

    DMC-1400 Series Command Reference DL ● 67 DL FUNCTION: Download DESCRIPTION: The DL comm and transfers a data file from the host comput er to the DM C-14XX. Instructions in the file will be accepted as a datastream without line numbers. The file is terminated using <control> Z, <control> Q, <control> D, or . DO NOT insert space[...]

  • Seite 76

    68 ● DM DMC-1400 Series Com mand Reference DM FUNCTION: Dimensi on DESCRIPTION: The DM comm and defines a single dim ensional array with a nam e and n tota l elements. The first element of the defined array starts with element number 0 and th e last elem ent is at n-1. ARGUMENTS: DM c[n] whe re c is a name of up to eight alphanumeric cha r acters[...]

  • Seite 77

    DP FUNCTION: Define Position DESCRIPTION: The DP command sets the current motor position and current co mm and positions to a user specified value. The units are in quadratur e counts. Th is command will set both the TP and RP values. The DP comm and sets the co mmanded refe rence posi tion in ste pper mode . The unit s are in steps. Example: DP0. [...]

  • Seite 78

    70 ● DT DMC-1400 Series Command Reference DT FUNCTION: Delta Time DESCRIPTION: The DT command sets the time interval for Contou ring Mode. Sending the DT command once will set the time interval for all following co ntour data until a new DT command is sent. 2 n samples is the time interval. Sending DT0 followed by CD0 comman d terminates the Cont[...]

  • Seite 79

    DMC-1400 Series Command Reference DV ● 71 DV FUNCTION: Dual Velocity (Dual Loop) DESCRIPTION: The DV function changes the operation of the PID servo filter. It causes the KD (derivative) term to oper ate on the d ual encoder i nstead of the main encode r. To take advantage of this mode, m ount the m ain encoder to the load and t he dual encoder t[...]

  • Seite 80

    72 ● EA DMC-1400 Series Command Reference E A FUNCTION : Choose ECAM master DESCRIPTION : The EA command selects the master axis for the electronic cam mode. Any axis m ay be chosen. Note: This command is only used with the DMC-1425. All other Econo series controllers use the auxiliary encoder as the master automatically. ARGUMENTS : EA x where x[...]

  • Seite 81

    DMC-1400 Series Command Reference EB ● 73 EB FUNCTION: Enable ECAM DESCRIPTION: The EB function enables or disables the cam mode. In this mode, the starting position of the master axis is specified within the cycle. When the EB command i s given, the mast er axis is m odularized. ARGUMENTS : EB n where n = 1 starts ca m mode and n = 0 stops cam m[...]

  • Seite 82

    74 ● EC DMC-1400 Series Command Reference E C FUNCTION: ECAM Counter DESCRIPTION: The EC functi on sets the i ndex into t he ECAM t able. This com mand is only useful when entering ECA M table values without inde x values and is most useful when sendin g commands i n binary. See the comm and, ET. ARGUMENTS : EC n where n is an inte ger betwee n 0[...]

  • Seite 83

    DMC-1400 Series Command Reference ED ● 75 ED FUNCTION: Edit DESCRIPTION: Using Galil DOS Termi nal Software: The ED command puts the controller into the Edit subsystem . In the Edit subsystem , program s can be created, cha nged or destroyed. The commands in the Edit subsystem are: <cntrl>D Deletes a lin e <cntrl>I Inserts a line be f[...]

  • Seite 84

    76 ● EG DMC-1400 Series Command Reference EG FUNCTION : ECAM go (engage) DESCRIPTION: The EG command engages an ECAM operation at a specified position of the m aster encoder. If a value is specified outside of the master’s range, the slave will engage immediately. Once a slave motor is eng aged, its positio n is redefined to fit within the cycl[...]

  • Seite 85

    DMC-1400 Series Command Reference EI ● 77 EI FUNCTION: Enable Interrupts DESCRIPTION: The EI command enables an ISA, PC/104 or PCI bus interrupt on cond itions such as motion complete or excess positional error. The conditio ns are selected by the parameter m where m is the bit mask for the selected conditions as shown below. Prior to using the E[...]

  • Seite 86

    78 ● ELSE DMC-1400 Series Com mand Reference ELSE FUNCTION : Else function for use with IF condition al statement DESCRIPTION : The ELSE command is an optio nal part of an IF conditional statement. The ELSE command must occur after a n IF command and it has no ar guments. It allows for t he execution of a command onl y when the a rgument of the I[...]

  • Seite 87

    DMC-1400 Series Command Reference EM ● 79 EM FUNCTION : Cam cycles DESCRIPTION : The EM command is part of the ECAM mode. It is used to defi ne the change in position over one complete cycle of t he master. The field fo r the master axis is th e cycle of the m aster position. For the slav e, the field defines the net change in one cycle. If a sla[...]

  • Seite 88

    80 ● EN DMC-1400 Series Command Reference EN FUNCTION: End DESCRIPTION: The EN command is us ed to designate the end of a program or subroutine. If a subroutine was called by t he JS comm and, the EN com mand ends the subrouti ne and returns program flow to the point just after the JS command. The EN command is also used to end the au tomatic sub[...]

  • Seite 89

    DMC-1400 Series Command Reference EN ● 81 EXAMPLES: #A Program A PR 500 Move X axis forward 500 counts BGX Pause the program until the X ax is completes the motion AMX Move X axis forward 1000 counts PR 1000 Set another Position Relative move BGX Begin motion EN End of Program Note: Instead of EN, use the RE command to end the error subroutin e a[...]

  • Seite 90

    82 ● ENDIF DMC-1400 Series Com mand Reference E N D I F FUNCTION: End of IF conditional statement DESCRIPTION: The ENDIF command is used to designate the en d of an IF conditi onal statement. An IF conditional statement is formed by the co m bination of an IF and ENDIF command . An ENDIF command must always be executed f or every IF c ommand t ha[...]

  • Seite 91

    DMC-1400 Series Command Reference EO ● 83 EO FUNCTION: Echo DESCRIPTION: The EO comm and turns the ec ho on or off. If the echo is off, characters input over t he bus will not be echo ed back. ARGUMENTS: EO n where n=0 or 1. 0 tu rns echo of f, 1 turns ec ho on. USAGE: While Moving Yes Default Value (DMC-1410/1411/1417) 0 In a Program Yes Default[...]

  • Seite 92

    84 ● EP DMC-1400 Series Command Reference EP FUNCTION : Cam table master interval and phase shift DESCRIPTION: The EP command defines th e ECAM table master interval and phase shift. The interval m is the difference in master position between table entries. The phase shift n instantan eously moves the graph of slave position versus master positio[...]

  • Seite 93

    DMC-1400 Series Command Reference EQ ● 85 EQ FUNCTION : ECA M quit (d isengag e) DESCRIPTION: The EQ command disengag es an electronic cam slav e axis at the specified master position. If a value is specified outside of the master’s range, the slave will disengag e immediately. ARGUMENTS: EQ n where n is the master position at which the ax is i[...]

  • Seite 94

    86 ● ER DMC-1400 Series Command Reference ER FUNCTION: Error Lim it DESCRIPTION: The ER command sets the magnitud e of the positio n error that will trigger an error condition. When the limit is exceeded, the Error ou tput will go low (true). If the Off-On-Error (OE1) command is active, the motors will be disabled. The un its of ER are quadrature[...]

  • Seite 95

    DMC-1400 Series Command Reference ES ● 87 E S FUNCTION: Ellipse Scale DESCRIPTION: The ES comm and divides the resoluti on of one of the axes in a vecto r mode (VM ). This function all ows for t he generat ion of circ ular motion when encode r resolut ions differ . It also allows for the generation of an ellipse instead of a circle. The comm and [...]

  • Seite 96

    88 ● ET DMC-1400 Series Comma nd Reference ET FUNCTION : Electronic cam table DESCRIPTION: The ET command sets the ECAM tab le entries for the slave axis. The values of the m aster are not require d. The sla ve entry (n) i s the pos iti on of the slave when the master is at the point (n ∗ i) + o, where i is the interval and o is the offset as d[...]

  • Seite 97

    DMC-1400 Series Command Reference FA ● 89 FA FUNCTION: Acceleration Feedforward DESCRIPTION: The FA command sets the acceleration feedforwar d coefficient, or returns the previou sly set value. This coefficient, when scaled by the acceleration, a dds a torque bi as voltage during the acceleration phase and s ubtracts th e bias during the decelera[...]

  • Seite 98

    90 ● FE DMC-1400 Series Comman d Reference FE FUNCTION: Find Edge DESCRIPTION: The FE command moves a motor until a transition is seen on the hom ing input fo r that axis. The direction of motion depends on the initial state of the homing input (use the CN command to configure the polarity of the home input). Once the transition is detected, the [...]

  • Seite 99

    DMC-1400 Series Command Reference FI ● 91 FI FUNCTION: Find Index DESCRIPTION: The FI and BG commands move the motor until an enco der index pulse is detected. The controller looks for a transition from low to high. When the transition is detected, motion stops and the position is defined as zero. To im prove accuracy, the sp eed during the searc[...]

  • Seite 100

    92 ● FL DMC-1400 S eries Command Reference FL FUNCTION: Forwar d Software Lim it DESCRIPTION: The FL command sets the forward soft ware pos ition lim it. If this limit is exceeded during motion, the m otor will decelerate to a stop . Forward motion beyond this limit is not permitted. The forward limit is activ ated at position n + 1. The forward [...]

  • Seite 101

    DMC-1400 Series Command Reference @FRAC[n] ● 93 @FRAC[n] FUNCTION: Fractional part DESCRIPTION: Returns the fracti onal part of the given number ARGUMENTS: @FRAC [n] n is a signed num ber in the range -2147483648 to 2147483647. USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller Usage AL[...]

  • Seite 102

    94 ● FV DMC-1400 Series Comman d Reference FV FUNCTION: Velocity Feedforward DESCRIPTION: The FV command sets the velocity feedforward coe fficient, or returns the pre viously set value. This coefficient generates an output bias signal in proportion to the commanded velocity. Velocity feedf orward bias = 1.22 ⋅ 10 -6 ⋅ FV ⋅ Velocity [in ct/[...]

  • Seite 103

    DMC-1400 Series Command Reference GA ● 95 G A FUNCTION: Master Axis for Gearing DESCRIPTION: The GA command specifies the m aster axes for electronic gearing. Note: This command is only valid for the DMC-1425. All other Econo series controllers must us e the auxiliary encoder as the master. The master axis of the DMC-1425 must be either the X or [...]

  • Seite 104

    96 ● GN DMC-1400 Series Command Referen ce G N FUNCTION: Gain DESCRIPTION: The GN command sets the gain of the con trol loop or ret urns the prev iously set value. It fits in the z-transform control equatio n as follows: D(z) = GN(z-ZR)/z ARGUMENTS: GN n w here n is an unsigned in teger in the range 0 to 2047 decimal. "?" returns the v [...]

  • Seite 105

    DMC-1400 Series Command Reference GM ● 97 G M FUNCTION: Gant ry mode DESCRIPTION: The GM comm and specifies t he axes in whi ch the gearin g function is perform ed in the Gant ry mode. In this mode, the gearing will not stop by the ST command or by limit switches. Only GR0 will stop the gearing in th is m ode. ARGUMENTS: GM n or GMX=n where n = 0[...]

  • Seite 106

    98 ● GR DMC-1400 Series Command Referen ce GR FUNCTION: Gear Ratio DESCRIPTION: GR specifies the Gear Ratios for t he slave axis in the electronic gear ing mode. The ma ster axis for the DMC-1425 is specified with th e GA comm and. For all 141X cont rollers, t he master axis need not be set. Simply assign a ratio GRN to gear the x axis to the du [...]

  • Seite 107

    DMC-1400 Series Command Reference HM ● 99 HM FUNCTION: Home DESCRIPTION: The HM command perform s a three-stage homing sequence for servo systems and two st age sequence for stepp er m otor operation. For servo motor operation, the first stage consists of the motor moving at the user programmed speed until detecting a transition on the homing inp[...]

  • Seite 108

    HX FUNCTION: Halt Execution DESCRIPTION: The HX command halts the execu tion of any of the two programs that may be running independently in m ultitasking. Th e parameter n specifies either program to be halted. ARGUMENTS: HX n w here n is either 0 or 1 to indicate the task number USAGE: While Moving Yes Default Value n = 0 In a Program Yes Default[...]

  • Seite 109

    DMC-1400 Series Command Reference IA ● 101 I A FUNCTION: IP Address DESCRIPTION: The IA command assigns the cont roller with an IP add ress. The IA command may also be used to specify th e time out value. This is only applicable when using the TCP/IP protocol . The IA command can only be use d via RS-232 . Since it assigns an IP a ddress to the c[...]

  • Seite 110

    102 ● IF DMC-1400 Series Command Reference I F FUNCTION: IF conditional statement DESCRIPTION: The IF command is used in conjun ction with an ENDIF command to form an IF conditional statement. The arguments are one or more conditional statements. If the condition al statement(s) evaluates true, the command interpreter will continue executing comm[...]

  • Seite 111

    DMC-1400 Series Command Reference IH ● 103 IH FUNCTION: Open Internet Handle DESCRIPTION: The IH command is used when th e DMC-1415, DMC-1416 or DMC-1425 is operated as a master (also known as a client). This comm and opens a hand le and connects to a slave. Each controlle r may have 6 handles ope n at any gi ven time. They a re designated by the[...]

  • Seite 112

    104 ● IH DMC-1400 Series Com mand Reference _Ihh4 contains a 1 if waiting for a slave resp onse contains 2 if transm ission is successful contai ns 3 if tr ansmission er ror occurs contains 4 if transm ission timeout USAGE: While Moving No Default Value - In a Program Yes Default Format Command Line Yes Controller Usage DMC-1415/1416/1425 RELATED[...]

  • Seite 113

    DMC-1400 Series Command Reference II ● 105 II FUNCTION: Input Interrupt DESCRIPTION: The II command enables the interrupt fun ction for the specified inputs. This function triggers when the controller sees a logic change from high to low on a specified input. If any of the specified i nputs go l ow durin g pr ogram execution, t he program will ju[...]

  • Seite 114

    106 ● II DMC-1400 Series Command Reference EXAMPLES: #A Program A II 1 Specif y interrupt on input 1 JG 5000 Specify jog speed BG Begin motion #LOOP;JP #LOOP Loop EN End Program #ININT Interrupt subroutine ST;MG "INTERRUPT" St op X, print message AM After stopped #CLEAR;JP#CLEAR,@IN[1]=0 Check for interrupt clear BG Begin motion RI Retu[...]

  • Seite 115

    DMC-1400 Series Command Reference IL ● 107 IL FUNCTION: Integrator Limit DESCRIPTION: The IL command limits the effect of the integr at or function in the filter to a certain voltage. For example, IL 2 limits the output of the integrator to the +/-2 Volt range. A negative param eter also freezes the effect of the integrator during th e move. For [...]

  • Seite 116

    108 ● IN DMC-1400 Series Com mand Reference IN FUNCTION: Input Variable DESCRIPTION: The IN command allows a variable to be i npu t from a keyboard. When th e IN comma nd is executed in a program, the pr ompt m essage is displayed . The operat or then e nters the variable val ue followed by a carriage ret urn. The e ntered val ue is assigned to t[...]

  • Seite 117

    DMC-1400 Series Command Reference IN ● 109 EXAMPLES: Operator specifies leng th of material to be cut in in ches and speed in inches/sec (2 pitch lea d screw, 2000 count s/rev enc oder). #A Program A CI -1 Clear Input Buffer* IN "Enter Speed(in/sec)",V1 Prompt operator for speed IN "Enter Length(in)",V2 Prompt for length V3=V1[...]

  • Seite 118

    110 ● @IN[n] DMC-1400 Series Comman d Reference @IN[n] FUNCTION: Read digital inpu t DESCRIPTION: Returns the value of the given dig ital input (either 0 or 1) ARGUMENTS: @IN[n] where n is an unsigned integer in the range 1 to 96 USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller Usage [...]

  • Seite 119

    DMC-1400 Series Command Reference #ININT ● 111 #ININT FUNCTION: Input interrupt auto m atic subrou tine DESCRIPTION: #ININT runs upon a st ate transit ion of digi tal input s 1 to 8 a nd is con figured wi th II. #I NINT runs in thread 0 and requires something runn ing in thread 0 to be active. USAGE: While Moving Yes In a Program Yes Command Line[...]

  • Seite 120

    112 ● @INT[n] DMC-1400 S eries Command Reference @INT[n] FUNCTION: Integer part DESCRIPTION: Returns the integer pa rt of the gi ven num ber. Note that the m odulus operat or can be implemented with @INT (see example below). ARGUMENTS: @INT [n] n is a signed num ber in the range -2147483648 to 2147483647. USAGE: DEFAULTS: While Moving Yes Default[...]

  • Seite 121

    DMC-1400 Series Command Reference IP ● 113 IP FUNCTION: Increment Pos ition DESCRIPTION: The IP command allows for a chang e in the command position while the m otor is moving. This comm and does not re quire a BG. T he command has three effects dependi ng on the motion bei ng executed. The units of this ar e quadrature. Case 1 : Motor is standin[...]

  • Seite 122

    114 ● IT DMC-1400 Series Command Reference IT FUNCTION: Inde pendent T ime Const ant - Sm oothing F unction DESCRIPTION: The IT command filters the acceleration a nd d eceleration functions in independent m oves of JG, PR, PA type to produce a smooth velocity profile. The resulting profile, known as S- curve, has continuous acceleration and resul[...]

  • Seite 123

    DMC-1400 Series Command Reference IV ● 115 IV FUNCTION: Interrogate Interrupt DESCRIPTION: The IV command interrogates an d clears the interrupt. When an interrup t occurs, the IV command is sent from the host PC. The mean ing is read and the interrupt cond ition is cleared. The responses to th e IV command are as follows. Bit Number Condition 7 [...]

  • Seite 124

    116 ● JG DMC-1400 Series Command Reference JG FUNCTION: Jog DESCRIPTION: The JG command sets the jog mode. The para meters following the JG set the slew speed and direction of m otion. Use of the question m a rk returns the previously entered value or default value. Th e units of this are co unts/second. ARGUMENTS: JG n where n is a signed number[...]

  • Seite 125

    DMC-1400 Series Command Reference JP ● 117 JP FUNCTION: Jump t o Program Location DESCRIPTION: The JP command causes a jump to a program lo cation on a specified condition. T he program location may be any program line number or label. The conditio n is a conditional statement which uses a logical operator such as equal to or less than. A jum p i[...]

  • Seite 126

    118 ● JS DMC-1400 Series Command Reference JS FUNCTION: Jump to Subroutine DESCRIPTION: The JS command will ch ange the sequential order of execution of commands in a program. If the jump is taken, program execution will continu e at the line specified by the destination parameter, whi ch can be eit her a line num ber or label. T he line number o[...]

  • Seite 127

    DMC-1400 Series Command Reference KD ● 119 KD FUNCTION: Derivat ive Constant DESCRIPTION: KD designates the derivative constant in the c ontroller filter. The filte r transfer function is D(z) = 4 ⋅ KP + 4 ⋅ KD(z-1)/z + KIz/2 (z-1) Fo r further details on the filter see the section Theory of Operation in the product manual. ARGUMENTS: KD n w [...]

  • Seite 128

    KI FUNCTION: Integrator DESCRIPTION: The KI command sets the integr al gain of t he control loop. It fits in the contro l equation as follows: D(z) = 4 ⋅ KP + 4 ⋅ KD(z-1)/z + KI z/2(z-1) Th e integrator term will reduce the position error at rest to zero. ARGUMENTS: KI n w here n in an unsigne d number i n the range 0 to 20 47.875 wit h a resol[...]

  • Seite 129

    KP FUNCTION: Proportional Constant DESCRIPTION: KP designates the proportional constan t in the co ntroller filter. The filte r transfer function is D(z) = 4 ⋅ KP + 4 ⋅ KD(z-1)/z + KI z/2(z-1) For further details see the section Th eory of Operation in the product manual. ARGUMENTS: KP n where n is an unsigne d number i n the range 0 to 10 23.8[...]

  • Seite 130

    KS FUNCTION: Step M otor Sm oothing DESCRIPTION: The KS param eter smoot hes the freque ncy of the st ep motor pulses. Larg er values of K S provide greater smoothness. This parameter will also increase the motion time by 3KS sampling periods. KS adds a single pole low pass filter onto the ou tput of the m otion profiler. T his functio n smoothes o[...]

  • Seite 131

    L A FUNCTION: List Arrays DESCRIPTION: The LA command returns a list of all arrays in memory. The listing will be in alph abetical order. The size of each array will be included next to each array name in square brackets. ARGUMENTS: None USAGE: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller Usage ALL [...]

  • Seite 132

    124 ● LE DMC-1400 Series Com mand Reference L E FUNCTION: Linear I nterpolati on End DESCRIPTION: LE Signifies the end of a l inear interpol ation seque n ce. It follows the last LI specification in a linear sequence. After the LE specification, the c ontroller issues commands to decelerate the motors to a stop. The VE command is interchangeab le[...]

  • Seite 133

    DMC-1400 Series Command Reference _LF* ● 125 _LF* FUNCTION: Forward Limit Switch Operand (K eyword) DESCRIPTION: The _LF operand contains the state of the forward limit switch for the specified axis. The operand is specified as: _LFn whe re n is the specifie d axis. Note : This operand is a ffected by t he config ura tion of the limit switches se[...]

  • Seite 134

    126 ● LI DMC-1400 Series Command Reference L I FUNCTION: Linear Interpolation Distance DESCRIPTION: The LI x,y command speci fies the incremental dist ance of travel for each axis in the Linear Interpolation (LM) mode. LI parameters are relative distances given with respect to the current axis positions. Up to 51 1 LI specific ations may be given[...]

  • Seite 135

    DMC-1400 Series Command Reference LI ● 127 EXAMPLES: LM XY Specify linear interpolation mode LI 1000,2000 Specify distance LE Last segment BGS Begin sequence[...]

  • Seite 136

    128 ● #LIMSWI DMC-1400 S eries Command Reference #LIMSWI FUNCTION: Limit switch automatic subroutine DESCRIPTION: Without #LIMSWI defined, the controller will effectiv ely issue the STn on the axis when it’s limit switch is tripped. With #LIMSWI define d, the axis is still st oppe d, and in addition, code is executed. #LIMSWI is most common ly [...]

  • Seite 137

    DMC-1400 Series Command Reference LL ● 129 LL FUNCTION: List Labels DESCRIPTION: The LL command returns a listing of all of the program labels in memory. The listing will be in alphabetical order. ARGUMENTS: None USAGE: While Moving Yes Default Valu e - In a Program Yes Default Format - Command Line Yes Can be Interrogated Yes Used as an Operand [...]

  • Seite 138

    130 ● LM DMC-1400 S eries Command Reference LM FUNCTION: Linear Int erpolation M ode DESCRIPTION: The LM command specifies the linear inte rpola tion mode and specifies the axes for linear interpolation. Only the DMC-1425 supp orts the linear interpolation mode. LI commands are used to specify the trav el distances for linear in terpolat ion. The[...]

  • Seite 139

    DMC-1400 Series Command Reference _LR* ● 131 _LR* FUNCTION: Reverse Limit Switch Operand (Keywo rd) DESCRIPTION: *The _LR ope rand contai ns the state of the reverse limit swi tch. Note: This is not a command. NOTE: This operand is affe cted by the conf iguration of the limit switches set by the command CN : For CN-1: _LRx = 1 when the limit swit[...]

  • Seite 140

    132 ● LS DMC-1400 Series Com mand Reference LS FUNCTION: List DESCRIPTION: The LS comm and sends a listing o f the program memory. The listing will start with the line pointed to by the first paramete r, which ca n be either a line number or a la bel. If no parameter is specified, it will start with line 0. The listing will end with the line poin[...]

  • Seite 141

    DMC-1400 Series Command Reference LV ● 133 LV FUNCTION: List Variables DESCRIPTION: The LV command returns a listing of all of the program labels in memory. The listing will be in alphabetical order. ARGUMENTS: None USAGE: While Moving Yes Default Valu e - In a Program Yes Default Format - Command Line Yes Can be Interrogated Yes Used as an Opera[...]

  • Seite 142

    134 ● LZ DMC-1400 Series Command Reference LZ FUNCTION: Inhibit leading zeros DESCRIPTION: The LZ comm and is used for formatt ing the val ues returned fr om interro gation com mands or interrogation of variables and arrays. By enab ling the LZ function, all leading zeros of returned values will b e rem oved. ARGUMENTS: LZ n where n is 1 to remov[...]

  • Seite 143

    DMC-1400 Series Command Reference MB ● 135 MB FUNCTION: Modbus DESCRIPTION: The MB command is used to communicate with I/O devices using th e first two levels of the Modbus pr otocol. The format of t he command varies dependi ng on each function c ode. T he function code, -1, designates that the first level of Modbus is used (creates raw packets [...]

  • Seite 144

    136 ● MB DMC-1400 Series Command Referen ce n is the number of regi sters array[] will ho ld the response MBh = addr, 4, m, n, ar ray[] where m is the starting register number n is the number of regi sters array[] will ho ld the response MBh = addr, 5, m, n where m is the starting bit number n is 0 or 1 and represents th e coil set to off or on. [...]

  • Seite 145

    DMC-1400 Series Command Reference MC ● 137 M C FUNCTION: Motion Complete - "In Position" DESCRIPTION: The MC command is a trippoint used to con trol the timing of events. This command will hold up execution of the fo llowing commands until the current move is completed and the encoder reaches or p asses the specified po sition. TW sets [...]

  • Seite 146

    #MCTIME FUNCTION: MC command timeout automatic subroutine DESCRIPTION: #MCTIME runs when the MC command is used to wait for motion to be complete and the actual position TP does not reach or pass th e target _PA + _PR within the specified timeout TW. USAGE: While Moving Yes In a Program Yes Command Line No Controller Usage ALL RELATED COMMANDS: MC [...]

  • Seite 147

    DMC-1400 Series Command Reference MF ● 139 MF FUNCTION: Forward Motion to Position DESCRIPTION: The MF command is a trippoint used to control the timing of even ts. This comm and will hold up the executio n of the following command until the specified motor moves forward and crosses the position specified. Th e units of the command are in quadrat[...]

  • Seite 148

    140 ● MG DMC-1400 Series Command Reference MG FUNCTION: Message DESCRIPTION: The MG comm and sends da ta out the b us. This can be used to al ert an operat or, send instructions or return a variable value. ARGUMENTS: M G {Pn},{Ex},{ U} "m", {^n}, V {Fm .n or $m,n} {N} {Sn} "m" is a text message including letters, numbers, symb[...]

  • Seite 149

    DMC-1400 Series Command Reference MO ● 141 MO FUNCTION: Motor Off DESCRIPTION: The MO command shuts off th e control algorithm. The controller will continue to m onitor the motor posi tion. T o turn the m otor back on use t he Servo He re command (SH). ARGUMENTS: M O USAGE: While Moving No Default Value 0 In a Program Yes Default Format 1.0 Comma[...]

  • Seite 150

    142 ● MR DMC-1400 Series Command Referen ce MR FUNCTION: Reverse Motion to Position DESCRIPTION: The MR command is a trippoint used to con trol the timing of events. This command will hold up the executio n of the following command until the specified motor moves backward and crosses the position specifi ed. T he units of the command are in quadr[...]

  • Seite 151

    DMC-1400 Series Command Reference MT ● 143 MT FUNCTION: Motor Type DESCRIPTION: The MT command selects the type of the m otor and the pola rity of the driv e signal. Motor types include standard servo motors which require a voltage in the rang e of +/- 10 Volts, and step m otors which requi re pulse and direction si gnals. The p olarity reversal [...]

  • Seite 152

    144 ● NB DMC-1400 S eries Command Reference N B FUNCTION: Notc h Bandwi dth DESCRIPTION: The NB command sets real part of the notch poles ARGUMENTS: NB n,n or NBX=n where n is ranges from 0 Hz to 1 16 () ⋅ TM USAGE: While Moving Yes Default Value 0.5 In a Program Yes Default Format Command Line Yes Controller Usage DMC-1415/1416/1425 RELATED CO[...]

  • Seite 153

    N F FUNCTION: Notch Freq uency DESCRIPTION: The NF command sets the freque ncy of the notch filter, which is placed in series with the PID compensation. ARGUMENTS: NF n,n or NFX=n where 1 4 () ⋅ TM where TM is the update ra te (default TM is 1 msec). n ranges from 1 Hz to n = ? Returns the value of the Notch filter for the specified axis. USAGE: [...]

  • Seite 154

    NO FUNCTION: No Operation DESCRIPTION: The NO command perform s no action in a se quence, but ca n be used as a comme nt in a program. After the NO, characters can be gi ven to form a program comment up to the maximum line length o f the cont roller. This helps to document a program. An apostrophe ‘ ma y also be used instead of th e NO to documen[...]

  • Seite 155

    DMC-1400 Series Command Reference NZ ● 147 N Z FUNCTION: Notch Zero DESCRIPTION: The NZ command sets the real part of the notch zero. ARGUMENTS: NZ n,n or NZX=n where n is ranges from 1 Hz to 1 16 () ⋅ TM n = ? Returns the value of the Notch filter zero for the specified axis. USAGE: While Moving Yes Default Value 0.5 In a Program Yes Default F[...]

  • Seite 156

    OB FUNCTION: Output Bit DESCRIPTION: The OB n, logical expressi on command defi nes output bit n as either 0 or 1 dependin g on the result from the logical e xpression. A ny non-z ero value of t he expression results in a one on the output. ARGUMENTS: OB n, expr ession where n is output bit expression is any valid logical expr ession, variable or a[...]

  • Seite 157

    DMC-1400 Series Command Reference OC ● 149 O C FUNCTION: Output Compare DESCRIPTION: The OC comm and allows the generatio n of outp ut pulses ba sed on one o f the mai n encoder positions. For circular compare, the output is a low-going pulse with a duration of approxim ately 600 nanosecon ds and is a vailabl e at the output compare signal (label[...]

  • Seite 158

    150 ● OE DMC-1400 Series Com mand Reference OE FUNCTION: Off on Error DESCRIPTION: The OE command causes the controller to shut off the motor comman d if the position error exceeds the limit specified by the ER command or an abort occurs from either the a bort input or an AB command. The OE command, in addition to shu tting off the motor command,[...]

  • Seite 159

    DMC-1400 Series Command Reference OF ● 151 OF FUNCTION: Offset DESCRIPTION: The OF comm and sets a bias voltage in t he motor com mand output or returns a p reviousl y set value. This can be used to co unteract gravit y or an offset in an am plifier. If the PID values are zero, then th e output voltage will be the OF value. The OF command works i[...]

  • Seite 160

    152 ● OP DMC-1400 Series Com mand Reference O P FUNCTION: Output Port DESCRIPTION: The OP comm and sends dat a to the out put ports of the cont roller. You can use t he output po rt to control external switch es and relays. ARGUMENTS (DMC-1410 /1411/1412/1414/1417): OP m,n wher e m is an integer in the rang e 0 to 7 and is the decimal representat[...]

  • Seite 161

    DMC-1400 Series Command Reference OP ● 153 EXAMPLES: OP 0 Clear Output Port – all bits OP 7 Set outputs 1,2 and 3 MG _OP0 Returns the first parameter "m" (DMC-1415/1416/1425 only) MG _OP1 Returns the second parameter " a" (DMC-1415/1416/1425 only)[...]

  • Seite 162

    154 ● @OUT[n] DMC-1400 Series Com mand Reference @OUT[n] FUNCTION: Read digit al output DESCRIPTION: Returns the val ue of the given digita l output (either 0 o r 1) ARGUMENTS: @IN[n] where n is an unsigned integer in the range 1 to 80 USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller [...]

  • Seite 163

    DMC-1400 Series Command Reference P1CD P2CD ● 155 P1CD P2CD FUNCTION: Serial port 1 or serial port 2 code DESCRIPTION: DMC-21x2/ 3: P1CD returns the status o f the seri al port when in the operator data entry mode (CI,1) DMC-2xx0: P2CD returns the status of the auxiliary serial port (port 2) USAGE: DEFAULTS: While Moving Yes Default Value - In a [...]

  • Seite 164

    156 ● P1CH P2CH DMC-1400 Series Command Reference P1CH P2CH FUNCTION: Serial port 1 or serial port 2 c haracter DESCRIPTION: P1CH returns the last character sent to the serial port when in the operator data entry mode (CI,1) P2CH returns the last character sent to the auxiliary serial port (port 2) USAGE: DEFAULTS: While Moving Yes Default Value [...]

  • Seite 165

    DMC-1400 Series Command Reference P1NM P2NM ● 157 P1NM P2NM FUNCTION: Serial port 1 or serial port 2 number DESCRIPTION: P1NM and P2 NM convert fr om ASCII (e. g. “1234”) t o binary so that a num ber can be stored into a variable and math can be performed on it. Numbers from -2147483 648 to 2147483647 can be pr ocessed. P1NM returns the last [...]

  • Seite 166

    158 ● P1ST P2ST DMC-1400 Series Command Reference P1ST P2ST FUNCTION: Serial port 1 or serial port 2 string DESCRIPTION: P1ST returns the last string (followed by carriage return) sent to the se rial port when i n the operator dat a entry m ode (CI,1) P2ST returns the last string (followed by carriage return) sent to auxiliary serial port (port 2[...]

  • Seite 167

    DMC-1400 Series Command Reference #POSERR ● 159 #POSERR FUNCTION: Position error automatic sub routine DESCRIPTION: The factory default behavior of the Galil controller upon a p osition error (TE > ER) is to do nothing more than turn on the red light. If OE is set to 1, the motor whose position error ER wa s exceede d will be turned off MO. #P[...]

  • Seite 168

    160 ● PA DMC-1400 S eries Command Reference PA FUNCTION: Position Absolute DESCRIPTION: The PA command will set the final destination of the nex t move. The position is referenced to the absolu te zero. If a ? is used, then the current destination (current command position if not moving, destination if in a m ove) is ret urned. For each single mo[...]

  • Seite 169

    DMC-1400 Series Command Reference PF ● 161 PF FUNCTION: Position Format DESCRIPTION: The PF command allows the user to format the positio n numbers such as those returned by TP. The num ber of digits of integers a nd the num ber of digit s of fractions can be selected with this command. An extra dig it for si gn and a digit for decimal point will[...]

  • Seite 170

    162 ● PR DMC-1400 S eries Command Reference PR FUNCTION: Position Relative DESCRIPTION: The PR comma nd sets the inc remental di stance and directi on of the ne xt move. The move is referenced with respect to the current position. If a ? is used, then the curren t incremental distance is retu rned (even i f it was set by a PA comm and). Units a r[...]

  • Seite 171

    DMC-1400 Series Command Reference QD ● 163 QD FUNCTION: Download Array DESCRIPTION: The QD command transf ers array data from the host computer to the DMC-1400. QD array[],start,end requires that the array name be specified along with t he first element of the array and last element of the array. Th e array elements can be se parated by a comm a [...]

  • Seite 172

    164 ● QR DMC-1400 Series Comman d Reference Q R FUNCTION: Data Record DESCRIPTION: The QR command causes the controller to return a record of information regarding controller status. This status inform ation include s 4 bytes of header info rmation a nd specific bl ocks of information as speci fied by the comm a nd arguments. T he details of t he[...]

  • Seite 173

    DMC-1400 Series Command Reference QU ● 165 QU FUNCTION: Upload A rray DESCRIPTION: The QU command transf ers array data from the DMC-1400 to a host co mputer. QU requires that the array name be s pecified along with th e first elem ent of the array and last elem ent of the array. The uploaded array will be followed by a <control>Z as an end[...]

  • Seite 174

    166 ● QZ DMC-1400 S eries Command Reference Q Z FUNCTION: Return Data Record info rmation DESCRIPTION: The QZ command is an interrog ation command that returns information regarding the Data Record (DMC-1415/1416 /1425). The controller’s response to this command will b e the return of 4 integers separated by commas. The four fields repr esent t[...]

  • Seite 175

    DMC-1400 Series Command Reference RA ● 167 RA FUNCTION: Record Array DESCRIPTION: The RA command selects one or two arrays for automatic data capture. The selected arrays must have bee n dimensi oned by the DM comm and. The data t o be captured i s specified by the RD c ommand and time i nterval by t he RC comm and. ARGUMENTS: R A n [],m [] where[...]

  • Seite 176

    168 ● RC DMC-1400 S eries Command Reference RC FUNCTION: Record DESCRIPTION: The RC comm and begin s recording for the Aut omatic Recor d Array Mo de (RA). RC 0 stops recording. ARGUMENTS: RC n,m where n is an int eger 1 thr u 8 and speci fies 2 n sampl es between re cords. RC 0 st ops recordi ng. m is optional and specifies the number of re cord[...]

  • Seite 177

    DMC-1400 Series Command Reference RD ● 169 RD FUNCTION: Record Data DESCRIPTION: The RD command specifies the data type t o be captured for the Record Array (RA) mode . The command type includes: DATA TYPE MEANING _DE 2nd encoder _TP Position _TE Position error _SH Commanded position _RL Latched position _TI Inputs _OP Outputs _TS Switches, only [...]

  • Seite 178

    170 ● RE DMC-1400 S eries Command Reference RE FUNCTION: Return from Error Routine DESCRIPTION: The RE command is used to end a position error handling subroutine or limit switch handling subroutine. The error handling subroutine be gins with the #POSERR label. The limit switch handl ing subr outine begi ns with the #LIMSWI. A n RE at the en d of[...]

  • Seite 179

    DMC-1400 Series Command Reference REM ● 171 REM FUNCTION: Remark DESCRIPTION: REM is used for comments. Th e REM statement is NOT a controller command. Rather, it is recognized by Galil PC software, which strips away the REM lines before do wnloading the DMC file to the controller. REM differs from NO (or ‘) in the following ways: (1) NO commen[...]

  • Seite 180

    172 ● RI DMC-1400 Series Com mand Reference RI FUNCTION: Return from Interrupt Routine DESCRIPTION: The RI command is used to end the interrupt subroutine beginning with the lab el #ININT. An RI at the end of this routine caus es a return t o the main pr ogram. The RI command also re-enables input interrupts. If the progra m sequencer was interru[...]

  • Seite 181

    DMC-1400 Series Command Reference RL ● 173 RL FUNCTION: Report Latched Position DESCRIPTION: The RL command will return the last position captured by the latch. The latch must first be armed by the AL c ommand and then a 0 m ust occur on the Input 1. The armed state of the latch can be configured using th e CN command. ARGUMENTS: R L USAGE: While[...]

  • Seite 182

    174 ● @RND[n] DMC-1400 Series Command Reference @RND[n] FUNCTION: Round DESCRIPTION: Rounds the gi ven num ber to the nearest inte ger ARGUMENTS: @RND[n] n is a signed num ber 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 CO[...]

  • Seite 183

    DMC-1400 Series Command Reference RP ● 175 RP FUNCTION: Reference Position DESCRIPTION: This comm and returns the commanded reference po sition of t he motor. ARGUMENTS: R P USAGE: While Moving Yes Default Value 0 In a Program Yes Default Format Position Format Command Line Yes Can be Interrogated No Used as an Operand Yes Controller Usage ALL OP[...]

  • Seite 184

    RS FUNCTION: Reset DESCRIPTION: The RS command resets the state of the processor to its power-on con dition. The previously saved state of t he controll er, along with param eter values, and saved sequences a re restored. The RS-1 command resets the state of the proces sor to its factory default without modifying the EEROM . USAGE: While Moving Yes[...]

  • Seite 185

    DMC-1400 Series Command Reference <control>R<control>S ● 177 <control>R<control>S FUNCTION: Master Reset DESCRIPTION: The Master Reset command resets the DMC-140 0 to factory default settings and erases EEPROM. A master reset can also be per formed by i n stalling a jumper on the DMC-14XX at the location label ed MRST and [...]

  • Seite 186

    178 ● <control>R< control>V DMC-1400 Series Command Reference <control>R<control>V FUNCTION: Revision Info rmation DESCRIPTION: The Revision Information c ommand causes the co ntr oller to return the fir mware revision information. USAGE: While Moving Yes Default Value - In a Program No Default Format - Command Line Yes Ca[...]

  • Seite 187

    DMC-1400 Series Command Reference SA ● 179 S A FUNCTION: Send Com mand DESCRIPTION: SA sends a command from one Galil contro ller to anot her controller or IOC-7007 board over Eth ernet. Any command can be sent to another Galil card a nd will be interpreted by the card as a “local” command. Note: A wait st atement (e.g. W T5) must be ins erte[...]

  • Seite 188

    180 ● SA n DMC-1400 Series Command Reference SA n FUNCTION: Serial Address DESCRIPTION: SA assigns the address of a serial controller in a dais y-chain network. See Chapt er 4 in the DMC- 1412/1414 user manual for more information on daisy-chaining. ARGUMENTS: SA n where n is a number bet ween 0 and 7 represe nting the ad dress of the c ontroller[...]

  • Seite 189

    DMC-1400 Series Command Reference SB ● 181 SB FUNCTION: Set Bit DESCRIPTION: The SB comma nd sets one o f three bit s on the output port . Note: When using Mod bus devices (DMC-1415/1416/1425 ONLY), the I/O points o f the Modbus device s are calculated using the foll owing form ula: n = (SlaveAddress*10000) + (HandleNu m*1000) + ((Module-1)*4) + [...]

  • Seite 190

    182 ● SC DMC-1400 S eries Command Reference SC FUNCTION: Stop C ode DESCRIPTION: The SC command allows the user to determine why a motor stop s. The controller responds with the stop code as follows: CODE MEANING CODE MEANING 0 Motors are running, independent mode 9 Stopped after Finding Edge (FE) 1 Motors decelerating or stopped at commanded ind[...]

  • Seite 191

    DMC-1400 Series Command Reference SH ● 183 SH FUNCTION: Servo Here DESCRIPTION: The SH command tells the controller to use the current motor position as the command position and to en able servo control here. This command can be useful when the positio n of a m otor has been manually adjusted following a m otor off (MO) c ommand. ARGUMENTS: SH US[...]

  • Seite 192

    184 ● @SIN[n] DMC-1400 Series Command Reference @SIN[n] FUNCTION: Sine DESCRIPTION: Returns the sin e of the given angle in degree s ARGUMENTS: @SIN[n] where n is a signed number in degr ees in the range -2147483648 to 2147483647 . USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller Usag[...]

  • Seite 193

    DMC-1400 Series Command Reference SL ● 185 SL FUNCTION: Single Step DESCRIPTION: For debugging purposes. Single Step thro ugh the program after execution has paused at a breakpoint (BK). Opti onal argum ent allows use r to specif y the number o f lines to execute befo re pausing a gain. The B K command resumes norm al program execution. ARGUMENTS[...]

  • Seite 194

    186 ● SP DMC-1400 S eries Command Reference SP FUNCTION: Speed DESCRIPTION: This command sets the slew speed for inde pendent moves. The parameters input will be rounded d own to the nearest factor of 2 an d the units of the param eter are in cou nts per second. Note: Negative values will be interpreted as the absolute value. ARGUMENTS: SP n wher[...]

  • Seite 195

    @SQR[n] FUNCTION: Square Root DESCRIPTION: Takes the squa re root of the given num ber. If the num ber is negative, t he absolute value is taken first. ARGUMENTS: @SQR[n] where n is a signed number in the range -21474 83648 to 2147483647. USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controller[...]

  • Seite 196

    188 ● ST DMC-1400 Series Com mand Reference ST FUNCTION: Stop DESCRIPTION: The ST command stops commanded motion. The m o tor will come to a d ecelerated stop. ST sent from the host with no arguments will stop motion an d any programs that are running on the controller. ARGUMENTS: ST USAGE: While Moving Yes Default Value --- In a Program Yes Defa[...]

  • Seite 197

    DMC-1400 Series Command Reference @TAN[n] ● 189 @TAN[n] FUNCTION: Tangent DESCRIPTION: Returns the tangent of the given an gle in degrees ARGUMENTS: @T AN[n] where n is a signed number in degr ees in the range -2147483648 to 2147483647 . USAGE: DEFAULTS: While Moving Yes Default Value - In a Program Yes Default Format - Command Line Yes Controlle[...]

  • Seite 198

    190 ● TB DMC-1400 S eries Command Reference TB FUNCTION: Tell Status Byte DESCRIPTION: The TB comma nd returns stat us informat ion from the controlle r as a decim al number. Each bit of the status byte denotes the following co ndition when the bit is set (high): BIT STATUS Bit 7 Executing program Bit 6 DMA Active (when available) Bit 5 C ontouri[...]

  • Seite 199

    DMC-1400 Series Command Reference TC ● 191 TC FUNCTION: Tell Error Code DESCRIPTION: The TC comma nd returns a n umber between 1 a nd 25 5. This number is a code that reflects why a command was not accepted by the cont roller. This command is usef ul when the controller halts execut ion of a program at a comm and or when t he respons e to a comma[...]

  • Seite 200

    192 ● TC DMC-1400 S eries Command Reference ECAM 28 S operand not valid 105 EB1 command must be given first 29 Not valid during coordinated move 110 No hall effect sensors detected 30 Sequence segment too short 111 Must be made brushless by BA command 31 Total move distance in a sequence > 2 billion 112 BZ command timeout 32 More than 511 segm[...]

  • Seite 201

    DMC-1400 Series Command Reference #TCPERR ● 193 #TCPERR FUNCTION: Ethernet communication error au tomatic subroutine DESCRIPTION: The following error (see TC) o ccurs when a command such as MG “hello” {EA} is sent to a failed Ethernet co nnection: 123 TCP lost sync or tim eout This error means that the clien t on handle A did not respond with[...]

  • Seite 202

    194 ● TD DMC-1400 S eries Command Reference TD FUNCTION: Tell Dual Encoder DESCRIPTION: This command returns the current positio n of the dual (auxiliary) encoder. The aux iliary encoder is not available if the controller is set up fo r stepper. When operating with stepper motors, the TD comm and returns the number of counts that hav e been outpu[...]

  • Seite 203

    TE FUNCTION: Tell Error DESCRIPTION: This command returns the current position error of the motor. The range of possible error is +/-2147483647. The Tell Err or command is not valid for step motors since they operate open-lo op. ARGUMENTS: TE USAGE: While Moving Yes Default Value 0 In a Program Yes Default Format Position Format Command Line Yes Ca[...]

  • Seite 204

    196 ● TH DMC-1400 S eries Command Reference T H FUNCTION: Tell Ha ndle Status DESCRIPTION: The TH command is used to request the con trollers’ handle status. Data returned from this command indicates the IP a ddress and Ethernet address of the cu rrent cont roller. This data is followed by the status of each handle indicating c onnection type a[...]

  • Seite 205

    DMC-1400 Series Command Reference TI ● 197 TI FUNCTION: Tell Inputs DESCRIPTION: This command returns the state of all 7 general dig ital inputs or 3 inputs for the DMC-1425. Response is a decimal num ber whic h when conve rted to bi nary represe nts the status of all 7 digital in puts. BIT TI Bit 6 Input 7 Bit 5 Input 6 Bit 4 Input 5 Bit 3 Input[...]

  • Seite 206

    198 ● TIME* DMC-1400 S eries Command Reference TIME* FUNCTION: Time Operand (Keyword) DESCRIPTION: *The TIME op erand contains the value of t he in ternal free running, real time clock. The returned value rep resents the number of servo lo op updates and is based on the TM command. The default valu e for the TM command is 1000. With this update r[...]

  • Seite 207

    DMC-1400 Series Command Reference TL ● 199 TL FUNCTION: Torque Limit DESCRIPTION: The TL command sets the limit o n the motor command output. For example, TL of 5 limits the motor c ommand output t o 5 volts . Maxim um output of the mot or comma nd is 9.998 volts. ARGUMENTS: TL n where n is an unsigned number in the range 0 to 9.998 volts with re[...]

  • Seite 208

    200 ● TM DMC-1400 S eries Command Reference TM FUNCTION: Update Tim e DESCRIPTION: The TM comma nd sets the sa mpling peri od of t he control l oop. Changi ng the sam pling period will uncalibrate the spe ed and acceleration param eters. A negative num ber turns off the servo loop. The units of th is command are μ sec. ARGUMENTS: TM n where n is[...]

  • Seite 209

    DMC-1400 Series Command Reference TP ● 201 TP FUNCTION: Tell Position DESCRIPTION: This command returns the current position of the m otor ARGUMENTS: TP USAGE: While Moving Yes Default Value 0 In a Program Yes Default Format Position Format Command Line Yes Can be Interrogated No Used as an Operand Yes Controller Usage ALL OPERAND USAGE: _TP cont[...]

  • Seite 210

    202 ● TR DMC-1400 S eries Command Reference TR FUNCTION: Trace DESCRIPTION: The TR command causes each instruction in a program to be sent out the comm unications port prior to execution. TR1 enables this function and TR 0 disables it. The trace command is useful i n debuggi ng program s. ARGUMENTS: TR n where n=0 or 1 0 disables function 1 enabl[...]

  • Seite 211

    DMC-1400 Series Command Reference TS ● 203 TS FUNCTION: Tell Switches DESCRIPTION: TS returns the state of the Hom e switch, Fo rward and Reve rse Limi t switch, error c onditions, motion conditio n and motor state. The value returned by this command is decimal and represents an 8 bit value (decimal value ra nges from 0 to 255). Each bit represen[...]

  • Seite 212

    204 ● TT DMC-1400 Series Command Reference TT FUNCTION: Tell Torque DESCRIPTION: The TT command reports the value of the a nalog servo c ommand out put signal, which is a number betwee n -9.998 and 9. 998 volts. ARGUMENTS: TT USAGE: While Moving Yes Default Value --- In a Program Yes Default Format 1.4 Command Line Yes Can be Interrogated No Used[...]

  • Seite 213

    DMC-1400 Series Command Reference TV ● 205 TV FUNCTION: Tell Velocity DESCRIPTION: The TV command returns the actual velo city in units of quadrature count/s. The value returned includes the sign. ARGUMENTS: TV No argument will provid e t he auxiliary encoder position for all axes. USAGE: While Moving Yes Default Value 0 In a Program Yes Default [...]

  • Seite 214

    206 ● TW DMC-1400 Series Command Reference TW FUNCTION: Timeout for IN-Position (MC) DESCRIPTION: The TW n com mand sets t he timeout i n msec to declare a n error if the MC command is active and the motor is not at or beyond the actual position within n msec after the completion of the motion profile. If a timeout occurs, then the MC trippoint w[...]

  • Seite 215

    DMC-1400 Series Command Reference UI ● 207 UI FUNCTION: User Interrup t DESCRIPTION: The UI command causes an interrupt on the s elect ed IRQ line. There ar e 16 user interrupts where UI n , n = 0 thr ough 15. P rior to u sing the U I comma nd, one IR Q line m ust be jumpered on the DMC-141X. An interrup t serv ice routine must also be incorporat[...]

  • Seite 216

    208 ● UL DMC-1400 S eries Command Reference UL FUNCTION: Upload DESCRIPTION: The UL co mmand transfers data from the DMC-1 41X to a host computer. Program s are sent without line numbers. The Upload ed program will be followed by a <control>Z or a as an end of Text m arker. ARGUMENTS: None USAGE: While Moving Yes Default Value --- In a Pr[...]

  • Seite 217

    DMC-1400 Series Command Reference VA ● 209 VA FUNCTION: Vector Acceleration DESCRIPTION: This command sets the acceleration rate of th e vector in a coordinated motion sequence. ARGUMENTS: VA n w here n is an unsigned integ er in the range 1024 to 68,431,360. The parameter input will be rounded down t o the nearest factor of 1024. The units of th[...]

  • Seite 218

    210 ● VD DMC-1400 S eries Command Reference VD FUNCTION: Vector Deceleration DESCRIPTION: This command sets the decele ration rate of th e vector in a coordinated motion sequence. ARGUMENTS: VD n w here n is an unsigned integer in t he range 1024 to 68431360. The parameter input will be rounded down to the nearest factor of 1024. The uni ts of th[...]

  • Seite 219

    DMC-1400 Series Command Reference VE ● 211 V E FUNCTION: Vector Sequence End DESCRIPTION: VE is require d to specify the end segment of a coordinate d move sequence . VE woul d follow the final VP or CR comm and in a sequence . VE is equi valent to t he LE comm and. ARGUMENTS: VE n No argument specifies the e nd of a vector sequence n = ? Returns[...]

  • Seite 220

    212 ● VF DMC-1400 Series Com mand Reference VF FUNCTION: Variable Form at DESCRIPTION: The VF comm and allows the variabl es and arrays to be for matted for n umber of digits before and after the decimal poi nt. When displaye d, the value m represents the number of digits before the decima l point, and the value n repres ents the number of digits[...]

  • Seite 221

    DMC-1400 Series Command Reference VM ● 213 V M FUNCTION: Coordinate d Motion Mode DESCRIPTION: T he VM comm and specifies th e coordinate d motion m ode and the pl ane of mot ion. This command is only used for th e DMC-1425 two axis controller. The motion is specified by t he instructions VP and CR, which specify linear and circular segments. Up [...]

  • Seite 222

    214 ● VP DMC-1400 S eries Command Reference V P FUNCTION: Vector Position DESCRIPTION: The VP comm and defines the target c oordinat es of a straight line segm ent in a 2 axi s motion sequence which have been selected by the VM command. The units are i n quadrature counts, and are a function of the vector scale factor set using the command VS. AR[...]

  • Seite 223

    DMC-1400 Series Command Reference VR ● 215 V R FUNCTION: Vector Speed Ratio DESCRIPTION: The VR sets a ratio to be used as a multiplier of the current vector speed. The vector speed can be set by t he command VS or the ope rators < and > used with CR , VP and LI commands. VR takes effect immediatel y and will ratio all the following vector [...]

  • Seite 224

    216 ● VS DMC-1400 S eries Command Reference V S FUNCTION: Vector Speed DESCRIPTION: The VS command specifies the speed of the vector i n a coordinat ed motion sequence in either the LM or VM modes. VS may be chan ged durin g motion. Vector Speed c an be calculat ed by takin g the square root of the s um of the squ ared values o f speed for each a[...]

  • Seite 225

    DMC-1400 Series Command Reference VT ● 217 VT FUNCTION: Vector Tim e Consta nt DESCRIPTION: The VT command filters the acceleration a nd decel eration functions in vector moves of VM, LM type to produce a smooth velocity profile. The resulting profile, kno wn as Smoothing, ha s continuous accel eration and res ults in reduced mechanical vibration[...]

  • Seite 226

    218 ● WC DMC-1400 Series Command Reference WC FUNCTION: Wait for Con tour Data DESCRIPTION: The WC command acts as a flag i n the Contour Mode. After this command is executed, the controller does not receive a ny new data until th e internal contour data buffer is ready to accept new commands. This command prevents the contour data from overwriti[...]

  • Seite 227

    DMC-1400 Series Command Reference WH ● 219 W H FUNCTION: Which Handl e DESCRIPTION: The WH command is used to identify the handl e in which the comm and is executed. Th e command ret urns IHA t hrough IHF to indicat e on which ha ndle the com mand was executed. The command returns RS 232 if communicating serially. ARGUMENTS : None USAGE: While Mo[...]

  • Seite 228

    220 ● WT DMC-1400 Series Command Reference WT FUNCTION: Wait DESCRIPTION: The WT command is a trippoint used to time events. After this command is executed, the controller will wait for the number of samples specified before executing the next command. I f the TM com mand ha s not been used to chan ge the sam ple rate from 1 msec, then the units [...]

  • Seite 229

    DMC-1400 Series Command Reference XQ ● 221 XQ FUNCTION: Execute Program DESCRIPTION: The XQ command begins ex ecution of a program residing in th e program memory of the controller. Execution will start at the lab el or line number specified. Up to two programs may be executed simultaneously to perform multitasking. ARGUMENTS: XQ #A,n XQm,n where[...]

  • Seite 230

    222 ● ZR DMC-1400 S eries Command Reference ZR FUNCTION: Zero DESCRIPTION: The ZR command sets the compensating zero by changing the KD value in the control loo p or returns the previou sly set value. It fits in the control equation as follows: D(z) = GN(z-ZR/z) ARGUMENTS: ZR n where n is an unsi gned num ber in the ra nge 0 to 1 decimal wi th a [...]

  • Seite 231

    DMC-1400 Series Command Reference ZS ● 223 ZS FUNCTION: Zero Subroutine Stack DESCRIPTION: The ZS comm and is only valid in an ap plication p rogram and is used to avoid returning f rom an interrupt (either input or error). ZS alon e returns the stack to its original con dition. ZS1 adjusts the stack to eliminate one return. This turn s the jump [...]

  • Seite 232

    224 ● ZS DMC-1400 Series Com mand Reference THIS PAGE LEFT BLANK INTENTIONALLY[...]

  • Seite 233

    DMC-1400 Series Command Reference Index ● 225 Index Abort ........................................................... 13, 180, 181 Off-On-Error............................................................ 13 Acceleration .................................. 33, 35, 36 , 38, 41, 45 Analog Feedba ck ....................................................[...]

  • Seite 234

    226 ● Index DMC-1400 Series Command Reference Halt Abort ........................................................ 13, 180, 181 Off-On-Error............................................................ 13 Home Inputs ............................................................... 56 Homing ...........................................................[...]

  • Seite 235

    DMC-1400 Series Command Reference Index ● 227 Clear Sequence ........................................................ 62 Ellipse Scale ............................................................ 88 Vector Mo tion .......................................................... 214 Circle ................................................................[...]