Coordinate Inversion

Modbus Motion Interface

Write_Word(<AxisPage>_+_CoordinateInversion_w,<1 for on, 0 for off>);

Description

Coordinate Inversion is used to change the direction a motor or encoder regards as positive. Axis direction is influenced by mechanical transmission reversals, encoder phase definition, and wiring conventions. If the motor does not move in the direction regarded as positive this command may be used to invert the direction by calling with a non-zero parameter. This command operates in an incremental manner by inverting the coordinate frame about the current Actual Position rather than 0. The best time to use this command is during initial setup before homing has been performed. This is not intended to be used after initialization as it can relocate the origin.

Escapes

Reading or writing to the Coordinate Inversion register does not generate any escapes.

Examples

{invert the coordinates for the motor}

Write_Word_Register(Axis1_+_CoordinateInversion_w,1);

{Read if the coordinates are inverted for axis 1}

if Read_Word_Register(Axis1_+_CoordinateInversion_w) = 0 then
 ShowMessage('Coordinates are not inverted')
else
 ShowMessage('Coordinates are inverted');

Related Topics

Set Positive Limit
Motor On