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 4 Independent Moves
Example 3 Multiple Axes
Example 5 Position Interrogation
Example 7 Velocity Control
Example 6 Absolute Position
Example 8 Operation Under Torque Limit
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
Amplifier Interface
Analog Inputs
Bypassing the Opto-Isolation
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
Setting Communications Parameters and Methods
Communication Settings for ISA and PCI
Galil Registry Editor
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
Communications with the DMC-1700
Hardware Level Communications for ISA and PCI
Status Byte hex Condition
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
Secondary Fifo Registers
Polling Fifo Mode Read Procedure
Determining the Base Address
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
Command Summary
Interrogating Current Commanded Values
Operands
DMC-1700/1800 Programming Motion
VS,VA,VD
Independent Axis Positioning
Command Summary Independent Axis
Operand Summary Independent Axis
Example Multiple Move Sequence
Example Absolute Position Movement
Command
Command Summary Jogging
Independent Jogging
Axis velocity profile
Example Jog in X only
Position Tracking
Example Joystick Jogging
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
An Example of Linear Interpolation Motion
Additional Commands
Specifying Vector Speed for Each Segment
Operand Summary Linear Interpolation
Command Summary Linear Interpolation
Changing Feedrate
LM?
LM ZW
Example Linear Move
#LOAD
Example Multiple Moves
COUNT=0
Specifying the Coordinate Plane
Vector Mode Linear and Circular Interpolation Motion
Specifying Vector Segments
Additional commands
Trippoints
Compensating for Differences in Encoder Resolution
Tangent Motion
Operand Summary Coordinated Motion Sequence
Command Summary Coordinated Motion Sequence
Example
Required Path
Electronic Gearing
Ramped Gearing
MO Z
Example Electronic Gearing Over a Specified Interval
GA Z, Z
Example Gantry Mode
Command Summary Electronic Gearing
Example Simple Master Slave
Example Electronic Gearing
GA, CX
Electronic Cam
GA,X
EP 2000,0
EM 6000,1500
ET0=,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
#HOME
Example Homing
MG AT 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
ED #BEGIN
Using the DMC-1700/1800 Editor to Enter Programs
DMC-1700/1800 Application Programming
Using Labels in Programs
Edit Mode Commands
Program Format
Special Labels
Using the command, no or Apostrophe ‘
Commenting Programs
XQ #A, n
Executing Programs Multitasking
HX n
Error Code Command
Trace Commands
Stop Code Command
RAM Memory Interrogation Commands
Operands
Program Flow Commands
Debugging Example
Event Triggers & Trippoints
AS X Y Z W S
DMC-1700 and DMC-1800 Event Triggers
Function
Event Trigger Multiple Move Sequence
Event Trigger Examples
Event Trigger Set Output after Distance
Event Trigger Repetitive Position Trigger
Event Trigger Start Motion on Input
Event Trigger Set output when At speed
Event Trigger Change Speed along Vector Path
Conditional Jumps
Define Output Waveform Using AT
Event Trigger Multiple Move with Wait
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
Mathematical Operators
Mathematical and Functional Expressions
Bit-Wise 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
Assignment of Array Entries
Using a Variable to Address Array Elements
Uploading and Downloading Arrays to On Board Memory
Automatic Data Capture into Arrays
Command Summary Automatic Data Capture
Data Types for Recording
Deallocating Array Space
Input of Data Numeric and String
Input of Data
Sending Messages
Output of Data Numeric and String
Cut-to-Length Example
Inputting String Variables
Formatting Messages
Using the MG Command to Configure Terminals
Final Value is
Summary of Message Functions
Displaying Variables and Arrays
MG 07
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
Examples Input Interrupt
Analog Inputs
Example Position Follower Point-to-Point
Example Applications
Wire Cutter
Example Position Follower Continuous Move
VER=VAR-TPX
Inch = 40,000 counts
Table Controller
JP #A
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
Motor
System Analysis
Amp
Digital Filter
Encoder
Dz = 1030 z-0.95/Z
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
Standard Addresses
Setting Addresses for the DMC-1700
HEX JPR A8 JPR A7 JPR A6 JPR A5 JPR A4 JPR A3 JPR A2
2BC
2AC
2CC
2DC
3BC
3AC
3CC
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 PWR
ICM-2900 Interconnect Module
OUT GND
ANALOG5
ANA GND
ANALOG6
ANALOG7
MBX
Extended I/O of the DMC-17x8/1700/1800 Controller
Opto-Isolated Outputs ICM-1900 / ICM-2900 -Opto option
Standard Opto-isolation and High Current Opto-isolation
Saving the State of the Outputs in Non-Volatile Memory
Accessing extended I/O
CO n
OP m,a,b,c,d
OP 7,,,,7
Connector Description
MG @IN17
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
Standard Digital Outputs
Output Command Result
Internal Pullup
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