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

From Flowcode Help
Jump to navigationJump to search
(XML import)
(XML import)
Line 12: Line 12:
 
| 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 71: Line 71:
 
==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 80: Line 80:
 
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 96: Line 96:
 
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'''

Revision as of 15:47, 20 July 2016


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


Image Motor (Full Bridge) component

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.

Examples

No additional examples


Downloadable macro reference

StartReverse

Set the motor turning in the reverse direction by setting the pins according to the 'Reverse Pattern' property.

Parameters

This macro has no parameters


Return value

This call does not return a value


Stop

Turn off power to the motor by setting the pins according to the 'Stop Pattern' property.

Parameters

This macro has no parameters


Return value

This call does not return a value


StartForwards

Set the motor turning in the forwards direction by setting the pins according to the 'Reverse Pattern' property.

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

PinA

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

First control pin - set 'pattern' properties below to set the pin's function.

PinB

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

Second control pin - set 'pattern' properties below to set the pin's function.

Forwards Pattern

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

The state of pins A and B required to drive the motor in a forwards direction.

Reverse Pattern

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

States of pins A and B required to drive the motor in a reverse direction.

Stop Pattern

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

States of pins A and B required to stop the motor.

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

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 active, an actuator is shown on the motor spindle to make the animation easier to observe.

Forwards Direction

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

Which way the motor will rotate when the 'forwards' command is sent.

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.