#SETUP

 

OE1;

Set the profiler to stop axis upon error

KS16;

Set step smoothing

MT-2;

Motor type set to stepper

YA64;

Step resolution of the microstepping drive

YB200;

Motor resolution (full steps per revolution)

YC4000;

Encoder resolution (counts per revolution)

SHX;

Enable axis

WT50;

Allow slight settle time

YS1;

Enable SPM mode

Example: Error Correction

The following code demonstrates what is necessary to set up SPM mode for the X axis, detect error, stop the motor, correct the error, and return to the main code. The drive is a full step drive, with a 1.8o step motor and 4000 count/rev encoder.

#SETUP

 

OE1;

Set the profiler to stop axis upon error

KS16;

Set step smoothing

MT-2,-2,-2,-2;

Motor type set to stepper

YA2;

Step resolution of the drive

YB200;

Motor resolution (full steps per revolution)

YC4000;

Encoder resolution (counts per revolution)

SHX;

Enable axis

WT100;

Allow slight settle time

#MOTION

Perform motion

SP512;

Set the speed

PR1000;

Prepare mode of motion

BGX;

Begin motion

#LOOP;JP#LOOP;

Keep thread zero alive for #POSERR to run in

REM When error occurs, the axis will stop due to OE1. In REM #POSERR, query the status YS and the error QS, correct, REM and return to the main code.

#POSERR;

Automatic subroutine is called when YS=2

WT100;

Wait helps user see the correction

spsave=_SPX;

Save current speed setting

JP#RETURN,_YSX<>2;

Return to thread zero if invalid error

SP64;

Set slow speed setting for correction

DMC-1700/1800

Chapter 6 Programming Motion • 123

Page 131
Image 131
Galil DMC-1700, DMC-1800 user manual Example Error Correction, #Motion, #Loopjp#Loop, #Poserr, JP#RETURN,YSX2

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.