Difference between revisions of "Component: Stepper Motor (Mechatronics)"
From Flowcode Help
Jump to navigationJump to search(2 intermediate revisions by the same user not shown) | |||
Line 76: | Line 76: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 83: | Line 89: | ||
==Macro reference== | ==Macro reference== | ||
− | === | + | ===DecrementStep=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DecrementStep''' |
|- | |- | ||
− | | colspan="2" | Move the motor | + | | colspan="2" | Move the motor backwards by one step. |
|- | |- | ||
|- | |- | ||
Line 97: | Line 103: | ||
− | === | + | ===DisableMotor=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisableMotor''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Turn off the motor. It will no longer respond to any other macros. |
|- | |- | ||
|- | |- | ||
Line 125: | Line 131: | ||
− | === | + | ===GetSimAngle=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetSimAngle''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Gets the angle of the simulated motor shaft in degrees. |
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | === | + | ===IncrementStep=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IncrementStep''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Move the motor forward by one step. |
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Latest revision as of 13:12, 7 February 2023
Author | Matrix Ltd |
Version | 1.2 |
Category | Mechatronics |
Contents
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 |