Encoder (OMS-MAXV)

The following functions can be used with the OMS-MAXV stepper controller, if an encoder (e.g. RENISHAW RGH24) is connected.

get_motor_unit_position_encoder, alias gmupe
this function uses the current encoder reading, the encoder conversion factor and the encoder home position to calculate the motor position. $ret=gmupe( "mot11");

get_motor_ncoder_raw, alias gmeraw
returns the raw encoder reading $ret=gmeraw( "mot11");

set_motor_conversion_encoder, get_~, alias smce, gmce
the conversion factor $ret=smce( "mot11", 20000);
$conv=gmce( "mot11");

set_motor_home_position, get_~, alias smhp, gmhp
$ret=smhp( "mot11", 50.186);
$conv=gmhp( "mot11");

Spectra::move_home()
executes the motor homing procedure. Details about the homing procedure can be found in the Online manual: functions-motors-encoder.
, $ret=Spectra::move_home("mot11");