Galil Motion Control DMC-21 5 Series User manual

USER MANUAL
DMC-21x5
Manual Rev. 1.0a1
Galil Motion Control, Inc.
270 Technology ay
Rocklin, California
916.626.0101
galil.com
12/2020

Using This Manual
This user manual provides information for proper operation of the DMC-21x5 controller. A separate supplemental
manual, the Command Reference, contains a description of the commands available for use with this controller. It
is recommended that the user download the latest version of the Command Reference and User Manual from the
Galil ebsite.
https://galil.com/downloads/manuals-and-data-sheets
The DMC-21x5 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.
Attention: Pertains to controllers with more than 4 axes.
Please note that many examples are written for the DMC-2145 four-axes controller or the DMC-2185 eight axes
controller. Users of the DMC-2135 3-axis controller, DMC-2125 2-axes controller or DMC-2115 1-axis controller
should note that the DMC-2135 uses the axes denoted as ABC, the DMC-2125 uses the axes denoted as AB, and
the DMC-2115 uses the A-axis only.
Examples for the DMC-2185 denote the axes as A,B,C,D,E,F,G,H. Users of the DMC-2155 5-axes controller, DMC-
2165 6-axes controller, or DMC-2175 7-axes controller should note that the DMC-2155 denotes the axes as
A,B,C,D,E, the DMC-2165 denotes the axes as A,B,C,D,E,F and the DMC-2175 denotes the axes as A,B,C,D,E,F,G. The
axes A,B,C,D may be used interchangeably with X, Y, Z, .
WARNING
Machinery in motion can be dangerous!
It is the responsibility of the user to design effective error handling and safety protection as part of
the machinery. Galil shall not be liable or responsible for any incidental or consequential damages.
Contents ▫ i DMC-21x5 User Manual 1.0a1

Contents
Contents iii
Chapter 1 Overview 1
Introduction ................................................................................................................... 1
Part Numbers ................................................................................................................ 2
Overview of Motor Types ............................................................................................. 3
Overview of Externa Amp ifiers .................................................................................. 4
Overview of Ga i Amp ifiers and Drivers ................................................................... 4
DMC-21x5 Functiona E ements .................................................................................. 5
Chapter 2 Getting Started 8
E ements Needed .......................................................................................................... 8
Layout ........................................................................................................................... 9
Insta ing the DMC, Amp ifiers, and Motors ................................................................ 10
Chapter 3 Connecting Hardware 18
Overview ....................................................................................................................... 18
Overview of Inputs ....................................................................................................... 19
Overview of Outputs ..................................................................................................... 22
Externa Amp ifier Interface ......................................................................................... 23
Chapter 4 Software Tools and Communication 24
Introduction ................................................................................................................... 24
Contro er Response to Commands .............................................................................. 24
Unso icited Messages Generated by Contro er ............................................................ 25
RS-232 Port ................................................................................................................... 25
Ethernet Configuration .................................................................................................. 26
Data Record .................................................................................................................. 28
Ga i Software ............................................................................................................... 31
Creating Custom Software Interfaces ........................................................................... 31
Chapter Command Basics 32
Introduction ................................................................................................................... 32
Command Syntax - ASCII ............................................................................................ 32
Contro er Response to DATA ...................................................................................... 34
Interrogating the Contro er .......................................................................................... 34
Chapter 6 Programming Motion 36
Overview ....................................................................................................................... 36
Independent Axis Positioning ....................................................................................... 37
Independent Jogging ..................................................................................................... 39
Position Tracking .......................................................................................................... 40
Linear Interpo ation Mode ............................................................................................ 44
Vector Mode: Linear and Circu ar Interpo ation Motion ............................................. 49
E ectronic Gearing ........................................................................................................ 55
E ectronic Cam .............................................................................................................. 58
Contour Mode ............................................................................................................... 63
Virtua Axis ................................................................................................................... 66
Stepper Motor Operation .............................................................................................. 67
Stepper Position Maintenance Mode (SPM) ................................................................. 69
Dua Loop (Auxi iary Encoder) .................................................................................... 72
Motion Smoothing ....................................................................................................... 74
Homing ......................................................................................................................... 75
Contents ▫ ii DMC-21x5 User Manual 1.0a1

High Speed Position Capture (The Latch Function) .................................................... 77
Chapter 7 Application Programming 78
Overview ....................................................................................................................... 78
Program Format ............................................................................................................ 78
Executing Programs - Mu titasking .............................................................................. 80
Debugging Programs .................................................................................................... 81
Program F ow Commands ............................................................................................ 82
Mathematica and Functiona Expressions ................................................................... 96
Variab es ....................................................................................................................... 98
Operands ....................................................................................................................... 100
Arrays ............................................................................................................................ 101
Input of Data (Numeric and String) .............................................................................. 103
Output of Data (Numeric and String) ........................................................................... 105
Hardware I/O ................................................................................................................ 109
Examp e App ications ................................................................................................... 113
Using the DMC Editor to Enter Programs (Advanced) ................................................ 117
Chapter 8 Hardware & Software Protection 118
Introduction ................................................................................................................... 118
Hardware Protection ..................................................................................................... 118
Software Protection ....................................................................................................... 119
Chapter 9 Troubleshooting 122
Overview ....................................................................................................................... 122
Chapter 10 Theory of Operation 124
Overview ....................................................................................................................... 124
Operation of C osed-Loop Systems .............................................................................. 125
System Mode ing .......................................................................................................... 126
System Ana ysis ............................................................................................................ 130
System Design and Compensation ................................................................................ 132
Appendices 13
E ectrica Specifications ................................................................................................ 135
Performance Specifications .......................................................................................... 137
Ordering Options .......................................................................................................... 138
Power Connector Part Numbers .................................................................................... 141
Pin-outs ......................................................................................................................... 142
Signa Descriptions ....................................................................................................... 145
List of Other Pub ications ............................................................................................. 147
Training Seminars ......................................................................................................... 147
Contacting Us ................................................................................................................ 148
WARRANTY ............................................................................................................... 148
Accessory Components 149
Overview ....................................................................................................................... 149
A1 – AMP-20341 1 1
Description .................................................................................................................... 151
E ectrica Specifications ................................................................................................ 152
Pin-outs ......................................................................................................................... 153
Servo Motor Operation ................................................................................................. 154
A2 – AMP-20440 1
Description .................................................................................................................... 155
E ectrica Specifications ................................................................................................ 156
Pin-outs ......................................................................................................................... 157
Servo Motor Operation ................................................................................................. 158
Error Monitoring and Protection ................................................................................... 159
A3 – AMP-20 4 /20 2 161
Contents ▫ iii DMC-21x5 User Manual 1.0a1

Description .................................................................................................................... 161
E ectrica Specifications ................................................................................................ 162
Pin-outs ......................................................................................................................... 163
Servo Motor Operation ................................................................................................. 164
Error Monitoring and Protection ................................................................................... 166
Externa Amp ifier Interface ......................................................................................... 167
Ana og Inputs ................................................................................................................ 168
A4 – SDM-20242 169
Description .................................................................................................................... 169
E ectrica Specifications ................................................................................................ 170
Pin-outs ......................................................................................................................... 171
Stepper Motor Operation .............................................................................................. 172
Error Monitoring and Protection ................................................................................... 173
A – SDM-2064 17
Description .................................................................................................................... 175
E ectrica Specifications ................................................................................................ 176
Pin-outs ......................................................................................................................... 177
Stepper Motor Operation .............................................................................................. 178
Error Monitoring and Protection ................................................................................... 179
Ana og Inputs ................................................................................................................ 180
A6 – ICM-20100 181
Description .................................................................................................................... 181
Pin-outs ......................................................................................................................... 182
A7 – ICM-2010 183
Description .................................................................................................................... 183
Pin-outs ......................................................................................................................... 184
Optoiso ated Inputs ....................................................................................................... 185
Optoiso ated Outputs .................................................................................................... 187
Amp ifier Enab e Circuit ............................................................................................... 188
A8 – DB-2804 190
Description .................................................................................................................... 190
Pin-outs ......................................................................................................................... 191
Extended I/O ................................................................................................................ 192
Ana og Inputs ................................................................................................................ 193
A9 – SR-19900 194
Description .................................................................................................................... 194
Layout ........................................................................................................................... 195
E ectrica Specifications ................................................................................................ 196
Contents ▫ iv DMC-21x5 User Manual 1.0a1

Chapter 1 Overview
Intro uction
The DMC-21x5 series is the latest in Galil's Econo line of motion controllers and is an upgraded version of the
popular DMC-21x3 series controller. The controller series offers many enhanced features compared to prior
generation controllers including high speed communications, non-volatile program memory, faster encoder
speeds, and improved command processing.
The DMC-21x5 is available with up to eight axes in a single stand alone unit. The DMC-2115, 2125, 2135, 2145 are
one thru four axes controllers and the DMC-2155, 2165, 2175, 2185 are five thru eight axes controllers. All eight
axes have the ability to use Galil's integrated amplifiers or drivers and connections for integrating external devices.
Designed to solve complex motion problems, the DMC-21x5 can be used for applications involving jogging, point-
to-point positioning, vector positioning, electronic gearing, multiple move sequences, and contouring. The
controller eliminates jerk by programmable acceleration and deceleration with profile smoothing. For smooth
following of complex contours, the DMC-21x5 provides continuous vector feed of an infinite number of linear and
arc segments. The controller also features electronic gearing with multiple master axes as well as gantry mode
operation.
For synchronization with outside events, the DMC-21x5 provides uncommitted I/O, including 8 digital inputs (16
inputs for DMC-2155 thru DMC-2185), 8 outputs (16 outputs for DMC-2155 thru DMC-2185), and 8 analog inputs
for interface to joysticks, sensors, and pressure transducers. Further I/O is available if the auxiliary encoders are
not being used (2 inputs / each axis). Dedicated inputs are provided for forward and reverse limits, Abort, home,
and definable input interrupts.
A Flash EEPROM provides non-volatile memory for storing application programs, parameters, arrays and firmware.
New firmware revisions are easily upgraded in the field.
Commands are sent in ASCII. Additional software is available for automatic-tuning, trajectory viewing on a PC
screen, and program development using many environments such as Visual Basic, C, C++ etc.
Chapter 1 Overview ▫ 1 DMC-21x5 User Manual 1.0a1

Part Numbers
The DMC controller board comes in two sizes, 1-4 axis models (labeled A-D) and 5-8 axis models (labeled E-H). The
number of axis is designated by x in the part number DMC-21x5.
The full DMC-21x5 part number is a combination of the DMC controller part number (DMC-21x5), controller board
options, and optional accessory types, where Y is option for the controller or accessory.
The placement of the AMP/SDM options is extremely important for 5-8 axis models. The first AMP/SDM (Axis A-D)
will be placed for the first bank of axes and the second AMP/SDM (Axis E-H) will be placed for the second bank.
Please use the DMC-21x5 part number generator to check the validity of all part numbers before ordering:
https://galil.com/order/part-number-generator/dmc-21x5
DMC, "DMC-21x5(Y)" Options
Option Type Options Brief Description Documentation
x 1, 2, 3, 4, 5, 6, 7, and 8 Number of controller axis N/A
Y
DIN DIN Rail Mounting DMC, "DMC-21x5(Y)" Options starting on
pg 138
UP Upward Facing 96 Pin DIN Connector
DO N Downward Facing 96 Pin DIN Connector
VVertical RS232, Status Lights, and
Ethernet
HHorizontal RS232, Status Lights, and
Ethernet
VP Vertical Power Connector
HP Horizontal Power Connector
RA Right Angle 96 Pin Connector
MO Motor Off Jumper Installed
TRES Termination Resistors
DC24, DC48 DC to DC Converter
Table 1.1: List of DMC options
Chapter 1 Overview ▫ 2 DMC-21x5 User Manual 1.0a1
Figure 1.1: Layout of DMC-21x5 with one ban of axes and layout of DMC-21x5 with two ban s of axes

Accessory Options
Option Type Options Brief Description Documentation
AMP
20341 20 brush-type only drive A1 – AMP-20341, pg 151
20440 200 brush-type only drive A2 – AMP-20440, pg 155
20540/20520 500 trapazoidal servo drive
2 and 4-axis models A3 – AMP-20545/20525, pg 161
SDM
20242 Configurable microstepping drive A4 – SDM-20242, pg 169
20640 1/64 microstepping drive A5 – SDM-20645, pg 175
ICM
20100 I/O module A6 – ICM-20100, pg 181
20105 Optoisolated I/O module A7 – ICM-20105, pg 183
DB 28040 Extended I/O daughter board A8 – DB-28045, pg 190
Y
ISCNTL Isolated controller power Accessory Specific Options, starting on pg
139
Not available for all accessory options, see the
proper documentation.
SSR Solid State Relay
LAEN Low Amplifier Enable Configuration
24V 24V Amplifier Enable Configuration
BOX Metal Enclosure
5V 5V Logic for Extended I/O
16BIT 16Bit Resolution on Analog Inputs
SHUNT Shunt Regulator A9 – SR-19900, pg 194
Table 1.2: List of accessories and options
Overview of Motor Types
The DMC-21x5 can provide the following types of motor control:
1. Standard servo motors with ±10 volt command signals
2. Step motors with step and direction signals
3. Other actuators such as hydraulics and ceramic motors - For more information, contact Galil.
The user can configure each axis for any combination of motor types, providing maximum flexibility.
Stan ar Servo Motor with ±10 Volt Comman Signal
The DMC-21x5 achieves superior precision through use of a 16-Bit motor command output DAC and a
sophisticated PID filter that features velocity and acceleration feed-forward, an extra pole filter and integration
limits.
The controller is configured by the factory for standard servo motor operation. In this configuration, the controller
provides an analog signal (±10 volts) to connect to a servo amplifier. This connection is described in Chapter 2.
Chapter 1 Overview ▫ 3 DMC-21x5 User Manual 1.0a1

Stepper Motor with Step an Direction Signals
The DMC-21x5 can control stepper motors. In this mode, the controller provides two signals to
connect to the stepper motor: Step and Direction. For stepper motor operation, the controller does
not require an encoder and operates the stepper motor in an open loop fashion. Chapter 2 describes
the proper connection and procedure for using stepper motors.
If encoders are available on the stepper motor, Galil's Stepper Position Maintenance Mode may be
used for automatic monitoring and correction of the stepper position. See Stepper Position
Maintenance Mode (SPM) in Chapter 6 for more information.
Overview of External Amplifiers
The amplifiers should be suitable for the motor and may be linear or pulse-width-modulated. An amplifier may
have current feedback, voltage feedback or velocity feedback.
Amplifiers in Current Mo e
Amplifiers in current mode should accept an analog command signal in the ±10 volt range. The amplifier gain
should be set such that a +10V command will generate the maximum required current. For example, if the motor
peak current is 10A, the amplifier gain should be 1 A/V.
Amplifiers in Velocity Mo e
For velocity mode amplifiers, a command signal of 10 volts should run the motor at the maximum required speed.
The velocity gain should be set such that an input signal of 10V runs the motor at the maximum required speed.
Stepper Motor Amplifiers
For step motors, the amplifiers should accept step and direction signals.
Overview of Galil Amplifiers an Drivers
ith the DMC-21x5 Galil offers a variety of Servo Amplifiers and Stepper Drivers that are integrated with the
controller. Using the Galil Amplifiers and Drivers provides a simple straightforward motion control solution .
Instead of having to route a +/-10V motor command signal or STEP/DIR to some external box, all the wiring is
taken care of. In addition, Galil's amplifiers reside on top of the controller, saving real estate space and the hassle
of configuring a separate device.
A full list of amplifier specifications and details can be found in the Accessory Components, pg 149.
Chapter 1 Overview ▫ 4 DMC-21x5 User Manual 1.0a1

DMC-21x5 Functional Elements
The DMC-21x5 circuitry can be divided into the following functional groups as shown in Figure 1.2 and discussed
below.
DMC-21x5
The main processing unit of the controller is a specialized Microcomputer with RAM and Flash EEPROM. The RAM
provides memory for variables, array elements, and application programs. The flash EEPROM provides non-volatile
storage of variables, programs, and arrays. The Flash also contains the firmware of the controller, which is field
upgradeable.
Motor/Enco er Interface
The controller provides an interface for quadrature decoding of each encoder at up to 15 MHz. For standard servo
operation, the controller generates a ±10 volt analog signal (16 Bit DAC). For stepper motor operation, the
controller generates a step and direction signal.
Axis I/O
The controller provided dedicated I/O for each axis such as forward and reverse limit switches, home switches, and
a high speed latch.
Communication
The communication interface with the DMC-21x5 consists of high speed 100bT Ethernet and an RS232 serial port.
General Purpose an Committe I/O
The DMC-21x5 provides interface circuitry for 8 TTL inputs, 8 TTL outputs, as well as 40 extended IO bits and 8
analog inputs with 12-Bit or 16-Bit ADC with certain accessories. Unused auxiliary encoder inputs may also be used
Chapter 1 Overview ▫ 5 DMC-21x5 User Manual 1.0a1
Figure 1.2: DMC-21x5 Functional Elements

as additional inputs (2 inputs / each axis). The general inputs as well as the index pulse can also be used as high
speed latches for each axis. A high speed encoder compare output is also provided.
2185 The DMC-2155 through DMC-2185 controller provides an additional 8 inputs and 8 outputs.
System Elements
As shown in Figure 1.3, the DMC-21x5 is part of a motion control system which includes amplifiers, motors and
encoders. These elements are described below.
Motor
A motor converts current into torque which produces motion. Each axis of motion requires a motor sized properly
to move the load at the required speed and acceleration.
The motor may be a step or servo motor and can be brush-type or brushless, rotary or linear. For step motors, the
controller can be configured to control full-step, half-step, or microstep drives. An encoder is not required when
step motors are used.
Other motors and devices such as Ultrasonic Ceramic motors and voice coils can be controlled with the DMC-21x5.
Amplifier (Driver)
For each axis, the power amplifier converts a ±10 volt signal from the controller into current to drive the motor.
For stepper motors, the amplifier converts step and direction signals into current. The amplifier should be sized
properly to meet the power requirements of the motor. For brushless motors, an amplifier that provides electronic
commutation is required or the controller must be configured to provide sinusoidal commutation. The amplifiers
may be either pulse-width-modulated (P M) or linear. They may also be configured for operation with or without
a tachometer. For current amplifiers, the amplifier gain should be set such that a 10 volt command generates the
maximum required current. For example, if the motor peak current is 10A, the amplifier gain should be 1 A/V. For
velocity mode amplifiers, 10 volts should run the motor at the maximum speed.
Galil offers amplifiers that are integrated with the DMC-21x5. See the Accessory Components section in the
Appendices or https://galil.com/motion-controllers/multi-axis/dmc-21x5 for more information.
Chapter 1 Overview ▫ 6 DMC-21x5 User Manual 1.0a1
Figure 1.3: Elements of Servo Systems

Enco er
An encoder translates motion into electrical pulses which are fed back into the controller. The DMC-21x5 accepts
feedback from either a rotary or linear encoder. Typical encoders provide two channels in quadrature, known as
MA and MB. This type of encoder is known as a quadrature encoder. Quadrature encoders may be either single-
ended (MA and MB) or differential (MA+, MA- and MB+, MB-). The DMC-21x5 decodes either type into quadrature
states or four times the number of cycles. Encoders may also have a third channel (or index) for synchronization.
The DMC-21x5 can also interface to encoders with pulse and direction signals. Refer to the "CE" command in the
command reference for details.
There is no limit on encoder line density; however, the input frequency to the controller must not exceed
3,750,000 full encoder cycles/second (15,000,000 quadrature counts/sec). For example, if the encoder line density
is 10,000 cycles per inch, the maximum speed is 375 inches/second. If higher encoder frequency is required, please
consult the factory.
The standard encoder voltage level is TTL (0-5v), however, voltage levels up to 12 Volts are acceptable. If using
differential signals, 12 Volts can be input directly to the DMC-21x5. Single-ended 12 Volt signals require a bias
voltage input to the complementary inputs.
The DMC-21x5 can accept analog feedback (±10v) instead of an encoder for any axis. For more information see the
command AF in the command reference.
To interface with other types of position sensors such as absolute encoders, Galil can customize the controller and
command set. Please contact Galil about particular system requirements.
Watch Dog Timer
The DMC-21x5 provides an internal watch dog timer which checks for proper microprocessor operation. The timer
toggles the Amplifier Enable Output (AMPEN) which can be used to switch the amplifiers off in the event of a
serious DMC-21x5 failure. The AMPEN output is normally high. During power-up and if the microprocessor ceases
to function properly, the AMPEN output will go low. The error light will also turn on at this stage. A reset is
required to restore the DMC-21x5 to normal operation. Consult the factory for a Return Materials Authorization
(RMA) Number if the controller has been damaged.
Chapter 1 Overview ▫ 7 DMC-21x5 User Manual 1.0a1

Chapter 2 Getting Starte
Elements Nee e
For a complete system, Galil recommends the following elements:
1. DMC-21x5 series motion controller
2. Motor Amplifiers (integrated when using Galil amplifiers)
3. Power Supply for controller and amplifiers
4. Brushed or brushless servo motors with encoders or stepper motors
5. Cables for connecting motors and encoders to DMC-21x5
6. PC running indows 7 or newer (64 bit) or Linux (64 bit)
7. Ethernet cable or straight-through serial cable
8. GDK software
GDK is recommended for first time users of the DMC-21x5. It provides interactive instructions for system
connection, tuning, and analysis.
Chapter 2 Getting Started ▫ 8 DMC-21x5 User Manual 1.0a1

Layout
DMC-2145 Dimensions
DMC-2185 Dimensions
Chapter 2 Getting Started ▫ 9 DMC-21x5 User Manual 1.0a1
Figure 2.1: DMC-21x5 Dimensions (inches) where x is 1 through 4 axes
005.3
530.
571.6
052.2
009.3
000.
526.
528.6
570.4
009.3
578.3
528.3
157.3
571.
571.
734.3
055.2
574.
000.
000.
056.6
056.6
526.5
525.5
528.4
000.3
000.3
527.2
000.
Figure 2.2: DMC-21x5 Dimensions (inches) where x is 5 through 8 axes
055.2
570.4
578.3
528.3
057.3
009.3
834.3
052.2
526.
574.
530.
000.
571.
000.
525.
573.9
004.01
529.9
572.9
575.8
052.7
571.6
526.5
525.5
005.3
000.3 000.3
527.2
000.
571.
575.01
000.

Installing the DMC, Amplifiers, an Motors
Installation of a complete, operational motion control system consists of the following steps:
Step 1. Connecting Encoder Feedback, pg 11 Optional for steppers
Step 2a. iring Motors to Galil's Amplifiers, pg 12 Internal Amplifiers only
Step 2b. Connecting External Amplifiers and Motors, pg 13 External Amplifiers only
Step 3. Power the Controller, pg 14
Step 4. Install the Communications Software, pg 15
Step 5. Establish Communications with Galil Software, pg 15
Step 6. Setting Safety Features, pg 16
Step 7. Tune the Servo System, pg 17 Servo motors only
WARNING All wiring procedures and suggestions mentioned in the following sections should be done with the
controller in a powered-off state. Failing to do so can cause harm to the user or to the controller.
NOTE: The following instructions are given for Galil products only. If wiring an non-Galil device, follow the
instructions provided with that product. Galil shall not be liable or responsible for any incidental or consequential
damages that occur to a 3rd party device.
Chapter 2 Getting Started ▫ 10 DMC-21x5 User Manual 1.0a1

Step 1. Connecting Enco er Fee back
The type of feedback the controller is capable of interfacing with depends on the additional options ordered for
the controller. Table 2.1 shows the different encoder feedback types available for the DMC-21x5 including which
options are required. Note that each feedback type has a different configuration command. See the Command
Reference for full details on how to properly configure each axis.
NOTE: GDK's Step-By-Step tool provides an interactive walk-through for configuring motor encoders.
Fee back Type Configuration
Comman ICM/Part Number Require Connection Location Firmware Require
Standard
Quadrature CE Standard on all units Encoder Standard
Pulse and
Direction CE Standard on all units Encoder Standard
None1– – – –
Other Contact Galil
Table 2.1: Configuration commands, ICM/Part numbers required for a given feedbac type
1 Although stepper systems do not require feedback, Galil supports a feedback sensor on each stepper axis. Servo motors require a
position sensor.
Different feedback types can be used on the same controller. For instance, one axis could be using standard
quadrature and the next could be using pulse and direction. By default, all axes are configured for standard
quadrature.
hen a stepper motor is used, the auxiliary encoder for the corresponding axis is unavailable for an external
connection. If an encoder is used for position feedback with a stepper motor, connect the encoder to the main
encoder input corresponding to that axis. The commanded position of the stepper can be interrogated with TD and
the encoder position can be interrogated with TP.
Encoder pin-outs can be found here:
A1 – AMP-20341, pg 153
A2 – AMP-20440, pg 157
A3 – AMP-20545/20525, pg 163
A4 – SDM-20242, pg 171
A5 – SDM-20645, pg 177
A6 – ICM-20100, pg 182
A7 – ICM-20105, pg 184
Chapter 2 Getting Started ▫ 11 DMC-21x5 User Manual 1.0a1

Step 2a. Wiring Motors to Galil's Amplifiers
If an external amplifier is being used, proceed to Step 2b. Connecting External Amplifiers and Motors. Table 2.2
below provides a general overview of the connections required for connecting different types of motors to Galil
internal amplifiers.
Motor Type Require Connections
Brushless servo motor • Power to controller and internal amplifier
• Motor power leads to internal amplifiers
• Encoder feedback
• Hall sensors
Brushed servo motor • Power to controller and internal amplifier
• Motor power leads to internal amplifiers
• Encoder feedback
Stepper motor • Power to controller and internal drive
• Motor power leads to internal drive
• Encoder feedback (optional)
Table 2.2: Synopsis of connections required to connect a motor to Galil's internal amplifiers
Table 2.3 lists each of Galil's internal amplifiers and where to find pin-outs of the amplifier connections and
electrical specifications. The commutation method and whether hall sensors are required are also listed.
Amplifier Commutation Hall Sensors Require
A1 – AMP-20341, pg 151 Brushed No
A2 – AMP-20440, pg 155 Brushed No
A3 – AMP-20545/20525, pg 161 Trapezoidal or Brushed Required for brushless motors
A4 – SDM-20242, pg 169 N/A, Stepper No
A5 – SDM-20645, pg 175 N/A, Stepper No
Table 2.3: Amplifier documentation location, commutation method(s), and hall sensor requirements for each internal amplifier.
Pin-outs for the hall sensor inputs can be found here:
A3 – AMP-20545/20525, pg 163
Chapter 2 Getting Started ▫ 12 DMC-21x5 User Manual 1.0a1

Step 2b. Connecting External Amplifiers an Motors
System connection procedures will depend on system components and motor types. Any combination of motor
types can be used with the DMC-21x5. There can also be a combination of axes running from Galil integrated
amplifiers and drivers and external amplifiers or drivers.
Table 2.4 below shows a brief synopsis of the connections required, the full walkthrough guide is provided below.
Motor Type Connection Requirements
Servo motors
(Brushed and Brushless)
• Power to controller and amplifier
• Amplifier Enable
• Motor Command
• Encoder Feedback
• See amplifier documentation for motor connections
Stepper motor • Power to controller and amplifier
• Amplifier enable
• Step and Direction lines
• Encoder feedback (optional)
• See amplifier documentation for motor connections
Table 2.4: Synopsis of connections required to connect an external amplifier
Step A. Connect the motor to the amplifier
Initially do so with no connection to the controller. Consult the amplifier documentation for instructions regarding
proper connections. Connect and turn-on the amplifier power supply. If the amplifiers are operating properly, the
motor should stand still even when the amplifiers are powered up.
Step B. Connect the amplifier enable signal
Before making any connections from the amplifier to the controller, verify that the ground level of the amplifier is
either floating or at the same potential as earth.
WARNING
hen the amplifier ground is not isolated from the power line or when it has a different potential
than that of the computer ground, serious damage may result to the computer, controller, and
amplifier.
If there is uncertainty about the potential of the ground levels, connect the two ground signals (amplifier ground
and earth) by a 10 k resistor and measure the voltage across the resistor. Only if the voltage is zero, connect the
two ground signals directly.
The amplifier enable signal is defaulted to 24V, high amp enable sinking (the amplifier enable signal will be high
when the controller expects the amplifier to be enabled).
Pin-outs for the amplifier enable signal can be found here:
External Amplifier Interface, pg 142
A6 – ICM-20100, pg 182
A7 – ICM-20105, pg 184
For see External Amplifier Interface, pg 23 for full electrical specifications .
Chapter 2 Getting Started ▫ 13 DMC-21x5 User Manual 1.0a1

Once the amplifier enable signal is correctly wired, issuing an MO will disable the amplifier and an SH will enable it.
Step C. Connect the command signals
The DMC-21x5 has two ways of controlling amplifiers:
1. Using a motor command line (±10V analog output). The motor and the amplifier may be configured in
torque or velocity mode. In the torque mode, the amplifier gain should be such that a 10V signal
generates the maximum required current. In the velocity mode, a command signal of 10V should run
the motor at the maximum required speed.
2. Using step (0-5V) and direction (0-5V toggling line), this is referred to as step/dir for short.
The pin-outs for the command signals can be found here:
External Amplifier Interface, pg 142
A6 – ICM-20100, pg 182
A7 – ICM-20105, pg 184
See External Amplifier Interface, pg 23 for full electrical specifications.
Step D. Issue the appropriate configuration commands
The Motor Type (MT) command is used to configure each axis for a stepper or servo motor. The Configure Encoder
(CE) command is used to configure the encoder for each axis.
Step 3. Power the Controller
WARNING Exercise caution with the application of this equipment. Only qualified individuals should attempt to
install, set up, and operate this equipment. Never open the controller box when DC power is applied.
Table 2.5 below shows which power connectors are required for powering the system based upon the options
ordered. If multiple options are ordered, multiple power connections will be required. Different options may effect
which connections and what bus voltages are appropriate.
Part Number +/-12, +5 +VDC, Top Right
Connector
AMP/SDM Power
Connector, Axis A-D
(6- or 4-pin Molex)
AMP/SDM Power
Connector, Axis E-H
(6- or 4-pin Molex)
DMC-21x5 X
DMC-21x5-DC x
DMC-21x5-AMP/SDM x x
DMC-21x5-DC-AMP/SDM x
DMC-21x5-DC-AMP/SDM-ISCNTL x x
DMC-21x5-AMP/SDM-AMP/SDM x x x
DMC-21x5-DC-AMP/SDM-AMP/SDM x x
DMC-21x5-DC-AMP/SDM-AMP/SDM-ISCNTL x x x
Table 2.5: Required power connections based upon options ordered
Chapter 2 Getting Started ▫ 14 DMC-21x5 User Manual 1.0a1

WARNING Controller or amplifier power should never be plugged in HOT. Always power down the power supply
before installing or removing power connector(s) to/from controller or amplifier.
For more information regarding connector type and part numbers see Power Connector Part Numbers, pg 141. The
power specifications for the controller are provided in Power Requirements, pg 136 and the power specifications
for each amplifier are found under their specific section in the appendix, see Accessory Components, pg 149.
Any emergency stop or disconnect switches should be installed on the AC input to the DC power supply. Relays
and/or other switches should not be installed on the DC line between the Galil and the Power supply.
The green power light indicator should go on when power is applied.
Step 4. Install the Communications Software
After applying power to the controller, a PC is used for programming. Galil's development software enables
communication between the controller and the host device. The current version of Galil's development software
can be found here: https://galil.com/downloads/software/gdk
Step 5. Establish Communications with Galil Software
NOTE: GDK's Step-By-Step tool provides an interactive and easy to follow guide to setting up a indows PC for
communication with Galil controllers.
GDK will automatically setup the computer for serial communication. For Ethernet communication, see this video
for how to configure a NIC card using indows to connect to a DMC controller:
https://galil.com/learn/online-videos/basics-galil-design-kit-manager-terminal-and-editor
See the GDK manual for using the software to communicate: https://galil.com/sw/pub/all/doc/gdk/man/
Chapter 2 Getting Started ▫ 15 DMC-21x5 User Manual 1.0a1
Table of contents
Other Galil Motion Control Computer Hardware manuals
Popular Computer Hardware manuals by other brands

Roland
Roland House Collection SR-JV80-19 owner's manual

Epson
Epson S1C88650 Technical manual

Renesas
Renesas IE-703107-MC-EM1 user manual

AXIOMTEK
AXIOMTEK FAB110-5B1P2 Quick installation guide

United Electronic Industries
United Electronic Industries DNA-AI-208 user manual

National Instruments
National Instruments NI PXIe-1062Q installation guide