Galil DMC-3425 user manual Continuous Dual Loop, Sampled Dual Loop, #Dualoop, DE0, #Correct

Page 107

The continuous dual loop combines the two feedback signals to achieve stability. This method requires careful system tuning, and depends on the magnitude of the backlash. However, once successful, this method compensates for the backlash continuously.

The second method, the sampled dual loop, reads the load encoder only at the end point and performs a correction. This method is independent of the size of the backlash. However, it is effective only in point-to-point motion systems that require position accuracy only at the endpoint.

Example

Continuous Dual Loop

Connect the load encoder to the main encoder port and connect the motor encoder to the dual encoder port. The dual loop method splits the filter function between the two encoders. It applies the KP (proportional) and KI (integral) terms to the position error, based on the load encoder, and applies the KD (derivative) term to the motor encoder. This method results in a stable system.

The dual loop method is activated with the instruction DV (Dual Velocity), where DV1

activates the dual loop and DV0

disables the dual loop.

Note that the dual loop compensation depends on the backlash magnitude, and in extreme cases will not stabilize the loop. The proposed compensation procedure is to start with KP=0, KI=0 and to maximize the value of KD under the condition DV1. Once KD is found, increase KP gradually to a maximum value, and finally, increase KI, if necessary.

Sampled Dual Loop

In this example, we consider a linear slide that is run by a rotary motor via a lead screw. Since the lead screw has a backlash, it is necessary to use a linear encoder to monitor the position of the slide. For stability reasons, it is best to use a rotary encoder on the motor.

Connect the rotary encoder to the A-axis and connect the linear encoder to the auxiliary encoder of A. Assume that the required motion distance is one inch, and that this corresponds to 40,000 counts of the rotary encoder and 10,000 counts of the linear encoder.

The design approach is to drive the motor a distance, which corresponds to 40,000 rotary counts. Once the motion is complete, the controller monitors the position of the linear encoder and performs position corrections.

This is done by the following program.

 

Instruction

Interpretation

#DUALOOP

Label

CE 0

Configure encoder

DE0

Set initial value

PR 40000

Main move

BGA

Start motion

#CORRECT

Correction loop

AMA

Wait for motion completion

v1=10000-_DEA

Find linear encoder error

v2=-_TEA/4+v1

Compensate for motor error

JP#END,@ABS[v2]<2

Exit if error is small

DMC-3425

Chapter 6 Programming Motion99

Image 107
Contents By Galil Motion Control, Inc DMC-3425Page Contents Connecting Hardware Programming Motion Application Programming 107 ZOH DACWarranty J5 Power 6 PIN MolexIntroduction OverviewBrushless Servo Motor with Sinusoidal Commutation Standard Servo Motors with +/- 10 Volt Command SignalStepper Motor with Step and Direction Signals Overview of Motor TypesDMC-3425 Overview Communication DMC-3425 Functional ElementsMicrocomputer Section Motor InterfaceAmplifier Driver General I/OSystem Elements MotorEncoder Watch Dog TimerDMC-3425 Motion Controller Getting StartedElements You Need Installing the DMC-3425 ControllerConfiguring Jumpers on the DMC-3425 Determine Overall Motor Configuration9600 1200 Setting the Baud Rate on the DMC-3425Selecting MO as default on the DMC-3425 Stepper Motor JumpersA1 A2 A4 A8 Axis Configuration JumpersUsing Galil Software for DOS Installing the Communications SoftwareUsing Galil Software for Windows Getting Started DMC-3425 TPA CR Using Non-Galil Communication SoftwareSending Test Commands to the Terminal Communicating through the EthernetAddress Make connections to amplifier and encoder Set-up axis for sinusoidal commutation optionalGetting Started DMC-3425 Connect Standard Servo Motor MO CR Check the Polarity of the Feedback LoopTT CR Inverting the Loop PolaritySH CR BG CRPower Supply Connect brushless motor for sinusoidal commutation If Hall Sensors are Available If Hall Sensors are Not Available BC CR Connect Step MotorsBGA CR AmacrTE CR Tune the Servo SystemAutomatic Configuration of Distributed Control Configure the Distributed Control SystemConfiguring Operation for Distributed Control Manual Slave IP configuration with HC command Instruction Interpretation Manual Configuration of Distributed Control#SETUP Mgconfiguration Failed Else Mgconfig Success EndifCHE=F,G NA6CHC=D,E Example 3 Position Interrogation Design ExamplesExample 1 System Set-up Example 2 Profiled MoveExample 7 Interrogation Example 8 Operation in the Buffer ModeExample 5 Velocity Control Jogging Example 6 Operation Under Torque LimitExample 11- Motion Programs with Trippoints Example 9 Motion ProgramsExample 10 Motion Programs with Loops Example 13 Control Variables and Offset Example 12 Control VariablesReturn to top of program Overview Using InputsLimit Switch Input Abort Input Home Switch InputUncommitted Digital Inputs Amplifier InterfaceAnalog Inputs TTL InputsTTL Outputs This page Left Blank Intentionally Baud Rate Selection RS-232 ConfigurationRS232 Port RS232 Port 1 DatatermHandshaking Modes Ethernet ConfigurationCommunication Protocols AddressingGlobal vs. Local Operation Ethernet HandlesLocal Operation Operation of Distributed Control Accessing the I/O of the SlavesDigital Inputs Handling Communication ErrorsMulticasting Digital OutputsIOC-7007 Support Unsolicited Message HandlingFunction Code Definition Modbus SupportUser Defined Ethernet Variables Handle SwitchingHandle Restore on Communication Failure Other Communication OptionsWaiting on Handle Responses Data RecordData Record Map DMC-3425 Communication Communication DMC-3425 General Status Information 1 Byte Axis Switch Information 1 ByteHeader Information Byte 0, 1 of Header Bytes 2, 3 of HeaderCoordinated Motion Status Information for plane 2 Byte QZ CommandAxis 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 AsciiCoordinated Motion with more than 1 axis Command Syntax BinaryHeader Format Binary Command FormatByte LE, VE Binary command tableDatafields Format ExampleController Response to Data Interrogating the Controller Interrogation CommandsSummary of Interrogation Commands Interrogating Current Commanded ValuesCommand Summary This page Left Blank Intentionally Programming Motion Mode of Motion Basic description Commands Global VP, CR Independent Axis PositioningAbsolute Position Movement Command Summary Independent AxisOperand Summary Independent Axis ExamplesBG C InstructionInterpretationJog in a and C axes Command Summary JoggingIndependent Jogging Joystick Jogging Linear Interpolation Mode Local ModeSpecifying Linear Segments Lmab Additional CommandsSpecifying Vector Speed for Each Segment #ALTBGS Command Summary Linear InterpolationOperand Summary Linear Interpolation Changing Feedrate#LMOVE ExampleExample Linear Move Linear Interpolation Motion#LOAD Example Multiple MovesSpecifying Vector Segments Vector Mode Linear and Circular Interpolation Local ModeAdditional commands Trippoints Command Summary Coordinated Motion SequenceCompensating for Differences in Encoder Resolution Operand Summary Coordinated Motion SequenceRequired Path VM ABExample Electronic Gearing Electronic Gearing Local ModeCommand Summary Electronic Gearing Example Gantry ModeGA,A Electronic Cam Local ModeGA, CA BGBProgramming Motion DMC-3425 DMC-3425 Programming Motion 3000 2250 1500 2000 4000 6000 Master EB1 EAA#LOOP #RUNST a #LOOPJP#LOOP,V1=0Specifying Contour Segments Contour Mode Local ModeDT0CD0 Instruction DescriptionCMA Generating an Array An Example Command Summary Contour ModeOperand Summary Contour Mode General Velocity ProfilesPOSC=V4 Contour Mode Example#POINTS Record and Playback Example Teach Record and Play-BackMode of Motion Virtual Axis usage Commands Virtual Axis Local ModeSpecifying Stepper Motor Operation Stepper Motor OperationEcam Master Example Sinusoidal Motion ExampleStepper Motor Smoothing Monitoring Generated Pulses vs. Commanded PulsesOperand Summary Stepper Motor Operation Using an Encoder with Stepper MotorsCommand Summary Stepper Motor Operation Motion Complete TrippointBacklash Compensation Using the CE CommandAdditional Commands for the Auxiliary Encoder Dual Loop Auxiliary EncoderDE0 Continuous Dual LoopSampled Dual Loop #DUALOOP#END Using the IT and VT CommandsMotion Smoothing JP#CORRECTTrapezoidal velocity and smooth velocity profiles HomingMG AT Home #HOMEHM a AM aHome Switch Input Function Command Summary Homing OperationHigh Speed Position Capture Latch Operand Summary Homing OperationAL B This page Left Blank Intentionally Global vs. Local Programming Application ProgrammingED #BEGIN Edit Mode CommandsEntering Programs ReturnInvalid labels Using Labels in ProgramsProgram Format Valid labelsCommenting Programs No Command and the Apostrophe ‘Special Labels Executing Programs Multitasking REM CommandDebugging Programs RAM Memory Interrogation Commands Trace CommandError Code Command Stop Code CommandEeprom Memory Interrogation Operands Breakpoints and single steppingEvent Triggers & Trippoints Program Flow CommandsAS a B C D E F G H DMC-3425 Event TriggersExample- Multiple Move Sequence Example Start Motion on Input Example- Set Output after DistanceExample- Repetitive Position Trigger Example Multiple Move with Wait Example Set Output when At SpeedExample Change Speed along Vector Path Format Example- Define Output Waveform Using ATCommand Format JP and JS Conditional JumpsMultiple Conditional Statements Example using variables named V1, V2, V3Logical operators Conditional StatementsExamples Using the if and Endif CommandsIf, Else, and Endif Format Description Using the Else CommandCommand Format IF, Else and Endif Nesting if Conditional StatementsStack Manipulation Auto-Start and Auto Error RoutineSubroutines Automatic Subroutines for Monitoring Conditions Example Limit SwitchExample Position Error Example Input Interrupt Example Motion Complete TimeoutExample Command Error Example Command Error w/Multitasking Operator Function Example Ethernet Communication ErrorMathematical and Functional Expressions Mathematical OperatorsLEN1=FLEN&$00FF Bit-Wise OperatorsENTER,LENS6 FLEN=@FRACLENPR Posa VariablesFunctions POSDisplaying the value of variables at the terminal Programmable VariablesAssigning Values to Variables Assigning Variable Values to Controller ParametersInstruction Example Using Variables for JoystickOperands Special OperandsAssignment of Array Entries ArraysDefining Arrays Automatic Data Capture into Arrays Using a Variable to Address Array ElementsUploading and Downloading Arrays to On Board Memory Example Recording into An Array Command Summary Automatic Data CaptureData Types for Recording Operand Summary Automatic Data CaptureSpecifying the Port for Messages Outputting Numbers and StringsDeallocating Array Space Sending MessagesMG STR S3 Using the MG Command to Configure TerminalsFormatting Messages Function Description Displaying Variables and ArraysSummary of Message Functions Example Printing a Variable and an Array elementLZ1 Local Formatting of Response of Interrogation CommandsLZ0 V1=ALPHA Formatting Variables and Array ElementsLocal Formatting of Variables VF1Example- Set Bit and Clear Bit Hardware I/OConverting to User Units Digital OutputsExample- Output Port Example Using Inputs to control program flowExample Start Motion on Switch Digital InputsExample Position Follower Point-to-Point Input Interrupt FunctionAnalog Inputs Example Position Follower Continuous Move Configuring the I/O of the DMC-3425Extended I/O of the DMC-3425 Controller Bit I/O Block Binary Representation Decimal Value for Accessing Extended I/OSaving the State of the Outputs in Non-Volatile Memory Argument Blocks Bits Description Wire CutterExample Applications Interfacing to Grayhill or OPTO-22 G4PB24JP #A X-Y Table ControllerBGC AMC BGCAMC BGS AMS Speed Control by JoystickJG VEL JP #B Position Control by JoystickThis page Left Blank Intentionally Output Protection Lines Hardware ProtectionProgrammable Position Limits Signal or Function State if Error OccursSoftware Protection Input Protection Lines#AJP #AEN Off-On-ErrorAutomatic Error Routine Limit Switch Example Limit Switch RoutineSymptom Cause Remedy InstallationOperation Symptom CauseCommunication StabilityTheory of Operation Level Velocity and Position Profiles Operation of Closed-Loop SystemsFunctional Elements of a Motion Control System System ModelingCurrent Drive Motor-AmplifierVoltage Drive Elements of velocity loops Velocity LoopVoltage Source Digital Filter DACZOH System AnalysisMotor Ms = P/I = Kt/Js2 = 500/s2 rad/A Amp Ka = 4 Amp/V Analytical Method System Design and CompensationKd = 10/32768 = Encoder Kf = 4N/2π = DMC-3425 Theory of Operation PID, T Equivalent Filter FormKP, KD, KI, PL Servo Control Electrical SpecificationsPerformance Specifications Power RequirementsAcmdy Signa Connectors for DMC-3425J3 DMC-3425 General I/O 37- PIN D-type Acmda PwmaSigna J3 DMC-3425-Stepper General I/O 37- PIN D-typePwmb Signb PwmaRTS CTS GND Pin-Out DescriptionJ1 RS232 Main port DB-9 Pin Male DCD DTR GND DSR RTS CTSICM-1460 Interconnect Module FeaturesSpecifications ACMDX/PULSEX ResetERROR/PULSEY AMPEN/SIGNY5Opto-isolated inputs Opto-Isolation Option for ICM-1460Figure A-1 Opto-isolated outputsCO n Configuring the I/O of the DMC-3425 with DB-14064Saving the State of the Outputs in Non-Volatile Memory Accessing extended I/OJ6 50-PIN IDC Pin Signal Block Bit @INn Bit No @OUTn Connector DescriptionBlock Bit @INn Bit No @OUTn Description IOM-1964 Opto-Isolation Module for Extended I/O ControllersBuffer chips OverviewFigure A-4 Configuring Hardware BanksInput Circuit Figure A-6 High Power Digital OutputsStandard Digital Outputs Output Command ResultStandard Digital Outputs Electrical SpecificationsHigh Power Digital Outputs Screw Terminal Listing Relevant DMC CommandsDMC-3425 Appendices PWROUT29 PWROUT32PWROUT31 PWROUT301000 2000 Coordinated Motion Mathematical AnalysisVelocity 100000 = 0.05 s 2000000 WHO should Attend List of Other PublicationsTraining Seminars Galil Motion Control Contacting UsWarranty Eeprom IndexHoming, 38 Eeprom Index DMC-3425

DMC-3425 specifications

The Galil DMC-3425 is a sophisticated motion controller known for its versatility and high performance in various industrial applications. Designed primarily for multi-axis control, it is well-suited for robotics, CNC machinery, and automated manufacturing systems.

One of the standout features of the DMC-3425 is its ability to control up to 32 axes simultaneously, providing unparalleled flexibility for complex motion tasks. This capability is enhanced by its advanced motion algorithms that ensure smooth and precise movements, essential for high-quality manufacturing and assembly processes. The controller supports a variety of motor types, including servo, stepper, and brushless motors, making it compatible with a wide range of existing equipment.

In terms of connectivity, the DMC-3425 offers an extensive selection of communication options. It supports Ethernet, RS-232, and RS-485 interfaces, allowing for seamless integration with various industrial networks, including EtherCAT and CANopen. This connectivity is vital for real-time data exchange and remote monitoring, enhancing overall system efficiency.

The controller is powered by Galil's innovative software architecture, which includes the DMC programming language. This user-friendly language enables engineers to create complex motion profiles easily, with support for trajectory generation, coordinate transformations, and PID control. The DMC-3425 also features built-in commands for motion profiling, including linear and circular interpolation, allowing for sophisticated path planning.

Moreover, the DMC-3425 comes equipped with an integrated programming environment that facilitates rapid application development. Users can simulate motion profiles before implementation, reducing downtime and minimizing errors. This environment is designed for quick learning, making it accessible even for those new to motion control.

Additionally, the Galil DMC-3425 features a robust safety architecture. It includes over-temperature detection, emergency stop inputs, and configurable limits for position and speed, ensuring safe operation in various environments.

Overall, the Galil DMC-3425 is a powerful and flexible motion controller that combines advanced technologies with user-friendly design. Its ability to handle multiple axes, extensive connectivity options, and comprehensive programming environment make it a top choice for manufacturers seeking to enhance automation and improve productivity in their operations.