RC1

Start recording now, at rate of 2 msec

BG AB

Begin motion

#A;JP #A,RC=1

Loop until done

MG "DONE"

Print message

EN

End program

#PLAY

Play back

N=0

Initial Counter

JP# DONE,N>300

Exit if done

N=

Print Counter

A POS[N]=

Print A position

B POS[N]=

Print B position

AERR[N]=

Print A error

BERR[N]=

Print B error

N=N+1

Increment Counter

#DONE

Done

EN

End Program

Deallocating Array Space

Array space may be deallocated using the DA command followed by the array name. DA*[0] deallocates all the arrays.

Outputting Numbers and Strings

Numerical and string data can be output from the controller using several methods. The message command, MG, can output string and numerical data. Also, the controller can be commanded to return the values of variables and arrays, as well as other information using the interrogation commands (the interrogation commands are described in chapter 5).

Sending Messages

Messages may be sent to the bus using the message command, MG. This command sends specified text and numerical or string data from variables or arrays to the screen.

Text strings are specified in quotes and variable or array data is designated by the name of the variable or array. For example:

MG "The Final Value is", RESULT

In addition to variables, functions and commands, responses can be used in the message command. For example:

MG "Analog input is", @AN[1] MG "The Position of A is", _TPA

Specifying the Port for Messages:

By default, messages will be sent through the port from which the data was requested. However, the port can be specified with the specifier, {P1} for the main serial port or {Ea} for the Ethernet handle. ‘a’ will be the handle letter, A through H.

MG {P1} "Hello World"

Sends message to Serial

DMC-3425

Chapter 7 Application Programming135

Page 143
Image 143
Galil DMC-3425 user manual Outputting Numbers and Strings, Deallocating Array Space, Sending Messages

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.