Difference between revisions of "Component: Motor Template (Mechatronics)"
From Flowcode Help
Jump to navigationJump to search (XML import BR) |
|||
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== | ==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. | 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}} | {{Fcfile|Motors.fcfx|Motors}} | ||
Line 43: | Line 31: | ||
==Downloadable macro reference== | ==Downloadable macro reference== | ||
− | ''This | + | {| 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. | |
− | + | |- | |
− | ''' | + | | 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'' | |
− | + | |} | |
− | |||
− | |||
− | |||
− | Sets the speed for all attached objects. The speed will change at the rate set by the acceleration property. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 82: | Line 70: | ||
==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" | [[File:Fc9-type-21-icon.png]] | |
− | + | | width="90%" | Frame Interval | |
− | + | |- | |
− | + | | colspan="2" | Time interval between animation frames. Does not affect the speed of motion, only the rate of screen updates. | |
− | Decide what action to take when simulation stops. | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | No Action - Animation is paused, continues from this position when simulation restarts | + | | width="90%" | On Stop |
− | + | |- | |
− | Return to start - all object returned to their start positions, current speed resumes on simulation start. | + | | 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. |
− | + | |- | |
− | Clear speeds - objects retain their position, but speed is set to zero. | + | | width="10%" align="center" | [[File:Fc9-type-17-icon.png]] |
− | + | | width="90%" | Target Object | |
− | Return and clear - objects return to start position and have theri speed set to zero. | + | |- |
− | + | | colspan="2" | An object within the same host component which the motor will animate. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-17-icon.png]] | |
− | + | | width="90%" | Axis Object | |
− | + | |- | |
− | An object within the same host component which the motor will animate. | + | | 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. | |
− | If the motion property is set to 'Rotary', this sets an object around which the rotation will happen. | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | If not set, the 'Target' object will rotate around its own centre. | + | | 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. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | |
− | + | | width="90%" | Acceleration | |
− | Which axis to move along or around. | + | |- |
− | + | | colspan="2" | Amount of speed change allowed per second when the motor is powered. Set to zero for instantaneous speed changes. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | |
− | + | | width="90%" | Deceleration | |
− | + | |- | |
− | The kind of motion to animate. | + | | 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. |
− | + | |- | |
− | Rotary - animated targets will rotate around the given axis. | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections''' | |
− | 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. | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations''' | |
− | + | |- | |
− | + | |} | |
− | |||
− | |||
− | 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. |
Revision as of 16:29, 7 January 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 |