Galil DMC-3425 user manual Teach Record and Play-Back, Record and Playback Example

Page 101

C=0

 

#C

 

D=C+1

 

DIF[C]=POS[D]-POS[C]

Compute the difference and store

C=C+1

 

JP #C,C<15

 

EN

End first program

#RUN

Program to run motor

CMA

Contour Mode

DT3

4 millisecond intervals

C=0

 

#E

 

CD DIF[C]

Contour Distance is in DIF

WC

Wait for completion

C=C+1

 

JP #E,C<15

 

DT0

 

CD0

Stop Contour

EN

End the program

Teach (Record and Play-Back)

Several applications require teaching the machine a motion trajectory. Teaching can be accomplished using the DMC-3425 automatic array capture feature to capture position data. The captured data may then be played back in the contour mode. The following array commands are used:

DM C[n]

Dimension array

RA C[]

Specify array for automatic record

RD _TPA

Specify data for capturing (such as _TPA or _TPB)

RC n,m

Specify capture time interval where n is 2n msec, m is number of records to be

 

captured

RC? or _RC

Returns a 1 if recording

Record and Playback Example:

Instruction

Interpretation

#RECORD

Begin Program

DM APOS[501]

Dimension array with 501 elements

RA APOS[]

Specify automatic record

RD _TPA

Specify A position to be captured

MOA

Turn A motor off

RC2

Begin recording; 4 msec interval

#A;JP#A,_RC=1

Continue until done recording

#COMPUTE

Compute DX

DM DX[500]

Dimension Array for DX

C=0

Initialize counter

DMC-3425

Chapter 6 Programming Motion93

Image 101
Contents By Galil Motion Control, Inc DMC-3425Page Contents Connecting Hardware Programming Motion Application Programming 107 ZOH DACWarranty J5 Power 6 PIN MolexIntroduction OverviewStepper Motor with Step and Direction Signals Standard Servo Motors with +/- 10 Volt Command SignalOverview of Motor Types Brushless Servo Motor with Sinusoidal CommutationDMC-3425 Overview Microcomputer Section DMC-3425 Functional ElementsMotor Interface CommunicationSystem Elements General I/OMotor Amplifier DriverEncoder Watch Dog TimerDMC-3425 Motion Controller Getting StartedElements You Need Installing the DMC-3425 ControllerConfiguring Jumpers on the DMC-3425 Determine Overall Motor ConfigurationSelecting MO as default on the DMC-3425 Setting the Baud Rate on the DMC-3425Stepper Motor Jumpers 9600 1200A1 A2 A4 A8 Axis Configuration JumpersUsing Galil Software for DOS Installing the Communications SoftwareUsing Galil Software for Windows Getting Started DMC-3425 Sending Test Commands to the Terminal Using Non-Galil Communication SoftwareCommunicating through the Ethernet TPA CRAddress 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 LoopSH CR Inverting the Loop PolarityBG CR TT CRPower Supply Connect brushless motor for sinusoidal commutation If Hall Sensors are Available If Hall Sensors are Not Available BGA CR Connect Step MotorsAmacr BC CRTE 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 #SETUP Manual Configuration of Distributed ControlMgconfiguration Failed Else Mgconfig Success Endif Instruction InterpretationCHE=F,G NA6CHC=D,E Example 1 System Set-up Design ExamplesExample 2 Profiled Move Example 3 Position InterrogationExample 5 Velocity Control Jogging Example 8 Operation in the Buffer ModeExample 6 Operation Under Torque Limit Example 7 InterrogationExample 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 RS232 Port RS-232 ConfigurationRS232 Port 1 Dataterm Baud Rate SelectionCommunication Protocols Ethernet ConfigurationAddressing Handshaking ModesGlobal vs. Local Operation Ethernet HandlesLocal Operation Operation of Distributed Control Accessing the I/O of the SlavesMulticasting Handling Communication ErrorsDigital Outputs Digital InputsIOC-7007 Support Unsolicited Message HandlingFunction Code Definition Modbus SupportHandle Restore on Communication Failure Handle SwitchingOther Communication Options User Defined Ethernet VariablesWaiting on Handle Responses Data RecordData Record Map DMC-3425 Communication Communication DMC-3425 Header Information Byte 0, 1 of Header Axis Switch Information 1 ByteBytes 2, 3 of Header General Status Information 1 ByteCoordinated 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 Datafields Format Binary command tableExample LE, VEController Response to Data Summary of Interrogation Commands Interrogation CommandsInterrogating Current Commanded Values Interrogating the ControllerCommand Summary This page Left Blank Intentionally Programming Motion Mode of Motion Basic description Commands Global VP, CR Independent Axis PositioningOperand Summary Independent Axis Command Summary Independent AxisExamples Absolute Position MovementBG C InstructionInterpretationJog in a and C axes Command Summary JoggingIndependent Jogging Joystick Jogging Linear Interpolation Mode Local ModeSpecifying Linear Segments Specifying Vector Speed for Each Segment Additional Commands#ALT LmabOperand Summary Linear Interpolation Command Summary Linear InterpolationChanging Feedrate BGSExample Linear Move ExampleLinear Interpolation Motion #LMOVE#LOAD Example Multiple MovesSpecifying Vector Segments Vector Mode Linear and Circular Interpolation Local ModeAdditional commands Compensating for Differences in Encoder Resolution Command Summary Coordinated Motion SequenceOperand Summary Coordinated Motion Sequence TrippointsRequired Path VM ABCommand Summary Electronic Gearing Electronic Gearing Local ModeExample Gantry Mode Example Electronic GearingGA, CA Electronic Cam Local ModeBGB GA,AProgramming Motion DMC-3425 DMC-3425 Programming Motion 3000 2250 1500 2000 4000 6000 Master #LOOP EAA#RUN EB1ST a #LOOPJP#LOOP,V1=0Specifying Contour Segments Contour Mode Local ModeDT0CD0 Instruction DescriptionCMA Operand Summary Contour Mode Command Summary Contour ModeGeneral Velocity Profiles Generating an Array An ExamplePOSC=V4 Contour Mode Example#POINTS Record and Playback Example Teach Record and Play-BackMode of Motion Virtual Axis usage Commands Virtual Axis Local ModeEcam Master Example Stepper Motor OperationSinusoidal Motion Example Specifying Stepper Motor OperationStepper Motor Smoothing Monitoring Generated Pulses vs. Commanded PulsesCommand Summary Stepper Motor Operation Using an Encoder with Stepper MotorsMotion Complete Trippoint Operand Summary Stepper Motor OperationAdditional Commands for the Auxiliary Encoder Using the CE CommandDual Loop Auxiliary Encoder Backlash CompensationSampled Dual Loop Continuous Dual Loop#DUALOOP DE0Motion Smoothing Using the IT and VT CommandsJP#CORRECT #ENDTrapezoidal velocity and smooth velocity profiles HomingHM a #HOMEAM a MG AT HomeHome Switch High Speed Position Capture Latch Command Summary Homing OperationOperand Summary Homing Operation Input FunctionAL B This page Left Blank Intentionally Global vs. Local Programming Application ProgrammingEntering Programs Edit Mode CommandsReturn ED #BEGINProgram Format Using Labels in ProgramsValid labels Invalid labelsCommenting Programs No Command and the Apostrophe ‘Special Labels Executing Programs Multitasking REM CommandDebugging Programs Error Code Command Trace CommandStop Code Command RAM Memory Interrogation CommandsEeprom 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 Command Format JP and JS Example- Define Output Waveform Using ATConditional Jumps FormatLogical operators Example using variables named V1, V2, V3Conditional Statements Multiple Conditional StatementsExamples Using the if and Endif CommandsIf, Else, and Endif Command Format IF, Else and Endif Using the Else CommandNesting if Conditional Statements Format DescriptionStack 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 Mathematical and Functional Expressions Example Ethernet Communication ErrorMathematical Operators Operator FunctionENTER,LENS6 Bit-Wise OperatorsFLEN=@FRACLEN LEN1=FLEN&$00FFFunctions VariablesPOS PR PosaAssigning Values to Variables Programmable VariablesAssigning Variable Values to Controller Parameters Displaying the value of variables at the terminalOperands Example Using Variables for JoystickSpecial Operands InstructionAssignment of Array Entries ArraysDefining Arrays Automatic Data Capture into Arrays Using a Variable to Address Array ElementsUploading and Downloading Arrays to On Board Memory Data Types for Recording Command Summary Automatic Data CaptureOperand Summary Automatic Data Capture Example Recording into An ArrayDeallocating Array Space Outputting Numbers and StringsSending Messages Specifying the Port for MessagesMG STR S3 Using the MG Command to Configure TerminalsFormatting Messages Summary of Message Functions Displaying Variables and ArraysExample Printing a Variable and an Array element Function DescriptionLZ1 Local Formatting of Response of Interrogation CommandsLZ0 Local Formatting of Variables Formatting Variables and Array ElementsVF1 V1=ALPHAConverting to User Units Hardware I/ODigital Outputs Example- Set Bit and Clear BitExample Start Motion on Switch Example Using Inputs to control program flowDigital Inputs Example- Output PortExample 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 Example Applications Wire CutterInterfacing to Grayhill or OPTO-22 G4PB24 Argument Blocks Bits DescriptionJP #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 ProtectionSoftware Protection Signal or Function State if Error OccursInput Protection Lines Programmable Position Limits#AJP #AEN Off-On-ErrorAutomatic Error Routine Limit Switch Example Limit Switch RoutineSymptom Cause Remedy InstallationCommunication Symptom CauseStability OperationTheory 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 Performance Specifications Electrical SpecificationsPower Requirements Servo ControlJ3 DMC-3425 General I/O 37- PIN D-type Connectors for DMC-3425Acmda Pwma Acmdy SignaPwmb J3 DMC-3425-Stepper General I/O 37- PIN D-typeSignb Pwma SignaJ1 RS232 Main port DB-9 Pin Male Pin-Out DescriptionDCD DTR GND DSR RTS CTS RTS CTS GNDICM-1460 Interconnect Module FeaturesSpecifications ERROR/PULSEY ResetAMPEN/SIGNY5 ACMDX/PULSEXOpto-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 PWROUT31 PWROUT32PWROUT30 PWROUT291000 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.