DM SPEED[10]

Dimension Speed Array

SPEED[1]=7650.2

Assigns the first element of the array the value 7650.2

SPEED[1]=

Returns array element value

POSX[10]=_TPA

Assigns the 11th element the position of A.

CON[2]=@COS[POS]*2

Assigns the 3rd element of the array the cosine of POS * 2.

TIMER[1]=TIME

Assigns the 2nd element of the array TIME

Using a Variable to Address Array Elements

An array element number can also be a variable. This allows array entries to be assigned sequentially using a counter.

This example records 10 position values at a rate of one value per 10 msec. The values are stored in an array named POS. The variable, COUNT, is used to increment the array element counter. This example can also be executed with the automatic data capture feature described below.

Instruction

Interpretation

#A

Begin Program

COUNT=0;DM POS[10]

Initialize counter and define array

#LOOP

Begin loop

WT 10

Wait 10 msec

POS[COUNT]=_TPA

Record position into array element

POS[COUNT]=

Report position

COUNT=COUNT+1

Increment counter

JP #LOOP,COUNT<10

Loop until 10 elements have been stored

EN

End Program

Uploading and Downloading Arrays to On Board Memory

Arrays may be uploaded and downloaded using the QU and QD commands. QU array[],start,end,delim

QD array[],start,end

where array is an array name such as A[]. Start is the first element of array (default=0)

End is the last element of array (default=last element)

Delim specifies whether the array data is separated by a comma (delim=1) or a carriage return (delim=0).

The file is terminated using <control>Z, <control>Q, <control>D or \.

Automatic Data Capture into Arrays

The DMC-3425 provides a special feature for automatic capture of data such as position, position error, inputs or torque. This is useful for teaching motion trajectories or observing system performance. Up to four types of data can be captured and stored in four arrays. The capture rate or time interval may be specified. Recording can be done as a one time event or as a circular continuous recording.

DMC-3425

Chapter 7 Application Programming133

Page 141
Image 141
Galil DMC-3425 user manual Uploading and Downloading Arrays to On Board Memory, Automatic Data Capture into Arrays

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.