By Galil Motion Control, Inc
DMC-3425
Page
Contents
Connecting Hardware
Programming Motion
Application Programming 107
ZOH
DAC
Warranty
J5 Power 6 PIN Molex
Introduction
Overview
Stepper Motor with Step and Direction Signals
Standard Servo Motors with +/- 10 Volt Command Signal
Overview of Motor Types
Brushless Servo Motor with Sinusoidal Commutation
DMC-3425 Overview
Microcomputer Section
DMC-3425 Functional Elements
Motor Interface
Communication
System Elements
General I/O
Motor
Amplifier Driver
Encoder
Watch Dog Timer
DMC-3425 Motion Controller
Getting Started
Elements You Need
Installing the DMC-3425 Controller
Configuring Jumpers on the DMC-3425
Determine Overall Motor Configuration
Selecting MO as default on the DMC-3425
Setting the Baud Rate on the DMC-3425
Stepper Motor Jumpers
9600 1200
A1 A2 A4 A8
Axis Configuration Jumpers
Using Galil Software for DOS
Installing the Communications Software
Using Galil Software for Windows
Getting Started DMC-3425
Sending Test Commands to the Terminal
Using Non-Galil Communication Software
Communicating through the Ethernet
TPA CR
Address
Make connections to amplifier and encoder
Set-up axis for sinusoidal commutation optional
Getting Started DMC-3425
Connect Standard Servo Motor
MO CR
Check the Polarity of the Feedback Loop
SH CR
Inverting the Loop Polarity
BG CR
TT CR
Power Supply
Connect brushless motor for sinusoidal commutation
If Hall Sensors are Available
If Hall Sensors are Not Available
BGA CR
Connect Step Motors
Amacr
BC CR
TE CR
Tune the Servo System
Automatic Configuration of Distributed Control
Configure the Distributed Control System
Configuring Operation for Distributed Control
Manual Slave IP configuration with HC command
#SETUP
Manual Configuration of Distributed Control
Mgconfiguration Failed Else Mgconfig Success Endif
Instruction Interpretation
CHE=F,G
NA6
CHC=D,E
Example 1 System Set-up
Design Examples
Example 2 Profiled Move
Example 3 Position Interrogation
Example 5 Velocity Control Jogging
Example 8 Operation in the Buffer Mode
Example 6 Operation Under Torque Limit
Example 7 Interrogation
Example 11- Motion Programs with Trippoints
Example 9 Motion Programs
Example 10 Motion Programs with Loops
Example 13 Control Variables and Offset
Example 12 Control Variables
Return to top of program
Overview
Using Inputs
Limit Switch Input
Abort Input
Home Switch Input
Uncommitted Digital Inputs
Amplifier Interface
Analog Inputs
TTL Inputs
TTL Outputs
This page Left Blank Intentionally
RS232 Port
RS-232 Configuration
RS232 Port 1 Dataterm
Baud Rate Selection
Communication Protocols
Ethernet Configuration
Addressing
Handshaking Modes
Global vs. Local Operation
Ethernet Handles
Local Operation
Operation of Distributed Control
Accessing the I/O of the Slaves
Multicasting
Handling Communication Errors
Digital Outputs
Digital Inputs
IOC-7007 Support
Unsolicited Message Handling
Function Code Definition
Modbus Support
Handle Restore on Communication Failure
Handle Switching
Other Communication Options
User Defined Ethernet Variables
Waiting on Handle Responses
Data Record
Data Record Map
DMC-3425 Communication
Communication DMC-3425
Header Information Byte 0, 1 of Header
Axis Switch Information 1 Byte
Bytes 2, 3 of Header
General Status Information 1 Byte
Coordinated Motion Status Information for plane 2 Byte
QZ Command
Axis Status Information 2 Byte
Using Third Party Software
This page Left Blank Intentionally
Important All DMC-3425 commands are sent in upper case
Command Syntax Ascii
Coordinated Motion with more than 1 axis
Command Syntax Binary
Header Format
Binary Command Format
Byte
Datafields Format
Binary command table
Example
LE, VE
Controller Response to Data
Summary of Interrogation Commands
Interrogation Commands
Interrogating Current Commanded Values
Interrogating the Controller
Command Summary
This page Left Blank Intentionally
Programming Motion
Mode of Motion Basic description Commands Global
VP, CR
Independent Axis Positioning
Operand Summary Independent Axis
Command Summary Independent Axis
Examples
Absolute Position Movement
BG C
InstructionInterpretation
Jog in a and C axes
Command Summary Jogging
Independent Jogging
Joystick Jogging
Linear Interpolation Mode Local Mode
Specifying Linear Segments
Specifying Vector Speed for Each Segment
Additional Commands
#ALT
Lmab
Operand Summary Linear Interpolation
Command Summary Linear Interpolation
Changing Feedrate
BGS
Example Linear Move
Example
Linear Interpolation Motion
#LMOVE
#LOAD
Example Multiple Moves
Specifying Vector Segments
Vector Mode Linear and Circular Interpolation Local Mode
Additional commands
Compensating for Differences in Encoder Resolution
Command Summary Coordinated Motion Sequence
Operand Summary Coordinated Motion Sequence
Trippoints
Required Path
VM AB
Command Summary Electronic Gearing
Electronic Gearing Local Mode
Example Gantry Mode
Example Electronic Gearing
GA, CA
Electronic Cam Local Mode
BGB
GA,A
Programming Motion DMC-3425
DMC-3425 Programming Motion
3000 2250 1500 2000 4000 6000 Master
#LOOP
EAA
#RUN
EB1
ST a
#LOOPJP#LOOP,V1=0
Specifying Contour Segments
Contour Mode Local Mode
DT0CD0
Instruction Description
CMA
Operand Summary Contour Mode
Command Summary Contour Mode
General Velocity Profiles
Generating an Array An Example
POSC=V4
Contour Mode Example
#POINTS
Record and Playback Example
Teach Record and Play-Back
Mode of Motion Virtual Axis usage Commands
Virtual Axis Local Mode
Ecam Master Example
Stepper Motor Operation
Sinusoidal Motion Example
Specifying Stepper Motor Operation
Stepper Motor Smoothing
Monitoring Generated Pulses vs. Commanded Pulses
Command Summary Stepper Motor Operation
Using an Encoder with Stepper Motors
Motion Complete Trippoint
Operand Summary Stepper Motor Operation
Additional Commands for the Auxiliary Encoder
Using the CE Command
Dual Loop Auxiliary Encoder
Backlash Compensation
Sampled Dual Loop
Continuous Dual Loop
#DUALOOP
DE0
Motion Smoothing
Using the IT and VT Commands
JP#CORRECT
#END
Trapezoidal velocity and smooth velocity profiles
Homing
HM a
#HOME
AM a
MG AT Home
Home Switch
High Speed Position Capture Latch
Command Summary Homing Operation
Operand Summary Homing Operation
Input Function
AL B
This page Left Blank Intentionally
Global vs. Local Programming
Application Programming
Entering Programs
Edit Mode Commands
Return
ED #BEGIN
Program Format
Using Labels in Programs
Valid labels
Invalid labels
Commenting Programs
No Command and the Apostrophe ‘
Special Labels
Executing Programs Multitasking
REM Command
Debugging Programs
Error Code Command
Trace Command
Stop Code Command
RAM Memory Interrogation Commands
Eeprom Memory Interrogation Operands
Breakpoints and single stepping
Event Triggers & Trippoints
Program Flow Commands
AS a B C D E F G H
DMC-3425 Event Triggers
Example- Multiple Move Sequence
Example Start Motion on Input
Example- Set Output after Distance
Example- Repetitive Position Trigger
Example Multiple Move with Wait
Example Set Output when At Speed
Example Change Speed along Vector Path
Command Format JP and JS
Example- Define Output Waveform Using AT
Conditional Jumps
Format
Logical operators
Example using variables named V1, V2, V3
Conditional Statements
Multiple Conditional Statements
Examples
Using the if and Endif Commands
If, Else, and Endif
Command Format IF, Else and Endif
Using the Else Command
Nesting if Conditional Statements
Format Description
Stack Manipulation
Auto-Start and Auto Error Routine
Subroutines
Automatic Subroutines for Monitoring Conditions
Example Limit Switch
Example Position Error
Example Input Interrupt
Example Motion Complete Timeout
Example Command Error
Example Command Error w/Multitasking
Mathematical and Functional Expressions
Example Ethernet Communication Error
Mathematical Operators
Operator Function
ENTER,LENS6
Bit-Wise Operators
FLEN=@FRACLEN
LEN1=FLEN&$00FF
Functions
Variables
POS
PR Posa
Assigning Values to Variables
Programmable Variables
Assigning Variable Values to Controller Parameters
Displaying the value of variables at the terminal
Operands
Example Using Variables for Joystick
Special Operands
Instruction
Assignment of Array Entries
Arrays
Defining Arrays
Automatic Data Capture into Arrays
Using a Variable to Address Array Elements
Uploading and Downloading Arrays to On Board Memory
Data Types for Recording
Command Summary Automatic Data Capture
Operand Summary Automatic Data Capture
Example Recording into An Array
Deallocating Array Space
Outputting Numbers and Strings
Sending Messages
Specifying the Port for Messages
MG STR S3
Using the MG Command to Configure Terminals
Formatting Messages
Summary of Message Functions
Displaying Variables and Arrays
Example Printing a Variable and an Array element
Function Description
LZ1
Local Formatting of Response of Interrogation Commands
LZ0
Local Formatting of Variables
Formatting Variables and Array Elements
VF1
V1=ALPHA
Converting to User Units
Hardware I/O
Digital Outputs
Example- Set Bit and Clear Bit
Example Start Motion on Switch
Example Using Inputs to control program flow
Digital Inputs
Example- Output Port
Example Position Follower Point-to-Point
Input Interrupt Function
Analog Inputs
Example Position Follower Continuous Move
Configuring the I/O of the DMC-3425
Extended I/O of the DMC-3425 Controller
Bit I/O Block Binary Representation Decimal Value for
Accessing Extended I/O
Saving the State of the Outputs in Non-Volatile Memory
Example Applications
Wire Cutter
Interfacing to Grayhill or OPTO-22 G4PB24
Argument Blocks Bits Description
JP #A
X-Y Table Controller
BGC AMC
BGC
AMC
BGS AMS
Speed Control by Joystick
JG VEL JP #B
Position Control by Joystick
This page Left Blank Intentionally
Output Protection Lines
Hardware Protection
Software Protection
Signal or Function State if Error Occurs
Input Protection Lines
Programmable Position Limits
#AJP #AEN
Off-On-Error
Automatic Error Routine
Limit Switch Example
Limit Switch Routine
Symptom Cause Remedy
Installation
Communication
Symptom Cause
Stability
Operation
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
Motor Ms = P/I = Kt/Js2 = 500/s2 rad/A Amp Ka = 4 Amp/V
Analytical Method
System Design and Compensation
Kd = 10/32768 = Encoder Kf = 4N/2π =
DMC-3425 Theory of Operation
PID, T
Equivalent Filter Form
KP, KD, KI, PL
Performance Specifications
Electrical Specifications
Power Requirements
Servo Control
J3 DMC-3425 General I/O 37- PIN D-type
Connectors for DMC-3425
Acmda Pwma
Acmdy Signa
Pwmb
J3 DMC-3425-Stepper General I/O 37- PIN D-type
Signb Pwma
Signa
J1 RS232 Main port DB-9 Pin Male
Pin-Out Description
DCD DTR GND DSR RTS CTS
RTS CTS GND
ICM-1460 Interconnect Module
Features
Specifications
ERROR/PULSEY
Reset
AMPEN/SIGNY5
ACMDX/PULSEX
Opto-isolated inputs
Opto-Isolation Option for ICM-1460
Figure A-1
Opto-isolated outputs
CO n
Configuring the I/O of the DMC-3425 with DB-14064
Saving the State of the Outputs in Non-Volatile Memory
Accessing extended I/O
J6 50-PIN IDC Pin Signal Block Bit @INn Bit No @OUTn
Connector Description
Block Bit @INn Bit No @OUTn
Description
IOM-1964 Opto-Isolation Module for Extended I/O Controllers
Buffer chips
Overview
Figure A-4
Configuring Hardware Banks
Input Circuit
Figure A-6
High Power Digital Outputs
Standard Digital Outputs
Output Command Result
Standard Digital Outputs
Electrical Specifications
High Power Digital Outputs
Screw Terminal Listing
Relevant DMC Commands
DMC-3425 Appendices
PWROUT31
PWROUT32
PWROUT30
PWROUT29
1000 2000
Coordinated Motion Mathematical Analysis
Velocity
100000 = 0.05 s 2000000
WHO should Attend
List of Other Publications
Training Seminars
Galil Motion Control
Contacting Us
Warranty
Eeprom
Index
Homing, 38
Eeprom
Index DMC-3425