Logical operators:

OPERATOR

DESCRIPTION

 

 

<

less than

 

 

>

greater than

 

 

=

equal to

<=

less than or equal to

 

 

>=

greater than or equal to

 

 

<>

not equal

 

 

 

 

Conditional Statements

The conditional statement is satisfied if it evaluates to any value other than zero. The conditional statement can be any valid DMC-3425 numeric operand, including variables, array elements, numeric values, functions, keywords, and arithmetic expressions. If no conditional statement is given, the jump will always occur.

Number

V1=6

Numeric Expression

V1=V7*6

 

@ABS[V1]>10

Array Element

V1<Count[2]

Variable

V1<V2

Internal Variable

_TPA=0

 

_TVA>500

I/O

V1>@AN[2]

 

@IN[1]=0

Multiple Conditional Statements

The DMC-3425 will accept multiple conditions in a single jump statement. The conditional statements are combined in pairs using the operands “&” and “”. The “&” operand between any two conditions, requires that both statements must be true for the combined statement to be true. The “” operand between any two conditions, requires that only one statement be true for the combined statement to be true.

NOTE: Each condition must be placed in parentheses for proper evaluation by the controller. In addition, the DMC-3425 executes operations from left to right. For further information on Mathematical Expressions and the bit-wise operators ‘&’ and ‘’, see pg. 1275.

Example using variables named V1, V2, V3 and V4:

JP #TEST, (V1<V2) & (V3<V4)

In this example, this statement will cause the program to jump to the label #TEST if V1 is less than V2 and V3 is less than V4. To illustrate this further, consider this same example with an additional condition:

JP #TEST, ((V1<V2) & (V3<V4)) (V5<V6)

This statement will cause the program to jump to the label #TEST under two conditions; 1. If V1 is less than V2 and V3 is less than V4. OR 2. If V5 is less than V6.

120 • Chapter 7 Application Programming

DMC-3425

Page 128
Image 128
Galil DMC-3425 user manual Logical operators, Multiple Conditional Statements, Example using variables named V1, V2, V3

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.