Manual Rev. 1.1b
USER MANUAL
By Galil Motion Control, Inc
DMC-3425
Page
Chapter 1 Overview
Contents
Contents
Chapter 2 Getting Started
Chapter 5 Command Basics
Chapter 3 Connecting Hardware
Chapter 4 Communication
Chapter 6 Programming Motion
Chapter 7 Application Programming
Chapter 8 Hardware & Software Protection
Chapter 9 Troubleshooting
Chapter 10 Theory of Operation
Appendices
Index
Chapter 1 Overview
Introduction
Overview of Motor Types
Stepper Motor with Step and Direction Signals
Brushless Servo Motor with Sinusoidal Commutation
The DMC-3415can control BLMs equipped with Hall sensors as well as without Hall sensors. If hall sensors are available, once the controller has been setup, the controller will estimate the commutation phase upon reset. This allows the motor to function immediately upon power up. The Hall effect sensors also provide a method for setting the precise commutation phase. Chapter 2 describes the proper connection and procedure for using sinusoidal commutation of brushless motors
Motor Interface
DMC-3425Functional Elements
Microcomputer Section
Communication
Motor
General I/O
System Elements
Amplifier Driver
6 • Chapter 1 Overview
Watch Dog Timer
Encoder
DMC-3425
Figure 2.1 – Outline of the DMC-3425
Chapter 2 Getting Started
The DMC-3425Motion Controller
DMC-3425
Installing the DMC-3425Controller
Elements You Need
Master Reset and Upgrade Jumper
Step 1. Determine Overall Motor Configuration
Step 2. Configuring Jumpers on the DMC-3425
Standard Servo Motor Operation
Stepper Motor Jumpers
Setting the Baud Rate on the DMC-3425
Selecting MO as default on the DMC-3425
SD MC
Axis Configuration Jumpers
A1 A2 A4 A8
Using DOS
Step 4. Installing the Communications Software
Using Galil Software for DOS
Using Windows 3.x 16 bit versions
Using Galil Software for Windows
14 • Chapter 2 Getting Started
DMC-3425
Communicating through the Ethernet
Using Non-GalilCommunication Software
Sending Test Commands to the Terminal
Using Galil Software for Windows
16 • Chapter 2 Getting Started
ADDRESS
DMC-3425
Step 7. Make connections to amplifier and encoder
Sending Test Commands to the Terminal
Step C. Connect the encoders
Step 8a. Connect Standard Servo Motor
Check the Polarity of the Feedback Loop
Inverting the Loop Polarity
22 • Chapter 2 Getting Started
Power Supply
Motor
DMC-3425
Step A. Disable the motor amplifier
If Hall Sensors are Available
If Hall Sensors are Not Available
If Hall Sensors are Not Available
If Hall Sensors are Available
Step 8c. Connect Step Motors
Step 9. Tune the Servo System
Step 10. Configure the Distributed Control System
Configuring Operation for Distributed Control
Manual Slave IP configuration with HC command
Instruction
Automatic Configuration Example
Manual Configuration of Distributed Control
Interpretation
Manual Configuration Example
Example 2 - Profiled Move
Design Examples
Example 1 - System Set-up
Example 3 - Position Interrogation
Example 7 - Interrogation
Example 5 - Velocity Control Jogging
Example 6 - Operation Under Torque Limit
Example 8 - Operation in the Buffer Mode
Example 10 - Motion Programs with Loops
Example 9 - Motion Programs
Example 11- Motion Programs with Trippoints
Example 12 - Control Variables
Example 13 - Control Variables and Offset
36 • Chapter 2 Getting Started
DMC-3425
Limit Switch Input
Chapter 3 Connecting Hardware
Using Inputs
Overview
38 • Chapter 3 Connecting Hardware
Home Switch Input
Abort Input
DMC-3425
Amplifier Interface
Uncommitted Digital Inputs
DMC-3425
TTL Inputs
Analog Inputs
AMPEN
TTL Outputs
42 • Chapter 3 Connecting Hardware
THIS PAGE LEFT BLANK INTENTIONALLY
DMC-3425
RS232 Port
RS-232Configuration
Chapter 4 Communication
RS232 - Port 1 DATATERM
Addressing
Ethernet Configuration
Communication Protocols
Handshaking Modes
Ethernet Handles
Global vs. Local Operation
46 • Chapter 4 Communication
LOCAL OPERATION
GLOBAL OPERATION
DMC-3425
Accessing the I/O of the Slaves
Operation of Distributed Control
Digital Outputs
Handling Communication Errors
Multicasting
Digital Inputs
Unsolicited Message Handling
IOC-7007Support
Function Code
Modbus Support
Definition
Other Communication Options
Handle Switching
Handle Restore on Communication Failure
User Defined Ethernet Variables
Data Record Map
Data Record
Waiting on Handle Responses
DMC-3425
general output bank 2 DB-14064
Chapter 4 Communication•
54 Chapter 4 Communication
DMC-3425
Bytes 2, 3 of Header
Axis Switch Information 1 Byte
Header Information - Byte 0, 1 of Header
General Status Information 1 Byte
Notes Regarding Velocity and Torque Information
QZ Command
Axis Status Information 2 Byte
Using Third Party Software
58 • Chapter 4 Communication
THIS PAGE LEFT BLANK INTENTIONALLY
DMC-3425
Command Syntax - ASCII
Chapter 5 Command Basics
Introduction
Command Syntax - Binary
Coordinated Motion with more than 1 axis
Header Format
Binary Command Format
Byte
Byte
Datafields Format
Binary command table
Example
Controller Response to DATA
Interrogating Current Commanded Values
Interrogation Commands
Summary of Interrogation Commands
Interrogating the Controller
Command Summary
THIS PAGE LEFT BLANK INTENTIONALLY
66 • Chapter 5 Command Basics
DMC-3425
Global vs. Local Operation
Chapter 6 Programming Motion
Overview
DMC-3425
Basic description
Commands
Mode of Motion
Global
Independent Axis Positioning
Examples
Command Summary - Independent Axis
Operand Summary - Independent Axis
Absolute Position Movement
20000
VELOCITY
COUNTS/SEC
15000
Jog in A and C axes
Command Summary - Jogging
Independent Jogging
Operand Summary - Independent Axis
Specifying Linear Segments
Linear Interpolation Mode Local Mode
Joystick Jogging
Additional Commands
Specifying Vector Speed for Each Segment
Operand Summary - Linear Interpolation
Command Summary - Linear Interpolation
Changing Feedrate
Linear Interpolation Motion
Example
Example - Linear Move
VS = VA 2 + VB
Instruction
Example - Multiple Moves
Figure 6.2 - Linear Interpolation
Interpretation
78 • Chapter 6 Programming Motion
Specifying Vector Segments
DMC-3425
Specifying Vector Speed for Each Segment
Additional commands
Changing Feedrate
Operand Summary - Coordinated Motion Sequence
Command Summary - Coordinated Motion Sequence
Trippoints
A 0,0
C -4000,3000D 0,3000 R =
B -4000,0
Example
Example - Electronic Gearing
Command Summary - Electronic Gearing
Electronic Gearing Local Mode
Example - Gantry Mode
Electronic Cam Local Mode
EAp where p = A,B p is the selected master axis
EM a,b
ET0=,0 ET1=,3000 ET2=,2250 ET3=,1500
4000
3000 2250 1500
2000
6000
This is done with the program
88 • Chapter 6 Programming Motion
DMC-3425
Contour Mode Local Mode
Specifying Contour Segments
POSITION
Instruction
Description
COUNTS
General Velocity Profiles
Command Summary - Contour Mode
Operand Summary - Contour Mode
Generating an Array - An Example
Contour Mode Example
DMC-3425
Teach Record and Play-Back
Record and Playback Example
Chapter 6 Programming Motion•
Mode of Motion
Virtual Axis Local Mode
Commands
Virtual Axis usage
Sinusoidal Motion Example
Stepper Motor Operation
Ecam Master Example
Specifying Stepper Motor Operation
96 • Chapter 6 Programming Motion
Monitoring Generated Pulses vs. Commanded Pulses
Stepper Motor Smoothing
DMC-3425
Motion Complete Trippoint
Using an Encoder with Stepper Motors
Command Summary - Stepper Motor Operation
Operand Summary - Stepper Motor Operation
Dual Loop Auxiliary Encoder
Using the CE Command
Additional Commands for the Auxiliary Encoder
Backlash Compensation
Sampled Dual Loop
Continuous Dual Loop
Example
Motion Smoothing
Using the IT and VT Commands
Example
ACCELERATION TIME VELOCITY TIME ACCELERATION WITH
Homing
SMOOTHING TIME VELOCITY WITH SMOOTHING TIME
102 Chapter 6 Programming Motion
Example
DMC-3425
DMC-3425
HOME SWITCH
Chapter 6 Programming Motion•
High Speed Position Capture Latch
Command Summary - Homing Operation
Operand Summary - Homing Operation
DMC-3425
Example
#Latch
Chapter 6 Programming Motion•
106 • Chapter 6 Programming Motion
THIS PAGE LEFT BLANK INTENTIONALLY
DMC-3425
Global vs. Local Programming
Chapter 7 Application Programming
Overview
Edit Mode Commands
Entering Programs
Valid labels
Using Labels in Programs
Program Format
Invalid labels
Special Labels
NO Command and the Apostrophe ‘
Commenting Programs
REM Command
Executing Programs - Multitasking
Debugging Programs
Stop Code Command
Trace Command
Error Code Command
RAM Memory Interrogation Commands
Error Condition
Breakpoints and single stepping
EEPROM Memory Interrogation Operands
Operands
Program Flow Commands
Event Triggers & Trippoints
116 • Chapter 7 Application Programming
DMC-3425Event Triggers
Example- Multiple Move Sequence
DMC-3425
Example- Repetitive Position Trigger
Example- Set Output after Distance
Example - Start Motion on Input
Example - Multiple Move with Wait
Example - Set Output when At Speed
Example - Change Speed along Vector Path
118 • Chapter 7 Application Programming
Command Format - JP and JS
Example- Define Output Waveform Using AT
Conditional Jumps
Conditional Statements
Example using variables named V1, V2, V3 and
Logical operators
Multiple Conditional Statements
If, Else, and Endif
Using the IF and ENDIF Commands
Examples
Nesting IF Conditional Statements
Using the ELSE Command
Command Format - IF, ELSE and ENDIF
122 • Chapter 7 Application Programming
Subroutines
Auto-Startand Auto Error Routine
Stack Manipulation
Example - Position Error
Example - Limit Switch
Automatic Subroutines for Monitoring Conditions
Example - Command Error
Example - Motion Complete Timeout
Example - Input Interrupt
FUNCTION
Example - Command Error w/Multitasking
OPERAND
Instruction
Mathematical and Functional Expressions
Example – Ethernet Communication Error
Mathematical Operators
128 • Chapter 7 Application Programming
Bit-WiseOperators
DMC-3425
Variables
Functions
Assigning Values to Variables
Programmable Variables
Displaying the value of variables at the terminal
Operands
Example - Using Variables for Joystick
Special Operands
Assignment of Array Entries
Arrays
Defining Arrays
Examples
Using a Variable to Address Array Elements
Automatic Data Capture into Arrays
Operand Summary - Automatic Data Capture
Command Summary - Automatic Data Capture
Data Types for Recording
Example - Recording into An Array
Sending Messages
Outputting Numbers and Strings
Deallocating Array Space
Specifying the Port for Messages
Formatting Messages
Using the MG Command to Configure Terminals
Example
Summary of Message Functions
Displaying Variables and Arrays
Interrogation Commands
Example
Formatting Variables and Array Elements
Local Formatting of Variables
Digital Outputs
Hardware I/O
Converting to User Units
Example- Set Bit and Clear Bit
Digital Inputs
Example - Using Inputs to control program flow
Example - Start Motion on Switch
Example- Output Port
Example - Position Follower Point-to-Point
Input Interrupt Function
Analog Inputs
Example - Input Interrupt
Extended I/O of the DMC-3425Controller
Configuring the I/O of the DMC-3425
Example - Position Follower Continuous Move
Block
Accessing Extended I/O
8-BitI/O
Binary Representation
Example Applications
Wire Cutter
Interfacing to Grayhill or OPTO-22G4PB24
146 Chapter 7 Application Programming
A-B X-YTable Controller
DMC-3425
1 inch = 40,000 counts and the speeds of
Speed Control by Joystick
Position Control by Joystick
150 • Chapter 7 Application Programming
THIS PAGE LEFT BLANK INTENTIONALLY
DMC-3425
Output Protection Lines
Chapter 8 Hardware & Software Protection
Hardware Protection
Introduction
Programmable Position Limits
Software Protection
Input Protection Lines
Example
Example
Off-On-Error
Automatic Error Routine
Examples
Limit Switch Routine
Limit Switch Example
Installation
Chapter 9 Troubleshooting
Overview
Operation
Communication
Stability
156 • Chapter 9 Troubleshooting
COMPUTER
Chapter 10 Theory of Operation
Overview
CONTROLLER
LEVEL
Operation of Closed-LoopSystems
Figure 10.3 - Velocity and Position Profiles
System Modeling
CONTROLLER
PV = KV Kt SSTm + 1STe +
Motor-Amplifier
Voltage Drive
= RJ
Velocity Loop
CURRENT SOURCE
VOLTAGE SOURCE
VELOCITY LOOP
1 − B
Digital Filter
KZ − A
Z − B
System Analysis
Page
System Design and Compensation
The Analytical Method
Ms = P/I = Kt/Js2 = 1000/s2 Amp
However, since As = Ls Gs
Equivalent Filter Form
Power Requirements
Electrical Specifications
Performance Specifications
Appendices
Connectors for DMC-3425
J3 DMC-3425General I/O; 37- PIN D-type
J5 POWER; 6 PIN MOLEX
J3 DMC-3425-StepperGeneral I/O; 37- PIN D-type
Pin-OutDescription
J1 RS232 Main port: DB-9Pin Male
Features
ICM-1460Interconnect Module
Specifications
176 • Appendices
DMC-3425
Opto-IsolationOption for ICM-1460
Opto-isolatedinputs
TO CONTROLLER
Opto-isolatedoutputs
ICM-1460
CONNECTIONS
Configuring the I/O of the DMC-3425with DB-14064
64 Extended I/O of the DMC-3425Controller
Accessing extended I/O
J6 50-PINIDC
Connector Description
Signal
Block
Bit @INn
J8 50-PINIDC
Block
Bit No
Description
184 • Appendices
Overview
DMC-3425
Configuring Hardware Banks
Digital Inputs
Sourcing
Input Circuit
Sinking
Sinking
Figure A-6
High Power Digital Outputs
Figure A-7
Output Command
Standard Digital Outputs
Result
Standard Digital Outputs
Electrical Specifications
High Power Digital Outputs
Digital Inputs
Relevant DMC Commands
Screw Terminal Listing
DMC-3425
I/O65
Appendices•
192 • Appendices
DMC-3425
2000
Coordinated Motion - Mathematical Analysis
1000
2000
Lk = Xk 2 + Yk
Velocity
time s
Lk = Rk ΔΘk 2π
2000000
100000
= 0.05s
Ts = VSD − Ta = 10000035708 - 0.05 = 0.307s
MOTION CONTROL MADE EASY
List of Other Publications
Training Seminars
ADVANCED MOTION CONTROL
DMC-3425
Contacting Us
Galil Motion Control
Appendices
WARRANTY
Index
Differential Encoder, 19, 21,
Jumper,
SDK, 27,