Component: DC Motor (): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 74: | Line 74: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Break''' | ||
|- | |- | ||
| colspan="2" | Actively drives both ends of the motor by setting the pins according to the 'Brake Pattern' property. | | colspan="2" | Actively drives both ends of the motor by setting the pins according to the 'Brake Pattern' property. | ||
| Line 88: | Line 88: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Coast''' | ||
|- | |- | ||
| colspan="2" | Turn off power to the motor by setting the pins according to the 'Coast Pattern' property. | | colspan="2" | Turn off power to the motor by setting the pins according to the 'Coast Pattern' property. | ||
| Line 102: | Line 102: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Disable''' | ||
|- | |- | ||
| colspan="2" | Disable the motor output | | colspan="2" | Disable the motor output | ||
| Line 116: | Line 116: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Enable''' | ||
|- | |- | ||
| colspan="2" | Enables the motor output | | colspan="2" | Enables the motor output | ||
| Line 130: | Line 130: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Forwards''' | ||
|- | |- | ||
| colspan="2" | Set the motor turning in the forwards direction by setting the pins according to the 'Reverse Pattern' property. | | colspan="2" | Set the motor turning in the forwards direction by setting the pins according to the 'Reverse Pattern' property. | ||
| Line 149: | Line 149: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Reverse''' | ||
|- | |- | ||
| colspan="2" | Set the motor turning in the reverse direction by setting the pins according to the 'Reverse Pattern' property. | | colspan="2" | Set the motor turning in the reverse direction by setting the pins according to the 'Reverse Pattern' property. | ||
| Line 169: | Line 169: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:23, 13 July 2026
| Author | Matrix Ltd. |
| Version | 1.2 |
| Category |
DC Motor component
DC Motor that can be driven in one or both directions using digital output pins, PWM or HBRIDGE peripherals.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Break
| Break | |
| Actively drives both ends of the motor by setting the pins according to the 'Brake Pattern' property. | |
| Return | |
Coast
| Coast | |
| Turn off power to the motor by setting the pins according to the 'Coast Pattern' property. | |
| Return | |
Disable
| Disable | |
| Disable the motor output | |
| Return | |
Enable
| Enable | |
| Enables the motor output | |
| Return | |
Forwards
| Forwards | |
| Set the motor turning in the forwards direction by setting the pins according to the 'Reverse Pattern' property. | |
| Duty | |
| Sets the motor power for PWM or H-Bridge outputs | |
| Return | |
Reverse
| Reverse | |
| Set the motor turning in the reverse direction by setting the pins according to the 'Reverse Pattern' property. | |
| Duty | |
| Sets the motor power for PWM or H-Bridge outputs | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Motor_with_reverse.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Motor_with_reverse.fcfx