Difference between revisions of "Component: Motor Base (Mechatronics)"
(XML import of only descriptive example files) |
(XML import) |
||
Line 4: | Line 4: | ||
|- | |- | ||
| width="20%" style="color: gray;" | Author | | width="20%" style="color: gray;" | Author | ||
− | | | + | | Matrix Ltd |
|- | |- | ||
| width="20%" style="color: gray;" | Version | | width="20%" style="color: gray;" | Version | ||
Line 15: | Line 15: | ||
− | ==[[ | + | ==[[Media:Component Icon 952471c7_11ca_430b_ab72_4fda8b195f83.png|Image]] Motor Base component== |
Base component for constructing continuous motion - e.g. motors etc. | Base component for constructing continuous motion - e.g. motors etc. | ||
Line 24: | Line 24: | ||
{| class="wikitable" width="50%" | {| class="wikitable" width="50%" | ||
|+|- | |+|- | ||
− | |[[ | + | |[[Media:Component Icon 3becc5a1_4034_45ca_b84f_d995c6cacdb2.png|Image]] [[Component: ID 3becc5a1_4034_45ca_b84f_d995c6cacdb2|Motor (Full Bridge)]] |
|Motor that can be driven at a prest speed in either forwards or reverse direction. | |Motor that can be driven at a prest speed in either forwards or reverse direction. | ||
Properties support several pin options to allow matching with various hardware driving | Properties support several pin options to allow matching with various hardware driving | ||
Line 30: | Line 30: | ||
Can be connected to other objects to make them move. | Can be connected to other objects to make them move. | ||
|- | |- | ||
− | |[[ | + | |[[Media:Component Icon 4edcb163_5216_44c4_99d9_d6b24869f341.png|Image]] [[Component: ID 4edcb163_5216_44c4_99d9_d6b24869f341|Motor (Half Bridge)]] |
|Simple motor turned on and off with a single pin connection. | |Simple motor turned on and off with a single pin connection. | ||
Can be connected to other objects to make them move. | Can be connected to other objects to make them move. |
Revision as of 11:12, 16 January 2014
Author | Matrix Ltd |
Version | 1.0 |
Category | Mechatronics |
Contents
Image Motor Base component
Base component for constructing continuous motion - e.g. motors etc.
This component can be used as a base to create child components
The following components all inherit the traits of Motor Base:
Image Motor (Full Bridge) | Motor that can be driven at a prest speed in either forwards or reverse direction.
Properties support several pin options to allow matching with various hardware driving circuits. Can be connected to other objects to make them move. |
Image Motor (Half Bridge) | Simple motor turned on and off with a single pin connection.
Can be connected to other objects to make them move. |
Examples
No additional examples
Downloadable macro reference
This component does not contain any downloadable macros
Simulation macro reference
SetTarget
Set a target object external to the motor component.
This allows the motor to link "mechanically" to other components and
move them around.
Parameters
- HANDLE Target
- The object to set as a target
Return value
- This call does not return a value
SetSpeed
Sets the speed for all attached objects. The speed will change at the rate set by the acceleration property.
Parameters
- FLOAT Speed
- World units or degrees per second.
Return value
- This call does not return a value
Property reference
Frame Interval
This property is of type Unsigned integer and can be referenced with the variable name interval.
Time interval between animation frames.
Does not affect the speed of motion, only the rate of screen updates.
On Stop
This property is of type Fixed list of ints and can be referenced with the variable name on_stop.
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.
Target Object
This property is of type Panel object and can be referenced with the variable name target_object.
The object to be moved by the motor
Axis Object
This property is of type Panel object and can be referenced with the variable name axis_object.
No additional information
Axis
This property is of type Fixed list of ints and can be referenced with the variable name axis.
No additional information
Motion
This property is of type Fixed list of ints and can be referenced with the variable name motion_type.
No additional information
Acceleration
This property is of type Floating point and can be referenced with the variable name acceleration.
Amount of speed change allowed per second when the motor is powered.
Set to zero for instantaneous speed changes.
Deceleration
This property is of type Floating point and can be referenced with the variable name deceleration.
Amount of speed change allowed per second when power is removed and the motor is coasting.
Set to zero for instantaneous speed changes.