By Galil Motion Control, Inc
DMC-2x00
Using This Manual
Contents
Connecting Hardware
Communication
Iv Contents DMC-2X00
Application Programming
Troubleshooting 130
Contents y
Index 210
Overview
DMC- 2000 Family Part Number Definition
Specifications
Electrical Specifications
Mechanical Specifications
Overview of Motor Types
Environmental Specifications
Equipment Maintenance
Standard Servo Motor with +/- 10 Volt Command Signal
Overview of Amplifiers
Stepper Motor with Step and Direction Signals
Amplifiers in Current Mode
Amplifiers in Velocity Mode
Communication
DMC-2x00 Functional Elements
Microcomputer Section
Motor Interface
Amplifier Driver
General I/O
System Elements
Motor
Encoder
Watch Dog Timer
This page Left Blank Intentionally
Getting Started
Outline of the DMC-2000 Daughter Board
DMC-2000 Daughter Board
3B Outline of the DMC-2200 Daughter Board
DMC-2200 Daughter Board
CABLE-USB-2M CABLE-USB-3M
Elements You Need
Recommended System Elements of DMC-2100/DMC-2200
Standard Servo Motor Operation
Installing the DMC-2x00
Determine Overall Motor Configuration
Stepper Motor Operation
Install Jumpers on the DMC-2x00
Master Reset and Upgrade Jumpers
Sinusoidal Commutation
Configure DIP switches on the DMC-2000
Configure DIP switches on the DMC-2200
Switch 4, 5 and 6 Main Serial Port Baud Rate
Switch 10 USB
Configure DIP switches on the DMC-2100
Connect AC Power to the Controller
Install the Communications Software
Communicating through the Main Serial Communications Port
Establish Communications with Galil Software
Communicating through the Ethernet
Communicating through the Universal Serial Bus USB
Determine the Axes to be Used for Sinusoidal Commutation
Sending Test Commands to the Terminal
Make Connections to Amplifier and Encoder
DMC-2X00
Connect Standard Servo Motors
BGA CR
Inverting the Loop Polarity
ICM-2900
Connect Sinusoidal Commutation Motors
Example Sinusoidal Commutation Configuration using a DMC
Getting Started DMC-2X00
SHA
Tune the Servo System
Connect Step Motors
Instruction Interpretation
Design Examples
System Set-up
InstructionInterpretation
Position Interrogation
Profiled Move
Multiple Axes
Independent Moves
Velocity Control
Absolute Position
Interrogation
Operation in the Buffer Mode
Using the On-Board Editor
Operation Under Torque Limit
Line # Instruction Interpretation
Motion Programs with Loops
Motion Programs with Trippoints
AMA
Control Variables
Linear Interpolation
XQ #B
VM AB
Circular Interpolation
LM ABC
BGS
This page Left Blank Intentionally
Overview
Using Optoisolated Inputs
Limit Switch Input
Abort Input
Home Switch Input
Opto-Isolation Common Point
Wiring the Opto-Isolated Inputs
Reset Input
Uncommitted Digital Inputs
Optoisolated Inputs
Using an Isolated Power Supply
Bypassing the Opto-Isolation
Analog Inputs
Amplifier Interface
Auxiliary Encoder Inputs
TTL Inputs
Output Compare
TTL Outputs
General Use Outputs
Interfacing to Grayhill or OPTO-22 G4PB24
Error Output
Extended I/O of the DMC-2x00 Controller
RS232 Auxiliary Port P2 Dataset
Introduction
RS232 Ports
RS232 Main Port P1 Dataterm
Baud Rate Selection
RS-232 Configuration
RS422 Main Port P1
RS422 Auxiliary Port P2
Address
Daisy-Chaining DMC-2000 only
Communication Protocols
Ethernet Configuration DMC-2100/2200 only
Command Interpretation
LED
Addressing
DMC-2X00
Communicating with Multiple Devices
Multicasting
Using Third Party Software
Data Record Map
Data Record
DMC-2X00
BIT
Header Information Byte 0, 1 of Header
Axis Status Information 2 Byte
Axis Switch Information 1 Byte
Bytes 2, 3 of Header
General Status Information 1 Byte
QZ Command
Controller Response to Commands
Galil Software Tools and Libraries
Unsolicited Messages Generated by Controller
Important All DMC-2x00 commands are sent in upper case
Command Syntax Ascii
BG S
BG Abcd
BG Abcdefgh
BG D
Header Format
Command Syntax Binary
LE, VE
Binary Command Table
Datafields Format
Example
Controller Response to Data
Interrogating the Controller
Interrogation Commands
Summary of Interrogation Commands
Interrogating Current Commanded Values
=TPA
Command Summary
This page Left Blank Intentionally
Example Application Mode of Motion Commands
GP, GR
Independent Axis Positioning
VS,VA,VD
GA, GD
Operand Summary Independent Axis
Command Summary Independent Axis
Multiple Move Sequence
Examples
Absolute Position Movement
5000 Time ms 100
Position Tracking
20000
15000 10000
Example Motion
Command Description PT1
Motion
Example
Position vs. Time msec Motion
Velocity vs.Time Motion
Velocity cts/sec vs. Time msec with IT Motion
Trip Points
Independent Jogging
Command Summary Position Tracking Mode
Command Summary Jogging
#JOY
Jog in X only
Joystick Jogging
AS a
Specifying Linear Segments
Linear Interpolation Mode
Specifying the Coordinate Plane
#ALT
Additional Commands
Specifying Vector Speed for Each Segment
Changing Feed Rate
Linear Interpolation Motion
Command Summary Linear Interpolation
Operand Summary Linear Interpolation
LM CD
Linear Move
Position D
Multiple Moves
Vector Mode Linear and Circular Interpolation Motion
Specifying Vector Segments
Tangent Motion
Compensating for Differences in Encoder Resolution
Command Summary Coordinated Motion Sequence
Trippoints
Operand
Operand Summary Coordinated Motion Sequence
Tangent Axis
SB0
Coordinated Motion
BG ABC
AM ABC
Ramped Gearing
Electronic Gearing
Velocity cts/sec vs. Time msec Ramped Gearing
GA Z, Z
Command Summary Electronic Gearing
Electronic Gearing Over a Specified Interval
MO Z
Electronic Gearing
Gantry Mode
Simple Master/Slave
GA,A
Electronic Cam
DMC-2X00
3000 2250 1500 2000 4000 6000 Master a
Command Description
Command Summary Electronic CAM
Electronic CAM
Operand Summary Electronic CAM
Specifying Contour Segments
Contour Mode
DT0CD0
336 288 240 192 Time ms
CMA
Generating an Array
Command Summary Contour Mode
Command Description CM Abcdefgh
General Velocity Profiles
#POINTS
Contour Mode
Record and Playback Example
Teach Record and Play-Back
Sinusoidal Motion Example
Virtual Axis
Ecam master example
Stepper Motor Smoothing
Monitoring Generated Pulses vs. Commanded Pulses
Stepper Motor Operation
Specifying Stepper Motor Operation
Motion Complete Trip point
Using an Encoder with Stepper Motors
Command Summary Stepper Motor Operation
Operand Summary Stepper Motor Operation
Stepper Position Maintenance Mode SPM
SHX
Error Limit
Example SPM Mode Setup
Correction
#MOTION
Example Error Correction
Example Friction Correction
Dual Loop Auxiliary Encoder
= Main Encoder Second Encoder
Additional Commands for the Auxiliary Encoder
Backlash Compensation
Continuous Dual Loop
DE0
Motion Smoothing
Sampled Dual Loop
#DUALOOP
Using the IT and VT Commands
Trapezoidal velocity and smooth velocity profiles
Using the KS Command Step Motor Smoothing
Homing
Home Sensor Home Switch
Input Function
Command Summary Homing Operation
High Speed Position Capture The Latch Function
Operand Summary Homing Operation
JP #WAIT,ALB=1
#LATCH
AL B
#WAIT
Application Programming
Using the DOS Editor to Enter Programs DMC-2000 only
ED #BEGIN
Edit Mode Commands
#START
Using Labels in Programs
Program Format
Special Labels
Commenting Programs
No Command
REM Half Circle Motion VP 0,3000 REM TOP Line
REM Command
Executing Programs Multitasking
Debugging Programs
Trace Commands DMC-2100/2200 only
RAM Memory Interrogation Commands
Error Code Command
Stop Code Command
Event Triggers & Trippoints
Program Flow Commands
AS a B C D E F G H
Command Function
DMC-2x00 Event Triggers
Example Start Motion on Input
Example- Multiple Move Sequence
Example- Set Output after Distance
Example- Repetitive Position Trigger
Example Change Speed along Vector Path
Example Set Output when At Speed
Conditional Jumps
Example- Define Output Waveform Using AT
Example Multiple Move with Wait
Multiple Conditional Statements
Command Format JP and JS
Logical operators
Conditional Statements
#BEGIN
Examples
If, Else, and Endif
JP#A
Nesting if Conditional Statements
Using the if and Endif Commands
Using the Else Command
Command Format IF, Else and Endif
Auto-Start Routine
Subroutines
Stack Manipulation
Automatic Subroutines for Monitoring Conditions
Example Limit Switch
Example Input Interrupt
Example Position Error
Example Motion Complete Timeout
Example Command Error
PAA=0
Example Command Error w/Multitasking
Example Communication Interrupt
Example Ethernet Communication Error
Operator Function
Mathematical and Functional Expressions
Mathematical Operators
Bit-Wise Operators
Response from command MG len6 S4
Functions
Variables
Assigning Variable Values to Controller Parameters
Programmable Variables
Assigning Values to Variables
Special Operands Keywords
Example Using Variables for Joystick
Operands
Displaying the value of variables at the terminal
Time
Arrays
Defining Arrays
Assignment of Array Entries
Automatic Data Capture into Arrays
Using a Variable to Address Array Elements
Uploading and Downloading Arrays to On Board Memory
Example Recording into an Array
Command Summary Automatic Data Capture
Data Types for Recording
Operand Summary Automatic Data Capture
Example- Inputting Numeric Data
Input of Data Numeric and String
Deallocating Array Space
Input of Data
Keyword Function
Operator Data Entry Mode
Using Communication Interrupt
Inputting String Variables
Output of Data Numeric and String
Formatting Messages
Sending Messages
Specifying the Port for Messages
Example Printing a Variable and an Array element
Using the MG Command to Configure Terminals
Summary of Message Functions
Displaying Variables and Arrays
LZ0
0000000009
LZ1
Local Formatting of Response of Interrogation Commands
Formatting Variables and Array Elements
Local Formatting of Variables
Alph
Hardware I/O
Converting to User Units
Digital Outputs
Example Turn on output after move
Example- Set Bit and Clear Bit
Example- Output Bit
Example- Output Port
AI 1BGA
Example Using Inputs to control program flow
Example Start Motion on Switch
Input Interrupt Function
ST AB
Analog Inputs
Example Position Follower Point-to-Point
TP AB
#CONT
Configuring the I/O of the DMC-2x00
Example Position Follower Continuous Move
PA VP
Argument Blocks Bits Description
Accessing Extended I/O
Saving the State of the Outputs in Non-Volatile Memory
Bit I/O Block Binary Decimal Value for Representation
Interfacing to Grayhill or OPTO-22 G4PB24
Wire Cutter
Example Applications
JP #A
Table Controller
BGS AMS
AMC
BGC AMC
Speed Control by Joystick
Backlash Compensation by Sampled Dual-Loop
Position Control by Joystick
BGA JP #B
This page Left Blank Intentionally
Output Protection Lines
Hardware Protection
Input Protection Lines
Software Protection
#AJP #AEN
Off-On-Error
Automatic Error Routine
Programmable Position Limits
Limit Switch Routine
Installation
Troubleshooting
Operation
Communication
Stability
Theory of Operation
Level
Velocity and Position Profiles
Operation of Closed-Loop Systems
Functional Elements of a Motion Control System
System Modeling
Current Drive
Motor-Amplifier
Voltage Drive
Elements of velocity loops
Velocity Loop
Voltage Source
Digital Filter
DAC
ZOH
System Analysis
Magnitude 200 2000 Rad/s
Analytical Method
System Design and Compensation
Theory of Operation DMC-2X00
Equivalent Filter Form
Input / Output
Electrical Specifications
Servo Control
Stepper Control
Normal
Performance Specifications
Power
Minimum Servo Loop Update Time
Fast Update Rate Mode
DMC-2x00 Axes A-D High Density Connector
Connectors for DMC-2x00 Main Board
DMC-2x00 Axes E-H High Density Connector
DMC-2x00 Extended I/O 80 Pin High Density Connector
DMC-2x00 Auxiliary Encoder 36 Pin High Density Connector
+5V
USB USB Out
Pin Signal
RS-232-Main Port
RS-232-Auxiliary Port
Ethernet
Standard RS-232 Specifications
Pin Serial Connector Male, D-type
Cable Connections for DMC-2x00
Pin Male computer Pin female controller
DMC-2x00 Serial Cable Specifications
Pin Female terminal Pin Male Controller
Pin Female Computer Pin Female Controller
Pin Male terminal Pin male controller
Inputs
Pin-Out Description for DMC-2x00
Outputs
Appendices DMC-2X00
Function If jumpered
Jumper Description for DMC-2x00
Jumper Label
Dimensions for DMC-2x00
DMCWIN16 DMCWIN32 SETUP16 SETUP32 KIT
Accessories and Options
Block 4 PIN Label Description
ICM-2900 Interconnect Module
Description
Signy
Error
Pwmx
Mocmdy
Ylatch
Reset
IN8
Xlatch
MBZ
+MAZ
MAZ
+MBZ
ICM
ICM-2900 Drawing
ICM-2908 Interconnect Module
ICM-2908
ICM-2908 Drawing
PCB Layout of the ICM-2900
Terminal Label
Features
ISO OUT Power Error Reset CMP Mocmdw
ICM-1900 Interconnect Module
DMC-2X00
100 101 102 103 104 105 106 107
MBW +INW
AMP-19x0 Mating Power Amplifiers
ICM-1900 Drawing
Standard Opto-Isolation and High Current Opto-isolation
Specifications
Opto-Isolated Outputs for ICM-2900 / ICM-1900 / AMP
DMC-2000 ICM-1900 / ICM-2900
Configuring the Amplifier Enable for ICM-2900 / ICM
Changing the Amplifier Enable Voltage Level
Laen Option
Overview
IOM-1964 Opto-Isolation Module for Extended I/O
Figure A-7
Configuring Hardware Banks
Input Circuit
Figure A-10
High Power Digital Outputs
Figure A-12
Standard Digital Outputs
Figure A-14
Digital Inputs
Screw Terminal Listing
High Power Digital Outputs
Relevant DMC Commands
Standard Digital Outputs
DMC-2X00
PWROUT29
PWROUT32
PWROUT31
PWROUT30
CB-50-100 Adapter Board
Connectors
Appendices DMC-2X00
JC6 50 PIN IDC J9 100 PIN High Density Connector
JC8 JC6
CB-50-100 Drawing
Figure A-16
CB-50-80 Adapter Board
JC8
JC6
CB-50-80 Outline
CB-50-80 Drawing
CB-50-80 Layout
Figure A-19
TERM-1500 Operator Terminal
Figure A-20
Specifications Hand-Held
Shift Key Output
Specifications Panel Mount
Keypad Maps Hand-Held
Single Key Output
Keypad Map Panel Mount 6 columns x 5 rows
Escape Commands
Cursor Movement Commands
Configuration
Function Keys
Default Configuration
Default Function Keys
Input/Output of Data DMC-2x00 Commands
Ordering Information
Pin Modular Connector
Pin D Adaptor Male For P2
Vs = Vx 2 + Vy
Coordinated Motion Mathematical Analysis
Lk = Xk 2 + Yk
Velocity
Example- Communicating with OPTO-22 SNAP-B3000
NUMOFIO=4
#CFGDOUT
MODULE=2
CFGVALUE=$180
Appendices DMC-2X00
DMC-2x00 DMC-1500
DMC-2x00/DMC-1500 Comparison
Training Seminars
List of Other Publications
Contacting Us
Warranty
Limswi
Index
PID
Poserr