@INT[n]

@RND[n]

@SQR[n]

@IN[n]

@OUT[n]

@AN[n]

Integer portion of n

Round of n (Rounds up if the fractional part of n is .5 or greater) Square root of n (Accuracy is +/-.004)

Return digital input at general input n (where n starts at 1) Return digital output at general output n (where n starts at 1) Return analog input at general analog in n (where n starts at 1)

*Note that these functions are multi-valued. An application program may be used to find the correct band. Functions may be combined with mathematical expressions. The order of execution of mathematical expressions is from left to right and can be over-ridden by using parentheses.

Examples:

V1=@ABS[V7]

The variable, V1, is equal to the absolute value of variable V7.

V2=5*@SIN[POS]

The variable, V2, is equal to five times the sine of the variable, POS.

V3=@IN[1]

The variable, V3, is equal to the digital value of input 1.

V4=2*(5+@AN[5])

The variable, V4, is equal to the value of analog input 5 plus 5, then multiplied by 2.

Variables

For applications that require a parameter that is variable, the DMC-1700/1800 provides 254 variables. These variables can be numbers or strings. A program can be written in which certain parameters, such as position or speed, are defined as variables. The variables can later be assigned by the operator or determined by program calculations. For example, a cut-to-length application may require that a cut length be variable.

Example:

PR POSX

Assigns variable POSX to PR command

JG RPMY*70

Assigns variable RPMY multiplied by 70 to JG command.

Programmable Variables

The DMC-1700/1800 allows the user to create up to 254 variables. Each variable is defined by a name which can be up to eight characters. The name must start with an alphabetic character, however, numbers are permitted in the rest of the name. Spaces are not permitted. Variable names should not be the same as DMC-1700/1800 instructions.

For example, PR is not a good choice for a variable name. Examples of valid and invalid variable names are:

Valid Variable Names

POSX

POS1

SPEEDZ

Invalid Variable Names

REALLONGNAME

; Cannot have more than 8 characters

123

; Cannot begin variable name with a number

SPEED Z

; Cannot have spaces in the name

Assigning Values to Variables:

Assigned values can be numbers, internal variables and keywords, functions, controller parameters and strings; The range for numeric variable values is 4 bytes of integer (231)followed by two bytes of fraction

DMC-1700/1800

Chapter 7 Application Programming • 155

Page 163
Image 163
Galil DMC-1700, DMC-1800 user manual Programmable Variables, Assigning Values to Variables, PR Posx, JG RPMY*70

DMC-1800, DMC-1700 specifications

The Galil DMC-1700 and DMC-1800 are advanced motion controllers widely recognized for their high performance and versatility in the automation and robotics industries. These controllers are designed to meet the demands of complex motion control applications, providing users with enhanced features and innovative technologies that optimize motion precision and efficiency.

One of the main features of the Galil DMC-1700 is its ability to handle up to 8 axes of motion control. This capability makes it suitable for a range of applications, from simple point-to-point movements to intricate trajectories in multi-axis systems. In contrast, the DMC-1800 extends this functionality, supporting up to 64 axes, making it ideal for large-scale automation environments.

Both models leverage Galil's powerful programming interface, which simplifies the development of motion control applications. The DMC-1700 and DMC-1800 controllers utilize a high-level programming language that supports advanced motion commands, including linear interpolation, circular interpolation, and complex motion profiles. This feature allows users to implement sophisticated motion sequences seamlessly.

In terms of connectivity, the Galil DMC series offers multiple communication options, including Ethernet, RS-232, and CAN bus, ensuring compatibility with various hardware and enabling easy integration into existing systems. The controllers also come equipped with digital and analog I/O ports, providing flexibility for sensor feedback and actuator control.

The advanced technology incorporated into both the DMC-1700 and DMC-1800 includes on-board PID control, which ensures precise motion control through closed-loop feedback. This results in improved stability and accuracy, particularly in high-speed applications. Additionally, the controllers offer extensive diagnostics and monitoring capabilities, allowing for real-time performance analysis and troubleshooting.

Another notable characteristic of these motion controllers is their compact design, which offers space-saving advantages while maintaining high processing power. Their robust construction and ability to operate in challenging environments make them suitable for a wide range of industrial applications, from CNC machining to assembly lines.

In conclusion, the Galil DMC-1700 and DMC-1800 motion controllers stand out due to their high-performance capabilities, advanced programming features, and flexibility in connectivity. With their ability to handle complex motion control tasks efficiently, these controllers are invaluable tools for engineers and manufacturers looking to enhance their automation processes. By integrating Galil's innovative motion control technology, industries can achieve greater precision, speed, and reliability in their operational workflows.