Input Interrupt Function

The DMC-3425 provides an input interrupt function which causes the program to automatically execute the instructions following the #ININT label. This function is enabled using the II m,n,o command. The m specifies the beginning input and n specifies the final input in the range. The parameter o is an interrupt mask. If m and n are unused, o contains a number with the mask. A 1 designates that input to be enabled for an interrupt, where 20 is bit 1, 21 is bit 2 and so on. For example, II,,5 enables inputs 1 and 3 (20 + 22 = 5). The RI command (not EN) is used to return from the #ININT subroutine

A low input on any of the specified inputs will cause automatic execution of the #ININT subroutine. The Return from Interrupt (RI) command is used to return from this subroutine to the place in the program where the interrupt had occurred. If it is desired to return to somewhere else in the program after the execution of the #ININT subroutine, the Zero Stack (ZS) command is used followed by unconditional jump statements.

Example - Input Interrupt

Instruction

Interpretation

#A

Label #A

II 1

Enable input 1 for interrupt function

JG 30000,-20000

Set speeds on A and B axes

BG AB

Begin motion on A and B axes

#B

Label #B

TP AB

Report A and B axes positions

WT 1000

Wait 1000 milliseconds

JP #B

Jump to #B

EN

End of program

#ININT

Interrupt subroutine

MG "Interrupt has occurred"

Displays the message

ST AB

Stops motion on A and B axes

#LOOP;JP #LOOP,@IN[1]=0

Loop until Interrupt cleared

JG 15000,10000

Specify new speeds

WT 300

Wait 300 milliseconds

BG AB

Begin motion on A and B axes

RI

Return from Interrupt subroutine

Analog Inputs

The DMC-3425 provides two analog inputs. The value of these inputs in volts may be read using the @AN[n] function where n is the analog input 1 or 2. The resolution of the standard Analog-to-Digital conversion is 12 bits. Analog inputs are useful for reading special sensors such as temperature, tension or pressure.

The following examples show programs that cause the motor to follow an analog signal. The first example is a point-to-point move. The second example shows a continuous move.

Example - Position Follower (Point-to-Point)

Objective - The motor must follow an analog signal. When the analog signal varies by 10V, motor must move 10000 counts.

Method: Read the analog input and command A to move to that point.

142 • Chapter 7 Application Programming

DMC-3425

Page 150
Image 150
Galil DMC-3425 user manual Input Interrupt Function, Analog Inputs, Example Position Follower Point-to-Point

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.