StepperII
Dual Axis Stepper Controller
Public Member Functions | Public Attributes | Static Public Attributes

CProfile Class Reference

#include <CProfile.h>

List of all members.

Public Member Functions

void init (uint8_t *s, const char axis, char consoleStatus=0)
void save (void)
 Write changes to eeprom.

Public Attributes

char nonBlocking
 1 = axis commands are non-blocking, 0 = blocking
char units
 0 = degrees, 1 = steps
char accel
 Acceleration slope.
unsigned int maxSpeed
 Maximum speed.
char decel
 Deceleration slope.
int msSettle
 Milliseconds to settle after move.
char sprIndex
 0 200, 1 400, 2 800, 3 1600, 4 3200
int stepsPayload360
 Steps per payload revolution.
char brakeType
 Type of brake (0 none, 1 passive, 2 active.
char reverse
 1 = reverse motor rotation
char noLimits
 1 = no travel limits. Default is 0
int lowTravelLimit
 Low limit position (+/- 32767)
int highTravelLimit
 High limit position (+/- 32767)

Static Public Attributes

static const char degrees = 0
 Flag value for units = degrees.
static const char steps = 1
 Flag value for units = steps.
static const int accelMin = 1
 accel/decel minimum value
static const int accelMax = 20
 accel/decel maximum value
static const int maxSpeedMin = 1
 maxSpeed minimum value
static const int maxSpeedMax = 250
 maxSpeed maximum value

Detailed Description

This is the axis configuration profile. The profile structure is mirrored in non-volatile memory (via the save command) and restored on system power-up/reset.


Member Function Documentation

void CProfile::init ( uint8_t *  s,
const char  axis,
char  consoleStatus = 0 
)

Initialize an axis configuration profile. Check EEPROM for valid data (via CRC compare) and move it to RAM Load useable default values if EEPROM data is not valid

Parameters:
[in]spointer to EEPROM storage
axisprimary, secondary, slave (0, 1, 2)
[in]consoleStatusTrue if hardware detects console
Returns:
none

Member Data Documentation

0 200, 1 400, 2 800, 3 1600, 4 3200

Steps per motor revolution index (0 to 4)


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines