Author
|
Matrix Ltd
|
Version
|
1.1
|
Category
|
|
Servo Motor (Standard) component
Standard size servo motor suitable for control by the 'Servo Controller' component. Use the 'Link to...' property to attach other objects to the rotor for emulating mechanical systems. Send a virtual PWM signal to the servo by selecting it as a target of the 'Servo Controller' component.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
|
SetTarget
|
Set a panel object to be 'connected' to the servo's. The connected object will then move as if connected mechanically to the servo's actuator.
|
[[File:]] -
|
Target
|
Object to be moved by the motor
|
- VOID
|
Return
|
|
MoveToPositionInt
|
Moves a single step towards the new position, the rate of movement is determined by how often the move to macro is called. Returns 1 if the position has been reached.
|
- BYTE
|
Channel
|
The channel to assign the new position. Range: 0-7
|
- UINT
|
Position
|
Target position to move towards. Range: 0-65535
|
- BYTE
|
Return
|
|
SetPositionInt
|
Moves directly to the specified position with no interpolation. Uses a 16-bit position parameter to add extra precision.
|
- BYTE
|
Channel
|
The channel to assign the new position. Range: 0-7
|
- UINT
|
Position
|
Position to jump to. Range: 0-65535
|
- VOID
|
Return
|
|
MoveToPosition
|
Moves a single step towards the new position, the rate of movement is determined by how often the move to macro is called. Returns 1 if the position has been reached.
|
- BYTE
|
Channel
|
The channel to assign the new position. Range: 0-7
|
- BYTE
|
Position
|
Target position to move towards. Range: 0-255
|
- BYTE
|
Return
|
|
SetTrim
|
Allows the level of trim for each servo channel to be adjusted progmatically.
|
- BYTE
|
Channel
|
The channel to set the position for. First channel is zero.
|
- BYTE
|
Trim
|
Legacy: 0=0us, 1=+25us, 2=+50us, 3=+75us, 4=+100us, 5=-25us, 6=-50us, 7=-75us, 8=-100us or Smooth: 0-200
|
- VOID
|
Return
|
|
IsAutoMoving
|
Is the AutoMoveToPosition movement complete. Returns 1 if the servos are still moving. Returns 0 if all servo movement is complete.
|
- BYTE
|
Return
|
|
SetAutoMoveSpeedInt
|
Sets the speed of the auto move to position macro. Default speed is shown in the Servo_Period_Multiplier property.
|
- UINT
|
Speed
|
1=Slowest (Default), 2= Double, 3=Triple, 4=Quadruple
|
- VOID
|
Return
|
|
IsServoAutoMoving
|
Is the AutoMoveToPosition movement complete for a specific servo output. Returns 1 if the servo is still moving. Returns 0 if the servo movement is complete.
|
- BYTE
|
Channel
|
Servo Motor Output Range: 0-7
|
- BYTE
|
Return
|
|
AutoMoveToPosition
|
Automatically moves towards the new position at a fixed rate determined by the AutoMoveSpeed.
|
- BYTE
|
Channel
|
The channel to assign the new position. Range: 0-7
|
- BYTE
|
Position
|
Position to automatically move to. Range: 0-255
|
- VOID
|
Return
|
|
EnableServo
|
Enables a servo channel effectivly setting the position of the motor to the value in the local position variable.
|
- BYTE
|
Channel
|
The channel to set the position for. First channel is zero.
|
- VOID
|
Return
|
|
SetAutoMoveSpeed
|
Sets the speed of the auto move to position macro. Default speed is shown in the Servo_Period_Multiplier property.
|
- BYTE
|
Speed
|
1=Slowest (Default), 2= Double, 3=Triple, 4=Quadruple
|
- VOID
|
Return
|
|
AutoMoveToPositionInt
|
Automatically moves towards the new 16-bit position at a fixed rate determined by the AutoMoveSpeed.
|
- BYTE
|
Channel
|
The channel to assign the new position. Range: 0-7
|
- UINT
|
Position
|
Position to automatically move to. Range: 0-65535
|
- VOID
|
Return
|
|
Initialise
|
Sets up the servo motor interrupts
|
- VOID
|
Return
|
|
WriteLEDs
|
Allows control of all 8-LEDs on the front of the Formula Flowcode.
|
- BYTE
|
LED_Byte
|
|
- VOID
|
Return
|
|
Initialise
|
Starts up the formula flowcode PWM for motor control and performs the wait for button press
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
Link To...
|
Select a panel object here to connect it 'mechanically' to the servo's actuator. The selected object will now be moved whenever the servo position changes. NB) To move multiple objects, first group the objects, and then select the group.
|
|
Reverse Output
|
Some manufacturers motors may rotate in different ways to others. Changing this property allows you to flip the direction of the simulated motor to better match with the real world hardware.
|
|
Movement Type
|
|
|
Connections
|
|
Simulations
|