The main thread differs from the others in the following ways:

1.Only the main thread, thread 0, may use the input command, IN.

2.When automatic subroutines are implemented for limit switches, position errors or command errors, they are executed in thread 0.

To begin execution of the various programs, use the following instruction: XQ #A, n

Where n indicates the thread number. To halt the execution of any thread, use the instruction HX n

where n is the thread number.

Note that both the XQ and HX commands can be performed by an executing program. The example below produces a waveform on Output 1 independent of a move.

Instruction

Interpretation

#TASK1

Task1 label

AT0

Initialize reference time

CB1

Clear Output 1

#LOOP1

Loop1 label

AT 10

Wait 10 msec from reference time

SB1

Set Output 1

AT –40

Wait 40 msec from reference, then initialize reference

CB1

Clear Output 1

JP #LOOP1

Repeat Loop1

#TASK0

Task2 label

XQ #TASK1,1

Execute Task1

#LOOP2

Loop2 label

PR 1000

Define relative distance

BGA

Begin motion

AMA

After motion done

WT 10

Wait 10 msec

JP #LOOP2,@IN[2]=1

Repeat motion unless Input 2 is low

HX

Halt all tasks

EN

End of Program

The program above is executed with the instruction XQ #TASK0,0 which designates TASK0 as the main thread (i.e. Thread 0). #TASK1 is executed within TASK0.

Debugging Programs

The DMC-3425 provides commands and operands that are useful in debugging application programs. These commands include interrogation commands to monitor program execution, determine the state of the controller and the contents of the controllers program, array, and variable space. Operands also contain important status information that can help to debug a program. Breakpoint and single stepping commands are available to actively debug a program while in operation.

112 • Chapter 7 Application Programming

DMC-3425

Page 120
Image 120
Galil DMC-3425 user manual Debugging Programs

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.