Difference between revisions of "Component: Motor Template (Mechatronics)"
From Flowcode Help
Jump to navigationJump to search(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {| style="width:50%" | |
− | |||
− | {| | ||
|- | |- | ||
− | | width="20%" style="color: gray;" | Author | + | | width="20%" style="color:gray;" | Author |
| Matrix Ltd | | Matrix Ltd | ||
|- | |- | ||
− | | width="20%" style="color: gray;" | Version | + | | width="20%" style="color:gray;" | Version |
− | | 1.1 | + | | 1.1 |
|- | |- | ||
− | | width="20%" style="color: gray;" | Category | + | | width="20%" style="color:gray;" | Category |
| Mechatronics | | Mechatronics | ||
|} | |} | ||
+ | ==Motor Template component== | ||
+ | Base component for constructing continuous motion - e.g. motors. Automatically animates two objects - one within the same host components (e.g. moving parts of the motor itself), and one external (e.g. the mechanism to which the motor is connected). | ||
− | == | + | ==Component Pack== |
− | |||
− | |||
− | |||
− | + | MECHATRONICS | |
− | + | ==Detailed description== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ''No detailed description exists yet for this component'' | |
− | + | ==Examples== | |
− | |||
− | |||
− | + | Simple example showing how to drive the motor components and how to create sub assemblies attached to the motor output shafts in the simulation panels. | |
+ | {{Fcfile|Motors.fcfx|Motors}} | ||
− | === | + | ==Downloadable macro reference== |
− | |||
− | This allows the motor to link "mechanically" to other components and | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetTarget''' | ||
+ | |- | ||
+ | | colspan="2" | Set a target object external to the motor component. This allows the motor to link "mechanically" to other components and move them around. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE | ||
+ | | width="90%" | Target | ||
+ | |- | ||
+ | | colspan="2" | The object to set as a target | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
− | |||
− | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
− | + | |- | |
− | :[[ | + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] |
− | :: | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSpeed''' |
− | + | |- | |
− | + | | colspan="2" | Sets the speed for all attached objects. The speed will change at the rate set by the acceleration property. | |
− | ''' | + | |- |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | |
− | + | | width="90%" | Speed | |
− | + | |- | |
− | + | | colspan="2" | World units or degrees per second. | |
− | Sets the speed for all attached objects. The speed will change at the rate set by the acceleration property. | + | |- |
− | + | | 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'' | |
− | + | |} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 85: | Line 74: | ||
==Property reference== | ==Property reference== | ||
− | |||
− | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
− | + | |- | |
− | Time interval between animation frames. | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | |
− | Does not affect the speed of motion, only the rate of screen updates. | + | |- |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | |
− | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Animation | |
− | + | |- | |
− | + | |- | |
− | Decide what action to take when simulation stops. | + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] |
− | + | | width="90%" | Frame Interval | |
− | No Action - Animation is paused, continues from this position when simulation restarts | + | |- |
− | + | | colspan="2" | Time interval between animation frames. Does not affect the speed of motion, only the rate of screen updates. | |
− | Return to start - all object returned to their start positions, current speed resumes on simulation start. | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | Clear speeds - objects retain their position, but speed is set to zero. | + | | width="90%" | On Stop |
− | + | |- | |
− | Return and clear - objects return to start position and have theri speed set to zero. | + | | colspan="2" | Decide what action to take when simulation stops. No Action - Animation is paused, continues from this position when simulation restarts Return to start - all object returned to their start positions, current speed resumes on simulation start. Clear speeds - objects retain their position, but speed is set to zero. Return and clear - objects return to start position and have theri speed set to zero. |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | |
− | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Moving Part | |
− | + | |- | |
− | + | |- | |
− | An object within the same host component which the motor will animate. | + | | width="10%" align="center" | [[File:Fc9-type-17-icon.png]] |
− | + | | width="90%" | Target Object | |
− | + | |- | |
− | + | | colspan="2" | An object within the same host component which the motor will animate. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-17-icon.png]] | |
− | If the motion property is set to 'Rotary', this sets an object around which the rotation will happen. | + | | width="90%" | Axis Object |
− | + | |- | |
− | If not set, the 'Target' object will rotate around its own centre. | + | | colspan="2" | If the motion property is set to 'Rotary', this sets an object around which the rotation will happen. If not set, the 'Target' object will rotate around its own centre. |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | + | | width="90%" | Axis | |
− | + | |- | |
− | + | | colspan="2" | Which axis to move along or around. | |
− | Which axis to move along or around. | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | + | | width="90%" | Motion | |
− | + | |- | |
− | + | | colspan="2" | The kind of motion to animate. Rotary - animated targets will rotate around the given axis. Linear - animated object will move in a straight line. Note that there is nothing to prevent the object from moving off screen - stopping or reversing the motion is controlled only by the macro calls. | |
− | + | |- | |
− | The kind of motion to animate. | + | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] |
− | + | | width="90%" | Acceleration | |
− | Rotary - animated targets will rotate around the given axis. | + | |- |
− | + | | colspan="2" | Amount of speed change allowed per second when the motor is powered. Set to zero for instantaneous speed changes. | |
− | Linear - animated object will move in a straight line. Note that there is nothing to prevent the object from | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | |
− | moving off screen - stopping or reversing the motion is controlled only by the macro calls. | + | | width="90%" | Deceleration |
− | + | |- | |
− | + | | colspan="2" | Amount of speed change allowed per second when power is removed and the motor is coasting. Set to zero for instantaneous speed changes. | |
− | + | |} | |
− | |||
− | |||
− | Amount of speed change allowed per second when the motor is powered. | ||
− | |||
− | Set to zero for instantaneous speed changes. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Amount of speed change allowed per second when power is removed and the motor is coasting. | ||
− | |||
− | Set to zero for instantaneous speed changes. |
Latest revision as of 17:27, 9 November 2022
Author | Matrix Ltd |
Version | 1.1 |
Category | Mechatronics |
Contents
Motor Template component
Base component for constructing continuous motion - e.g. motors. Automatically animates two objects - one within the same host components (e.g. moving parts of the motor itself), and one external (e.g. the mechanism to which the motor is connected).
Component Pack
MECHATRONICS
Detailed description
No detailed description exists yet for this component
Examples
Simple example showing how to drive the motor components and how to create sub assemblies attached to the motor output shafts in the simulation panels.
Motors
Downloadable macro reference
![]() |
SetSpeed |
Sets the speed for all attached objects. The speed will change at the rate set by the acceleration property. | |
![]() |
Speed |
World units or degrees per second. | |
![]() |
Return |