stepRocker Open Source TMCL  1.00
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
Variables
Globals.c File Reference

Global variables. More...

#include "stepRocker.h"
Include dependency graph for Globals.c:

Variables

TModuleConfig ModuleConfig
 Global parameters (here only used for the RS232 interface) More...
 
TMotorConfig MotorConfig [N_O_MOTORS]
 Motor configuration data. More...
 
TClosedLoopConfig ClosedLoopConfig [N_O_MOTORS]
 Closed loop configuration. More...
 
UCHAR SmartEnergy [N_O_MOTORS]
 actual smartEnergy values
 
UCHAR StallFlag [N_O_MOTORS]
 actual stallGuard flag states
 
UINT StallLevel [N_O_MOTORS]
 actual stallGuard load values
 
UCHAR DriverFlags [N_O_MOTORS]
 actual driver error flags
 
UCHAR MotorDisable [N_O_MOTORS]
 actual motor disable flags
 
UCHAR StandbyFlag [N_O_MOTORS]
 standby current flags
 
UCHAR FreewheelingActive [N_O_MOTORS]
 freewheeling flags
 
UCHAR SlowRunCurrent [N_O_MOTORS]
 slow run current
 
TCoolStepConfig CoolStepConfig [N_O_MOTORS]
 coolStep configuration
 
UCHAR VMaxModified [N_O_MOTORS]
 TRUE when motor max. speed has been changed by ROL/ROR command.
 
int ClosedLoopPositionOffset [N_O_MOTORS]
 
int EncoderOffset [N_O_MOTORS]
 
UINT GearRatio [N_O_MOTORS]
 
UCHAR DeviationFlag [N_O_MOTORS]
 
UCHAR ExitTMCLFlag
 This will be set to TRUE for exiting TMCL and branching to the boot loader.
 

Detailed Description

Global variables.

Author
Trinamic Motion Control GmbH & Co KG
Version
2.20

This file contains all globally used variables.

Variable Documentation

TClosedLoopConfig ClosedLoopConfig[N_O_MOTORS]
Initial value:
=
{
0,
300000,
600000,
255,
255,
0,
100,
240,
0,
1000,
10000,
10000,
20,
10,
0,
1073741823,
65536,
100,
100,
0,
7,
500,
0,
}

Closed loop configuration.

TModuleConfig ModuleConfig
Initial value:
=
{
0,
1,
2,
1,
2,
8,
}

Global parameters (here only used for the RS232 interface)

TMotorConfig MotorConfig[N_O_MOTORS]
Initial value:
=
{{
128,
32,
8,
0,
0,
0,
0,
128,
0,
1,
0,
4096,
0,
0,
51200 << 2,
51200 << 2,
25600,
25600,
10000,
200,
}
}

Motor configuration data.