09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ReadMotor Reads the current motor angles<br />

Example<br />

ReadMotor is used to read the current angles of the different motors of the robot and<br />

external axes. The primary use of this function is in the calibration procedure of the<br />

robot.<br />

VAR num motor_angle2;<br />

motor_angle2 := ReadMotor(2);<br />

The current motor angle of the second axis of the robot is stored in<br />

motor_angle2.<br />

Return value Data type: num<br />

Arguments<br />

The current motor angle in radians of the stated axis of the robot or external axes.<br />

ReadMotor [\MecUnit ] Axis<br />

MecUnit (Mechanical Unit) Data type: mecunit<br />

The name of the mechanical unit for which an axis is to be read. If this argument<br />

is omitted, the axis for the robot is read. (Note, in this release only robot is permitted<br />

for this argument).<br />

Axis Data type: num<br />

Program execution<br />

The number of the axis to be read (1 - 6).<br />

The motor angle returned represents the current position in radians for the motor and<br />

independently of any calibration offset. The value is not related to a fix position of the<br />

robot, only to the resolver internal zero position, i.e. normally the resolver zero position<br />

closest to the calibration position (the difference between the resolver zero position<br />

and the calibration position is the calibration offset value). The value represents<br />

the full movement of each axis, although this may be several turns.<br />

<strong>RAPID</strong> Reference Manual 9-ReadMotor-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!