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