_HMn

_LFn

_LRn

_UL

TIME

*Returns status of Home Switch (equals 0 or 1)

Returns status of Forward Limit switch input of axis ‘n’ (equals 0 or 1) Returns status of Reverse Limit switch input of axis ‘n’ (equals 0 or 1) *Returns the number of available variables

Free-Running Real Time Clock (off by 2.4% - Resets with power-on). NOTE: TIME does not use an underscore character (_) as other operands.

*These operands have corresponding commands while the operands _LF, _LR and TIME do not have any associated commands. All operands are listed in the Command Reference Manual.

Examples

V1=_LFA

Assign V1 the state of the Forward Limit Switch on the A-axis

V3=TIME

Assign V3 the current value of the time clock

V4=_HMD

Assign V4 the logical state of the Home input on the D-axis

Arrays

For storing and collecting numerical data, the DMC-3425 provides array space for 2000 elements. The arrays are one-dimensional and up to 14 different arrays may be defined. The array data is available to both threads on each controller. When operating with multiple controllers, arrays are only defined within the same controller.

Each array element has a numeric range of 4 bytes of integer (231) followed by two bytes of fraction (+/-2,147,483,647.9999).

Arrays can be used to capture real-time data, such as position, torque and analog input values. In the contouring mode, arrays are convenient for holding the points of a position trajectory in a record and playback application.

Defining Arrays

An array is defined with the command DM. The user must specify a name and the number of entries to be held in the array. An array name can contain up to eight characters, starting with an uppercase alphabetic character. The number of entries in the defined array is enclosed in [ ].

DM POSA[7]

Defines an array names POSA with seven entries

DM SPEED[100]

Defines an array named speed with 100 entries

DM POSA[0]

Frees array space

Assignment of Array Entries

Like variables, each array element can be assigned a value. Assigned values can be numbers or returned values from instructions, functions and keywords.

Array elements are addressed starting at count 0. For example the first element in the POSA array (defined with the DM command, DM POSA[7]) would be specified as POSA[0].

Values are assigned to array entries using the equal sign. Assignments are made one element at a time by specifying the element number with the associated array name.

NOTE: Arrays must be defined using the command, DM, before assigning entry values.

132 • Chapter 7 Application Programming

DMC-3425

Page 140
Image 140
Galil DMC-3425 user manual Defining Arrays, Assignment of Array Entries

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.