Component: Stepper Motor (Mechatronics): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 90: | Line 90: | ||
===DecrementStep=== | ===DecrementStep=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DecrementStep''' | ||
|- | |- | ||
| colspan="2" | Move the motor backwards by one step. | | colspan="2" | Move the motor backwards by one step. | ||
| Line 104: | Line 104: | ||
===DisableMotor=== | ===DisableMotor=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DisableMotor''' | ||
|- | |- | ||
| colspan="2" | Turn off the motor. It will no longer respond to any other macros. | | colspan="2" | Turn off the motor. It will no longer respond to any other macros. | ||
| Line 118: | Line 118: | ||
===EnableMotor=== | ===EnableMotor=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''EnableMotor''' | ||
|- | |- | ||
| colspan="2" | Turn on the motor. This must be done before it will respond to any other macros. | | colspan="2" | Turn on the motor. This must be done before it will respond to any other macros. | ||
| Line 132: | Line 132: | ||
===GetSimAngle=== | ===GetSimAngle=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetSimAngle''' | ||
|- | |- | ||
| colspan="2" | Gets the angle of the simulated motor shaft in degrees. | | colspan="2" | Gets the angle of the simulated motor shaft in degrees. | ||
| Line 146: | Line 146: | ||
===IncrementStep=== | ===IncrementStep=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''IncrementStep''' | ||
|- | |- | ||
| colspan="2" | Move the motor forward by one step. | | colspan="2" | Move the motor forward by one step. | ||
| Line 161: | Line 161: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Connections | ||
|- | |- | ||
|- | |- | ||
| Line 196: | Line 196: | ||
| colspan="2" | Chip pin to which the fourth motor coil is connected. | | colspan="2" | Chip pin to which the fourth motor coil is connected. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Motor Setup | ||
|- | |- | ||
|- | |- | ||
| Line 205: | Line 205: | ||
| colspan="2" | Trade accuracy against torque by changing the type of stepping. Refer to the data-sheet for your chosen hardware to determine which modes your device supports. | | colspan="2" | Trade accuracy against torque by changing the type of stepping. Refer to the data-sheet for your chosen hardware to determine which modes your device supports. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Simulation | ||
|- | |- | ||
|- | |- | ||
| Line 224: | Line 224: | ||
| colspan="2" | Allows waveforms to be auto generated on the data recorder window. | | colspan="2" | Allows waveforms to be auto generated on the data recorder window. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Motor Simulation | ||
|- | |- | ||
|- | |- | ||
| Line 238: | Line 238: | ||
| colspan="2" | Amount of change in the shaft angle when the IncrementStep / DecrementStep functions are called. | | colspan="2" | Amount of change in the shaft angle when the IncrementStep / DecrementStep functions are called. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Coil Simulation | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.2 |
| Category | Mechatronics |
Stepper Motor component
A component to drive stepper motor either using direct transistors or using an external stepper driver IC. Complete with 2D based panel simulation of the motor including coils and waveforms.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_StepperMotor_2d.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_StepperMotor_2d.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
DecrementStep
| DecrementStep | |
| Move the motor backwards by one step. | |
| Return | |
DisableMotor
| DisableMotor | |
| Turn off the motor. It will no longer respond to any other macros. | |
| Return | |
EnableMotor
| EnableMotor | |
| Turn on the motor. This must be done before it will respond to any other macros. | |
| Return | |
GetSimAngle
| GetSimAngle | |
| Gets the angle of the simulated motor shaft in degrees. | |
| Return | |
IncrementStep
| IncrementStep | |
| Move the motor forward by one step. | |
| Return | |