Example - Input Interrupt

This simple program jogs the A and C motors (C motor is the first motor of the first slave controller of a distributed control system). When the first input of the master (input 1), goes low, the controller will stop motion on both axes. When the input returns high, the motors will resume jogging.

Instruction

Interpretation

#A

Label

II1

Input Interrupt on 1

JG 30000,,60000

Jog

BGAD

Begin Motion

#LOOP;JP#LOOP;EN

Loop

#ININT

Input Interrupt

STAD;AMAD

Stop Motion

#TEST;JP #TEST, @IN[1]=0

Test for Input 1 still low

JG 30000,,,6000

Restore Velocities

BGAD

Begin motion

RI0

Return from interrupt routine to Main Program and do not

 

re-enable trippoints

Example - Motion Complete Timeout

This simple program will issue the message “A fell short” if the A axis does not reach the commanded position within 1 second of the end of the profiled move.

Instruction

Interpretation

#BEGIN

Begin main program

TW 1000

Set the time out to 1000 ms

PA 10000

Position Absolute command

BGA

Begin motion

MCA

Motion Complete trip point

EN

End main program

#MCTIME

Motion Complete Subroutine

MG “A fell short”

Send out a message

EN

End subroutine

Example - Command Error

The above program prompts the operator to enter a jog speed. If the operator enters a number out of range (greater than 8 million), the #CMDERR routine will be executed prompting the operator to enter a new number.

In multitasking applications, there is an alternate method for handling command errors from different threads. Using the XQ command along with the special operands described below allows the controller to either skip or retry invalid commands.

Instruction

Interpretation

#BEGIN

Begin main program

IN "ENTER SPEED", SPEED

Prompt for speed

JG SPEED;BGA;

Begin motion

JP #BEGIN

Repeat

DMC-3425

Chapter 7 Application Programming125

Page 133
Image 133
Galil DMC-3425 user manual Example Input Interrupt, Example Motion Complete Timeout, Example Command Error

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.