XQ _ED3,_ED1,1

Skip invalid command

ENDIF

 

EN

End of command error routine

Example – Ethernet Communication Error

This simple program executes in the DMC-3425 and indicates (via the serial port) when a communication handle fails. By monitoring the serial port, the user can re-establish communication if needed.

Instruction

Interpretation

#LOOP

Simple program loop

JP#LOOP

 

EN

 

#TCPERR

Ethernet communication error auto routine

MG {P1}_IA4

Send message to serial port indicating which handle

 

did not receive proper acknowledgment

RE

 

Mathematical and Functional Expressions

Mathematical Operators

For manipulation of data, the DMC-3425 provides the use of the following mathematical operators:

Operator

Function

 

 

+

Addition

-

Subtraction

 

 

*

Multiplication

 

 

/

Division

 

 

&

Logical And (Bit-wise)

 

 

Logical Or (On some computers, a solid vertical line

 

appears as a broken line)

()

Parenthesis

 

 

 

 

The numeric range for addition, subtraction and multiplication operations is +/-2,147,483,647.9999. The precision for division is 1/65,000.

Mathematical operations are executed from left to right. Calculations within parentheses have precedence.

SPEED=7.5*V1/2

The variable, SPEED, is equal to 7.5 multiplied by V1 and

 

divided by 2

COUNT=COUNT+2

The variable, COUNT, is equal to the current value plus 2.

RESULT=_TPA-(@COS[45]*40)

Puts the position of A - 28.28 in RESULT. 40 * cosine of

 

45° is 28.28

TEMP=@IN[1]&@IN[2]

TEMP is equal to 1 only if Input 1 and Input 2 are high

DMC-3425

Chapter 7 Application Programming127

Page 135
Image 135
Galil DMC-3425 Mathematical and Functional Expressions, Mathematical Operators, Example Ethernet Communication 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.