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

From Flowcode Help
Jump to navigationJump to search
(XML import)
(XML import)
Line 1: Line 1:
 
 
 
{| width="50%"
 
{| width="50%"
 
|-
 
|-

Revision as of 15:58, 16 January 2014

Author Matrix Ltd.
Version 1.0
Category Mechatronics
This inherits from Motor Base


Image Motor (Half Bridge) component

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

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 Base

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 Base

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 Base

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


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.

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-clockwsie

Negative speed -> Clockwise

Show Actuator

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

No additional information


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.