DMC-1700/1800
1X80 17X8
Using This Manual
Contents
Ii Contents
Connecting Hardware
Programming Motion
Application Programming 135
Iv Contents
Troubleshooting 181
Vi Contents
DMC-1700/1800 Overview
Introduction
Stepper Motor with Step and Direction Signals
Standard Servo Motor with +/- 10 Volt Command Signal
Overview of Motor Types
DMC-1700/1800 Functional Elements
Motor Interface
Microcomputer Section
Communication
General I/O
Motor
System Elements
Amplifier Driver
Encoder
Watch Dog Timer
This page Left Blank Intentionally
DMC-1700/1800 Getting Started
DMC-17x0 and DMC-18x0 Motion Controllers
JP1 JP3
RAM
JP5
Elements You Need
JP6
JP8
Determine Overall Motor Configuration
Installing the DMC-1700/1800
Standard Servo Motor Operation
Sinusoidal Commutation
Install Jumpers on the DMC-1700/1800
Optional Motor Off Jumpers
Optional IRQ Interrupt Jumpers
Install the Communications Software
DMC-1700 Install
Install the DMC-1700/1800 in the PC
DMC-1800 Install
Using Galil Software for DOS DMC-1700 only
Using Galil Software for Windows 98 SE, ME, XP,
On the first dialog, select Add/Troubleshoot
DMC-1700/1800 Getting Started
Getting Started
Automatically Assigned resources in Win 98 SE
Device Manager in Win 98 SE
Edit Input/Output Range in Win 98 SE
Using Galil Software for Windows NT
DMC-1700/1800 Getting Started
Determine the Axes to be Used for Sinusoidal Commutation
Sending Test Commands to the Terminal
Make Connections to Amplifier and Encoder
Getting Started
Check the Polarity of the Feedback Loop
Connect Standard Servo Motors
BGX CR
Inverting the Loop Polarity
DC Power Supply
Getting Started
Baxz
Connect Sinusoidal Commutation Motors
If Hall Sensors are Not Available
If Hall Sensors are Available
AMX
Connect Step Motors
TE X CR
Tune the Servo System
Example 1 System Set-up
Design Examples
Example 2 Profiled Move
Instruction Interpretation
Example 5 Position Interrogation
Example 3 Multiple Axes
Example 4 Independent Moves
Example 8 Operation Under Torque Limit
Example 6 Absolute Position
Example 7 Velocity Control
Example 11 Using the On-Board Editor
Example 10 Operation in the Buffer Mode
Example 9 Interrogation
Line # Instruction Interpretation
Example 13 Motion Programs with Trippoints
Example 12 Motion Programs with Loops
Example 14 Control Variables
BGY
Example 16 Circular Interpolation
Example 15 Linear Interpolation
4000
This page Left Blank Intentionally
Limit Switch Input
Using Optoisolated Inputs
DMC-1700/1800 Connecting Hardware
Overview
Abort Input
Home Switch Input
Uncommitted Digital Inputs
Wiring the Optoisolated Inputs
Optoisolated Inputs
Using an Isolated Power Supply
Bypassing the Opto-Isolation
Analog Inputs
Amplifier Interface
TTL Outputs
TTL Inputs
DMC-1700/1800 Connecting Hardware
This page Left Blank Intentionally
DMC-1700/1800 Software Tools and Communications
Software Tools and Communications
DMC-1800 FIFO, DPRAM, IRQ DMC-1700 FIFO, DMA, IRQ
Galil SmartTERM
Galil SmartTERM
Recent enough to support the QU command
DMC Program Editor Window
Data Record Display for a DMC-1840
Galil Registry Editor
Communication Settings for ISA and PCI
Setting Communications Parameters and Methods
General Communications Parameters Dialog
Interrupt Communications Method
Stall Thread and Delay Thread Methods
Data Record Cache Depth
Data Record Refresh Rate
DMC-1700 Data Record Parameters
Wsdk Main Screen
Windows Servo Design Kit Wsdk
Galil Communications API with C/C++
Creating Custom Software Interfaces
Declare Functions
Sending Commands in VB
End Sub
DOS, Linux, and QNX tools
Enabling Event Interrupts EI command
Controller Event Interrupts and User Interrupts
Linux
Bit number Input
Bit Number Condition
Status Byte hex Condition
Hardware Level Communications for ISA and PCI
Communications with the DMC-1700
Communication with DMC-1700
Simplified Communications Procedure
Control Register N+1
Register Address Read/Write Description
Reading the Data Record using the Polling Fifo
Interrupt Service for the DMC-1700
Determining the Base Address
Polling Fifo Mode Read Procedure
Secondary Fifo Registers
PCI Device Identification
Simplified Communication Procedure
Read, Write, and Control Registers
Communication with DMC-1800
Half Full Flag
Fifo Control Register at N+4
Reading the Data Record from the Secondary Fifo
Enabling and Reading IRQ’s
Dual Port RAM Dpram access for reading the Data Record
Reset Register at N+8
DMA / Secondary Fifo / Dpram Memory Map
Write
General output block 6 outputs
DMC-1700/1800 Software Tools and Communications
General Status Information 1 Byte
Axis Switch Information 1 Byte
Axis Status Information 1 Word
BIT
DMC-1700/1800 Software Tools and Communications
This page Left Blank Intentionally
DMC-1700/1800 Command Basics
Command Syntax Ascii
Coordinated Motion with more than 1 axis
Command Syntax Binary
Header Format
Binary Command Format
Datafields Format
A7 02 00 05 03 E8 FE 0C
Example
Binary command table
Summary of Interrogation Commands
Interrogation Commands
Controller Response to Data
Interrogating the Controller
Operands
Interrogating Current Commanded Values
Command Summary
DMC-1700/1800 Programming Motion
VS,VA,VD
Operand Summary Independent Axis
Command Summary Independent Axis
Independent Axis Positioning
Example Multiple Move Sequence
Example Absolute Position Movement
Command
Command Summary Jogging
Independent Jogging
Axis velocity profile
Example Joystick Jogging
Position Tracking
Example Jog in X only
Command Description PT1
Position vs Time msec Motion
Example Motion
Velocity vs Time msec Motion
Velocity vs.Time Motion
Trip Points
Command Summary Position Tracking Mode
Linear Interpolation Mode
Command Description
Specifying Linear Segments
Specifying Vector Speed for Each Segment
Additional Commands
An Example of Linear Interpolation Motion
Operand Summary Linear Interpolation
Command Summary Linear Interpolation
Changing Feedrate
LM?
LM ZW
Example Linear Move
COUNT=0
Example Multiple Moves
#LOAD
Specifying Vector Segments
Vector Mode Linear and Circular Interpolation Motion
Specifying the Coordinate Plane
Additional commands
Tangent Motion
Compensating for Differences in Encoder Resolution
Trippoints
Example
Command Summary Coordinated Motion Sequence
Operand Summary Coordinated Motion Sequence
Required Path
Electronic Gearing
Ramped Gearing
GA Z, Z
Example Electronic Gearing Over a Specified Interval
MO Z
Example Gantry Mode
Command Summary Electronic Gearing
Example Simple Master Slave
Example Electronic Gearing
GA,X
Electronic Cam
GA, CX
ET0=,0
EM 6000,1500
EP 2000,0
EQ x,y,z,w
EG x,y,z,w
Command Description
Command Summary Electronic CAM
Example Electronic CAM
Operand Summary Electronic CAM
Specifying Contour Segments
Contour Mode
DT0CD0
CMX
Command CM Xyzw CM Abcdefgh
Command Summary Contour Mode
General Velocity Profiles
Generating an Array An Example
#POINTS
Contour Mode Example
POSC=V4
DIFC=POSD-POSC
Record and Playback Example
Teach Record and Play-Back
Ecam Master Example
Virtual Axis
Sinusoidal Motion Example
DT2
Stepper Motor Operation
Monitoring Generated Pulses vs Commanded Pulses
Specifying Stepper Motor Operation
Stepper Motor Smoothing
Command Summary Stepper Motor Operation
Using an Encoder with Stepper Motors
Operand Summary Stepper Motor Operation
Motion Complete Trippoint
Error Limit
Stepper Position Maintenance Mode SPM
Internal Controller Commands user can query
User Configurable Commands user can query & change
Correction
Example SPM Mode Setup
Full-Stepping Drive, X axis
Half-Stepping Drive, X axis
#MOTION
Example Error Correction
#LOOPJP#LOOP
#POSERR
Example Friction Correction
Additional Commands for the Auxiliary Encoder
Using the CE Command
Dual Loop Auxiliary Encoder
DE 0,500,-30,300
Continuous Dual Loop Example
Backlash Compensation
Sampled Dual Loop Example
V1= DEX
Motion Smoothing
Using the IT and VT Commands
Example Smoothing
JP#END,@ABSV22
Trapezoidal velocity and smooth velocity profiles
Using the KS Command Step Motor Smoothing
Stage
Homing
MG AT Home
Example Homing
#HOME
Switch
High Speed Position Capture The Latch Function
Command Summary Homing Operation
Operand Summary Homing Operation
Example Find Edge
AL Y
Fast Update Rate Mode
Programming Motion
DMC-1700/1800 Application Programming
Using the DMC-1700/1800 Editor to Enter Programs
ED #BEGIN
Program Format
Edit Mode Commands
Using Labels in Programs
Commenting Programs
Using the command, no or Apostrophe ‘
Special Labels
HX n
Executing Programs Multitasking
XQ #A, n
Error Code Command
Trace Commands
Stop Code Command
RAM Memory Interrogation Commands
Debugging Example
Program Flow Commands
Operands
Event Triggers & Trippoints
Function
DMC-1700 and DMC-1800 Event Triggers
AS X Y Z W S
Event Trigger Multiple Move Sequence
Event Trigger Examples
Event Trigger Set Output after Distance
Event Trigger Repetitive Position Trigger
Event Trigger Change Speed along Vector Path
Event Trigger Set output when At speed
Event Trigger Start Motion on Input
Event Trigger Multiple Move with Wait
Define Output Waveform Using AT
Conditional Jumps
Logical operators
Command Format JP and JS
Conditional Statements
Multiple Conditional Statements
Using the JP Command
Using If, Else, and Endif Commands
Example Using JP command
Using the if and Endif Commands
Command Format IF, Else and Endif
Using the Else Command
Example using IF, Else and Endif
Nesting if Conditional Statements
Stack Manipulation
Subroutines
Auto-Start Routine
Automatic Subroutines for Monitoring Conditions
Example Position Error
Example Limit Switch
Example Input Interrupt
Example Motion Complete Timeout
Example Command Error w/Multitasking
Example Command Error
Bit-Wise Operators
Mathematical and Functional Expressions
Mathematical Operators
ENTER,LENS6
Functions
FLEN=@FRACLEN
LEN1=FLEN&$00FF
Programmable Variables
Variables
Assigning Values to Variables
PR Posx
Operands
Example Using Variables for Joystick
Assigning Variable Values to Controller Parameters
Displaying the value of variables at the terminal
Special Operands Keywords
Arrays
Defining Arrays
Examples of Internal Variables
Uploading and Downloading Arrays to On Board Memory
Using a Variable to Address Array Elements
Assignment of Array Entries
Data Types for Recording
Command Summary Automatic Data Capture
Automatic Data Capture into Arrays
Input of Data
Input of Data Numeric and String
Deallocating Array Space
Sending Messages
Output of Data Numeric and String
Cut-to-Length Example
Inputting String Variables
Final Value is
Using the MG Command to Configure Terminals
Formatting Messages
MG 07
Displaying Variables and Arrays
Summary of Message Functions
PF m.n
Local Formatting of Response of Interrogation Commands
LZ0
LZ1
Converting to User Units
Formatting Variables and Array Elements
Local Formatting of Variables
VF m.n
Digital Outputs
Hardware I/O
Digital Inputs
Example Start Motion on Switch
Input Interrupt Function
AI 1BGX
Example Position Follower Point-to-Point
Analog Inputs
Examples Input Interrupt
Example Applications
Wire Cutter
Example Position Follower Continuous Move
VER=VAR-TPX
JP #A
Table Controller
Inch = 40,000 counts
BGZ
CR 80000,270,-360
AMZ
BGZ AMZ
Speed Control by Joystick
Speed = 20000 x VIN
Backlash Compensation by Sampled Dual-Loop
Position Control by Joystick
JG VEL JP #B
DP0
Instruction
This page Left Blank Intentionally
Output Protection Lines
Hardware Protection
Input Protection Lines
DMC-1700/1800 Hardware & Software Protection
Software Protection
Signal or Function State if Error Occurs
Programmable Position Limits
# Poserr
Automatic Error Routine
Off-On-Error
Limit Switch Routine
#AJP #AEN
#LF
JP#END
Stxamx
#LR MG Reverse Limit
DMC-1700/1800 Troubleshooting
Installation
Stability
Communication
Operation
This page Left Blank Intentionally
DMC-1700/1800 Theory of Operation
Theory of Operation
Level
Velocity and Position Profiles
Operation of Closed-Loop Systems
Functional Elements of a Motion Control System
System Modeling
Voltage Drive
Motor-Amplifier
Current Drive
= 2 Ω
T1 = J/Ka Kt Kg
Velocity Loop
Voltage Source
Digital Filter
DAC
Amp
System Analysis
Motor
Dz = 1030 z-0.95/Z
Encoder
Digital Filter
Analytical Method
System Design and Compensation
= 76 180 6 =
PM = 180 + α =
Kd = 10/32768 =
KP =
= 4 ∗ KP
Equivalent Filter Form DMC-1700/1800
Servo Control
Electrical Specifications
Stepper Control
Input/Output
Power
Performance Specifications
J1 DMC-1740/1840 A-D Axes Main J5-DMC-1740/1840 A-D Axes
Connectors for DMC-1700/1800 Main Board
Axes Main PIN IDC Auxiliary Encoder
J8 DMC-1780/1880 J6 DMC-1780/1880 J7 DMC-1780/1880
Outputs
Pin-Out Description for DMC-1700/1800
PWM/STEP OUT
Inputs
HEX JPR A8 JPR A7 JPR A6 JPR A5 JPR A4 JPR A3 JPR A2
Setting Addresses for the DMC-1700
Standard Addresses
2BC
2AC
2CC
2DC
3CC
3AC
3BC
Communications Jumpers
Plug and Play Addresses
Accessories and Options
ICM-1900 Interconnect Module
PC/AT Interrupts and Their Vectors
Terminal Label Description
Signx
Mocmdx
Pwmx
GND +VCC
AN3
AN2
AN4
AN5
Features
AMP-19X0 Mating Power Amplifiers
Specifications
ICM-1900 Drawing
OUT GND
ICM-2900 Interconnect Module
OUT PWR
ANALOG5
ANA GND
ANALOG6
ANALOG7
MBX
Standard Opto-isolation and High Current Opto-isolation
Opto-Isolated Outputs ICM-1900 / ICM-2900 -Opto option
Extended I/O of the DMC-17x8/1700/1800 Controller
Saving the State of the Outputs in Non-Volatile Memory
Accessing extended I/O
CO n
OP m,a,b,c,d
MG @IN17
Connector Description
OP 7,,,,7
GND
J8 50-PIN IDC
Description
IOM-1964 Opto-Isolation Module for Extended I/O Controllers
Buffer chips
Overview
Figure A.4 CB-50-80 and CB-50-100 Bracket Layout
Configuring Hardware Banks
Figure A.5 IOM-1964 Chip Configuration Layout
Sinking Sourcing
Input Circuit
Figure A.9 High Current Output Circuit
High Power Digital Outputs
Internal Pullup
Output Command Result
Standard Digital Outputs
High Power Digital Outputs
Electrical Specifications
Digital Inputs
Standard Digital Outputs
Relevant DMC Commands
DMC-1700/1800 Appendices
Coordinated Motion Mathematical Analysis
360
Velocity
DMC-1700/DMC-1000 Comparison
List of Other Publications
Motion Control Made Easy
Training Seminars
Contacting Us
Warranty
DMC-1700/1800 Index
Index
Flags
ICM-1100 25, 47, 48 Independent Motion
Quit
Stop