Converting to User Units

Variables and arithmetic operations make it easy to input data in desired user units such as inches or RPM.

The DMC-3425 position parameters such as PR, PA and VP have units of quadrature counts. Speed parameters such as SP, JG and VS have units of counts/sec. Acceleration parameters such as AC, DC,

VA and VD have units of counts/sec2. The controller interprets time in milliseconds.

All input parameters must be converted into these units. For example, an operator can be prompted to input a number in revolutions. A program could be used such that the input number is converted into counts by multiplying it by the number of counts/revolution.

Instruction

Interpretation

#RUN

Label

IN "ENTER # OF REVOLUTIONS",N1

Prompt for revs

PR N1*2000

Convert to counts

IN "ENTER SPEED IN RPM",S1

Prompt for RPMs

SP S1*2000/60

Convert to counts/sec

IN "ENTER ACCEL IN RAD/SEC2",A1

Prompt for ACCEL

AC A1*2000/(2*3.14)

Convert to counts/sec2

BG

Begin motion

EN

End program

Hardware I/O

Digital Outputs

The DMC-3425 has 3 uncommitted outputs. Each bit on the output port may be set and cleared with the software instructions SB (Set Bit) and CB(Clear Bit), or OB (define output bit).

Example- Set Bit and Clear Bit

Instruction

Interpretation

SB3

Sets bit 3 of output port

CB2

Clears bit 2 of output port

Example- Output Bit

The Output Bit (OB) instruction is useful for setting or clearing outputs depending on the value of a variable, array, input or expression. Any non-zero value results in a set bit.

Instruction

Interpretation

OB1, POS

Set Output 1 if the variable POS is non-zero. Clear Output 1 if

 

POS equals 0.

OB 2, @IN [1]

Set Output 2 if Input 1 is high. If Input 1 is low, clear Output 2.

OB 3, @IN [1]&@IN [2]

Set Output 3 only if Input 1 and Input 2 are high.

OB 3, COUNT [1]

Set Output 3 if element 1 in the array COUNT is non-zero.

The output port can be set by specifying an 8-bit word using the instruction OP (Output Port). This

instruction allows a single command to define the state of the output port, where 20 is output 1, 21 is output 2 and so on. A 1 designates that the output is on.

140 • Chapter 7 Application Programming

DMC-3425

Page 148
Image 148
Galil DMC-3425 user manual Hardware I/O, Converting to User Units, Digital Outputs, Example- Set Bit and Clear Bit

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.