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