![]() |
|
|||||||||||||
|
|
|||||||||||||
| t.step.auto |
|
||
| Input | |||
| float | PositionTarget: Sets the motor's relative position. Default 0.0. | ||
| int | Enable: Starts or stops the motor using Boolean (0 or 1) values. Default 1. | ||
| int | MaximumStepRate: Sets the motor's maximum steps per second. Default 100. | ||
| int | Acceleration: Rate at which motor's speed will increase, in steps per second per second. Default 100.0. | ||
| int | Deceleration: Rate at which motor decelerates from MaxStepRate to stop. | ||
| 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, or no fractional step. | ||
| int | PositionCurrentSet: Sets the current position to the input value. Default 0. | ||
| int | MotorCurrentMax: Sets the maximum current the motor can draw, in milliamperes. Max 2500, will shut down if more is drawn. Default 250. | ||
|
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 | Busy: Outputs whether or not the motor is in the process of executing a command. Returns Boolean values (1 if busy, 0 if not). | ||
| 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.auto object is being used to run a stepper motor. Its desired position is at 60, which has been reached. The motor will move no faster than 250 steps per second, while its acceleration has been set at 300 steps per second per second. |
|||
|
See Also
|
Stepper Motor Controller section of the Teleo Stepper Motor Controller User Guide | ||
![]() |
|||
|
copyright © 2002-2005 MakingThings LLC |