SUMMARY
On some products or for unique customer solutions it may be necessary to set some features/parameters of the motor via a file. Loading and setting via file import method keeps the admin features of the 5000 series hidden.
NOTE: This is an internal document and should not be shared with customers. The Import process can be shared with customers.
SOLUTION
Details
These features are available via the CSTM_MICROSTP define in the SystemIfo.h. This define has been set for most products.
Once the CSTM_MICROSTP define has been set via code the MICROSTEP_RESOLUTION define will reflect whatever _stepMicrostepping has been set to via the imported MOTOR.CAL file. The _stepMicrostepping variable will default to 256 if not set or not within range.
The micro stepping value is stored in the equipment's EEPROM.
All systems will default to a micro stepping value of 256 unless a custom MOTOR.CAL file is loaded. The system will recognize the MOTOR.CAL file name in the following formats:
- MOTOR.CAL
- motor.CAL
- Motor.CAL
- The extension should be capitalized (.CAL).
The current Micro Stepping value can be viewed in the system information screen of the logger.
Files where micro stepping options are used:
Calibrations.c/.h, EEPROM.c/.h, Main.c, Stepper.c/.h, SystemInfo.h, and systempreferences.h.
MOTOR.CAL Format and Accepted Values
Line 1 of MOTOR.CAL file:
VALUE1 VALUE2 VALUE3
VALUE1 = Stepper Orientation [0 or 1 where 0 = Standard direction and 1 = Reversed direction]
VALUE2 = Gear Box Ratio Select [0 to 4 where 0 = 60.0, 1 = 61.45, 2 = 65.76, 3 = 71.53, and 4 = 73.0]
VALUE3 = Stepper Micro Stepping [8, 64, 128, or 256]
Example:
0 0 256
This will set a standard direction, a gear box ratio of 60, and a micro stepping resolution of 256.
Importing MOTOR.CAL
- From the main screen of the logger select the menu option at the top left.
- Choose SYSTEM PREFERENCES from the drop down list.
- Select CALIBRATIONS.
- Insert USB stick with MOTOR.CAL file.
- Select the IMPORT button.
- Select the MOTOR.CAL file and then click the IMPORT button.
- The parameters will be imported and stored.
Comments
0 comments
Please sign in to leave a comment.