Difference between revisions of "Component: DC Motor (Mechatronics)"
From Flowcode Help
Jump to navigationJump to searchLine 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_DCMotor_2d.fcfx FC_Comp_Source_DCMotor_2d.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DCMotor_2d.fcfx FC_Comp_Source_DCMotor_2d.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 68: | Line 68: | ||
For a DALI Master example see: [[Component: DALI Master (Comms: System)]] | For a DALI Master example see: [[Component: DALI Master (Comms: System)]] | ||
+ | |||
+ | |||
Revision as of 13:09, 7 February 2023
Author | Matrix TSL |
Version | 1.2 |
Category | Mechatronics |
Contents
DC Motor component
DC Motor that can be driven in one or both directions using digital output pins, PWM or HBRIDGE peripherals.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DCMotor_2d.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DCMotor_2d.fcfx
Detailed description
No detailed description exists yet for this component
Examples
DALI Slave Example, listens for DALI messages and checks that the group is correct before attempting to process the request and if required reply to the master.
DALI Slave Example1
For a DALI Master example see: Component: DALI Master (Comms: System)
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 'Forwards Pattern' property. | |
![]() |
Duty |
Sets the motor power for PWM or H-Bridge outputs | |
![]() |
Return |
GetSimAngle
![]() |
GetSimAngle |
Gets the angle of the simulated motor shaft in degrees. | |
![]() |
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 |