Difference between revisions of "Component: Motor (Half Bridge) (Mechatronics)"

From Flowcode Help
Jump to navigationJump to search
(XML import)
(XML import BR)
 
(4 intermediate revisions by 3 users 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
 
| Mechatronics
 
| Mechatronics
 
|-
 
|-
| colspan="2" | This inherits from [[Component: ID 952471c7_11ca_430b_ab72_4fda8b195f83|Motor Base]]
+
| colspan="2" | This inherits from [[Component: ID 952471c7_11ca_430b_ab72_4fda8b195f83|Motor Template]]
 
|}
 
|}
  
Line 18: Line 18:
  
 
==[[File:Component Icon 4edcb163_5216_44c4_99d9_d6b24869f341.png|Image]] Motor (Half Bridge) component==
 
==[[File:Component Icon 4edcb163_5216_44c4_99d9_d6b24869f341.png|Image]] Motor (Half Bridge) component==
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.
  
 
==Examples==
 
==Examples==
''<span style="color:red;">No additional examples</span>''
+
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==
 
==Downloadable macro reference==
Line 56: Line 56:
 
==Simulation macro reference==
 
==Simulation macro reference==
  
''This component inherits simulation macros from ''[[Component: ID 952471c7_11ca_430b_ab72_4fda8b195f83|Motor Base]]
+
''This component inherits simulation macros from ''[[Component: ID 952471c7_11ca_430b_ab72_4fda8b195f83|Motor Template]]
  
 
===<span style="font-weight: normal;"><u><tt>SetTarget</tt></u></span>===
 
===<span style="font-weight: normal;"><u><tt>SetTarget</tt></u></span>===
Line 65: Line 65:
 
move them around.
 
move them around.
  
''This call is provided by [[Component: ID 952471c7_11ca_430b_ab72_4fda8b195f83|Motor Base]]''
+
''This call is provided by [[Component: ID 952471c7_11ca_430b_ab72_4fda8b195f83|Motor Template]]''
  
 
'''Parameters'''
 
'''Parameters'''
Line 81: Line 81:
 
Sets the speed for all attached objects.  The speed will change at the rate set by the acceleration property.
 
Sets the speed for all attached objects.  The speed will change at the rate set by the acceleration property.
  
''This call is provided by [[Component: ID 952471c7_11ca_430b_ab72_4fda8b195f83|Motor Base]]''
+
''This call is provided by [[Component: ID 952471c7_11ca_430b_ab72_4fda8b195f83|Motor Template]]''
  
 
'''Parameters'''
 
'''Parameters'''
Line 104: Line 104:
  
  
 +
 +
<span style="font-weight: normal;"><u>Speed</u></span>
 +
 +
This property is of type ''Floating point'' and can be referenced with the variable name ''speed''.
 +
 +
Speed of the motor when turned on.
 +
 +
Positive speed -> Counter-clockwise
 +
 +
Negative speed -> Clockwise
  
 
<span style="font-weight: normal;"><u>Acceleration</u></span>
 
<span style="font-weight: normal;"><u>Acceleration</u></span>
Line 120: Line 130:
  
 
Set to zero for instantaneous speed changes.
 
Set to zero for instantaneous speed changes.
 
<span style="font-weight: normal;"><u>Speed</u></span>
 
 
This property is of type ''Floating point'' and can be referenced with the variable name ''speed''.
 
 
Speed of the motor when turned on.
 
 
Positive speed -> Counter-clockwsie
 
 
Negative speed -> Clockwise
 
  
 
<span style="font-weight: normal;"><u>Show Actuator</u></span>
 
<span style="font-weight: normal;"><u>Show Actuator</u></span>
Line 135: Line 135:
 
This property is of type ''True or false'' and can be referenced with the variable name ''show_actuator''.
 
This property is of type ''True or false'' and can be referenced with the variable name ''show_actuator''.
  
''<span style="color:red;">No additional information</span>''
+
When activated, an actuator will appear so that the animation can be seen more easily.
 
 
 
 
  
 
<span style="font-weight: normal;"><u>Target Object</u></span>
 
<span style="font-weight: normal;"><u>Target Object</u></span>

Latest revision as of 15:46, 16 February 2017


Author Matrix Ltd.
Version 1.1 (Release)
Category Mechatronics
This inherits from Motor Template


Image Motor (Half Bridge) component

Simple animated motor turned on and off with a single pin connection. Can be linked to other objects to make them move.

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. FC6 Icon.png Motors

Downloadable macro reference

Stop

Turn off power to the motor by turning off its pin.

Parameters

This macro has no parameters


Return value

This call does not return a value


Start

Set the motor running by turning on its pin.

Parameters

This macro has no parameters


Return value

This call does not return a value


Simulation macro reference

This component inherits simulation macros from Motor Template

SetTarget

Set a target object external to the motor component.

This allows the motor to link "mechanically" to other components and

move them around.

This call is provided by Motor Template

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.

This call is provided by Motor Template

Parameters

FLOAT Speed
World units or degrees per second.


Return value

This call does not return a value



Property reference

Pin

This property is of type Single digital pin and can be referenced with the variable name pin.

No additional information


Speed

This property is of type Floating point and can be referenced with the variable name speed.

Speed of the motor when turned on.

Positive speed -> Counter-clockwise

Negative speed -> Clockwise

Acceleration

This property is of type Floating point and can be referenced with the variable name acceleration.

Speed change per second when the motor us 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.

Speed change per second when the motor is coasting with no power.

Set to zero for instantaneous speed changes.

Show Actuator

This property is of type True or false and can be referenced with the variable name show_actuator.

When activated, an actuator will appear so that the animation can be seen more easily.

Target Object

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

An object or group to link the motor to - the object will move along with the motor.