![]() |
|
|||||||||||||
|
|
|||||||||||||
| t.step.low |
|
||
| Input | |||
| int or float | Step: Advances the motor one step whenever a bang (int 1) is received. Default 0. | ||
| int | StepDirection: Changes direction of motor rotation using Boolean (0 or 1) values. | ||
| int | Enable: Starts or stops the motor using Boolean (0 or 1) values. Default 1. | ||
| int | StepRate: Sets the rate at which the stepper motor will transition from step to step. | ||
| int | Stepsize: Specifies number of fractional steps between each step. Accepts values of 1, 2, 4, and 8. Default 1, corresponding to 1 full step and no fractional steps. | ||
| int | PositionCurrentSet: Amount of current sent to the motor, in milliamps. Should not exceed 2500. Default 250. | ||
| int | MotorCurrentMax: Sets the maximum amount of current the motor can draw. Default 100. | ||
|
Arguments
|
|||
| int | Device: (optional) Specifies the Stepper Motor Controller device number. Default is 0 if omitted. | ||
| int | Address: (optional) Specifies the Module Address the Max object is to bind to. Format @address=x where 2 < X < 64. | ||
|
All of the inputs above may be passed to the object at create time by using the following format:
The attribute name is not case sensitive. There must be no spaces between the attribute and the equals sign (=) or between the equals sign and the value. |
|||
| int | LimitsOn: Specifies whether limit switch terminal is active. Default 0, off. | ||
| int | AnalogPositionResolution: Value resolution in bits. Minimum 1, Maximum 10. 1bit will result in only two levels between the specified minimum and maximum. 5 bits will yield 32 levels and 10 bits will yield 1024 different levels. | ||
| int | MotorCurrentSamplePeriod: Sample rate for update of motor current draw output, in milliseconds | ||
| int | AnalogPositionSamplePeriod: Sample rate for update of analog terminal position reading, in milliseconds. | ||
|
Output
|
|||
| float | CurrentStepPosition: current position of the motor. | ||
| int | CurrentAnalogPosition: Current ranged value of Analog In terminal. | ||
| int | Current: Amount of current the motor is pulling | ||
| int | LimitA: Returns 0 if limit has been reached, 1 if not. | ||
| int | LimitB: Returns 0 if limit has been reached, 1 if not. | ||
|
Examples
|
|||
|
A t.step.low object in Max. Its step rate has been set to 6, with a maximum current draw of 50 mA. LimitsOn has been activated, and the object has been set up such that when LimitA has been triggered, the motor will reverse direction. When LimitB has been triggered, the motor will shut off. |
|||
|
See Also
|
Stepper Motor Controller section of the Teleo Stepper Motor Controller User Guide | ||
![]() |
|||
|
copyright © 2002-2005 MakingThings LLC |