Difference between revisions of "Component: Motor Base (Mechatronics)"

From Flowcode Help
Jump to navigationJump to search
(XML import)
(XML import)
 
(2 intermediate revisions by one other user not shown)
Line 7: Line 7:
 
|-
 
|-
 
| width="20%" style="color: gray;" | Version
 
| width="20%" style="color: gray;" | Version
| 1.0
+
| 1.1 (Release)
 
|-
 
|-
 
| width="20%" style="color: gray;" | Category
 
| width="20%" style="color: gray;" | Category
Line 15: Line 15:
  
  
==[[Media:Component Icon 952471c7_11ca_430b_ab72_4fda8b195f83.png|Image]] Motor Base component==
+
==[[File: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.
 +
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).
  
 
This component can be used as a base to create ''child'' components
 
This component can be used as a base to create ''child'' components
Line 24: Line 26:
 
{| 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)]]
+
|[[File: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 with inertia.
Properties support several pin options to allow matching with various hardware driving
+
Properties support several pin options to allow matching with differents hardware driving
 
circuits.
 
circuits.
 
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)]]
+
|[[File: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 animated motor turned on and off with a single pin connection.
Can be connected to other objects to make them move.
+
Can be linked to other objects to make them move.
 
|}
 
|}
  
Line 106: Line 108:
 
This property is of type ''Panel object'' and can be referenced with the variable name ''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
+
An object within the same host component which the motor will animate.
  
 
<span style="font-weight: normal;"><u>Axis Object</u></span>
 
<span style="font-weight: normal;"><u>Axis Object</u></span>
Line 112: Line 114:
 
This property is of type ''Panel object'' and can be referenced with the variable name ''axis_object''.
 
This property is of type ''Panel object'' and can be referenced with the variable name ''axis_object''.
  
''<span style="color:red;">No additional information</span>''
+
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.
  
 
<span style="font-weight: normal;"><u>Axis</u></span>
 
<span style="font-weight: normal;"><u>Axis</u></span>
Line 120: Line 122:
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''axis''.
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''axis''.
  
''<span style="color:red;">No additional information</span>''
+
Which axis to move along or around.
 
 
 
 
  
 
<span style="font-weight: normal;"><u>Motion</u></span>
 
<span style="font-weight: normal;"><u>Motion</u></span>
Line 128: Line 128:
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''motion_type''.
 
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''motion_type''.
  
''<span style="color:red;">No additional information</span>''
+
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.
  
 
<span style="font-weight: normal;"><u>Acceleration</u></span>
 
<span style="font-weight: normal;"><u>Acceleration</u></span>

Latest revision as of 11:25, 13 February 2015


Author Matrix Ltd
Version 1.1 (Release)
Category Mechatronics


Image Motor Base 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).

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 with inertia.

Properties support several pin options to allow matching with differents hardware driving circuits. Can be connected to other objects to make them move.

Image Motor (Half Bridge) Simple animated motor turned on and off with a single pin connection.

Can be linked 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.

An object within the same host component which the motor will animate.

Axis Object

This property is of type Panel object and can be referenced with the variable name axis_object.

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.

Axis

This property is of type Fixed list of ints and can be referenced with the variable name axis.

Which axis to move along or around.

Motion

This property is of type Fixed list of ints and can be referenced with the variable name motion_type.

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.

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.