libximc  2.3.2
Data Fields
engine_settings_t Struct Reference

Engine settings. More...

Data Fields

unsigned int NomVoltage
 Rated voltage.
unsigned int NomCurrent
 Rated current.
unsigned int NomSpeed
 Nominal speed (in whole steps / s or rpm for DC and stepper motor as a master encoder).
unsigned int uNomSpeed
 The fractional part of a nominal speed in microsteps (is only used with stepper motor).
unsigned int EngineFlags
 Flags of engine settings.
int Antiplay
 Number of pulses or steps for backlash (play) compensation procedure.
unsigned int MicrostepMode
 Flags of microstep mode.
unsigned int StepsPerRev
 Number of full steps per revolution(Used with steper motor only).

Detailed Description

Engine settings.

This structure contains useful motor settings. These settings specify motor shaft movement algorithm, list of limitations and rated characteristics. All boards are supplied with standart set of engine setting on controller's flash memory. Please load new engine settings when you change motor, encoder, positioner etc. Please note that wrong engine settings lead to device malfunction, can lead to irreversible damage of board.

See also:
set_engine_settings
get_engine_settings
get_engine_settings, set_engine_settings

Field Documentation

int Antiplay

Number of pulses or steps for backlash (play) compensation procedure.

Used if ENGINE_ANTIPLAY flag is set. Range: -32768..32767

unsigned int NomCurrent

Rated current.

Controller will keep current consumed by motor below this value if ENGINE_LIMIT_CURR flag is set. Range: 1..65535

unsigned int NomSpeed

Nominal speed (in whole steps / s or rpm for DC and stepper motor as a master encoder).

Controller will keep motor shaft RPM below this value if ENGINE_LIMIT_RPM flag is set. Range: 1..1000000.

unsigned int NomVoltage

Rated voltage.

Controller will keep the voltage drop on motor below this value if ENGINE_LIMIT_VOLT flag is set(Used with DC only). Range: 1..65535

unsigned int StepsPerRev

Number of full steps per revolution(Used with steper motor only).

Range: 1..65535.

unsigned int uNomSpeed

The fractional part of a nominal speed in microsteps (is only used with stepper motor).

Range: 0..255