Difference between revisions of "Component: Servo Motor (BL0162) (E-blocks 2)"
From Flowcode Help
Jump to navigationJump to search| Line 17: | Line 17: | ||
| ==Component Source Code== | ==Component Source Code== | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_EBlocks2_Servo_BL0162.fcfx FC_Comp_Source_EBlocks2_Servo_BL0162.fcfx] | 
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_EBlocks2_Servo_BL0162.fcfx FC_Comp_Source_EBlocks2_Servo_BL0162.fcfx] | 
| ==Detailed description== | ==Detailed description== | ||
| Line 49: | Line 49: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
Revision as of 13:10, 7 February 2023
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | E-blocks 2 | 
Contents
Servo Motor component
Servo motor component to drive the E-blocks 2 BL0162 Servo Motors board. Provides up to eight individually addressable connections for standard DC servo motors to be connected.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBlocks2_Servo_BL0162.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBlocks2_Servo_BL0162.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
AutoMoveToPosition
DisableServo
|   | DisableServo | 
| Disables a servo channel effectivly disabling the motor. | |
|  - BYTE | Channel | 
| The channel to set the position for. First channel is zero. | |
|  - VOID | Return | 
EnableServo
Initialise
|   | Initialise | 
| Sets up the servo motor interrupts | |
|  - VOID | Return | 
IsAutoMoving
|   | IsAutoMoving | 
| Is the AutoMoveToPosition movement complete. Returns 1 if the servo is still moving. Returns 0 if the servo movement is complete. | |
|  - BYTE | Return | 
MoveToPosition
SetAutoMoveSpeed
|   | SetAutoMoveSpeed | 
| Sets the speed of the auto move to position macro. Default speed is 1. | |
|  - BYTE | Speed | 
| 1=Slowest (Default), 2= Double, 3=Triple, 4=Quadruple | |
|  - VOID | Return | 
SetPosition
SetTrim







