Component: Actuators (BL0127) (E-blocks 2): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 72: | Line 72: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DCMotor_Break''' | ||
|- | |- | ||
| colspan="2" | Actively drives both ends of the motor by setting the pins according to the 'Brake Pattern' property. | | colspan="2" | Actively drives both ends of the motor by setting the pins according to the 'Brake Pattern' property. | ||
| Line 86: | Line 86: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DCMotor_Coast''' | ||
|- | |- | ||
| colspan="2" | Turn off power to the motor by setting the pins according to the 'Coast Pattern' property. | | colspan="2" | Turn off power to the motor by setting the pins according to the 'Coast Pattern' property. | ||
| Line 100: | Line 100: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DCMotor_DC_Feedback''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 114: | Line 114: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DCMotor_DC_FeedbackSim''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 128: | Line 128: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DCMotor_Disable''' | ||
|- | |- | ||
| colspan="2" | Disable the motor output | | colspan="2" | Disable the motor output | ||
| Line 142: | Line 142: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DCMotor_Enable''' | ||
|- | |- | ||
| colspan="2" | Enables the motor output | | colspan="2" | Enables the motor output | ||
| Line 156: | Line 156: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DCMotor_Forwards''' | ||
|- | |- | ||
| colspan="2" | Set the motor turning in the forwards direction by setting the pins according to the 'Forwards Pattern' property. | | colspan="2" | Set the motor turning in the forwards direction by setting the pins according to the 'Forwards Pattern' property. | ||
| Line 175: | Line 175: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DCMotor_Reverse''' | ||
|- | |- | ||
| colspan="2" | Set the motor turning in the reverse direction by setting the pins according to the 'Reverse Pattern' property. | | colspan="2" | Set the motor turning in the reverse direction by setting the pins according to the 'Reverse Pattern' property. | ||
| Line 194: | Line 194: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_AutoMoveToPosition''' | ||
|- | |- | ||
| colspan="2" | Automatically moves towards the new position at a fixed rate determined by the AutoMoveSpeed. | | colspan="2" | Automatically moves towards the new position at a fixed rate determined by the AutoMoveSpeed. | ||
| Line 218: | Line 218: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_AutoMoveToPositionInt''' | ||
|- | |- | ||
| colspan="2" | Automatically moves towards the new 16-bit position at a fixed rate determined by the AutoMoveSpeed. | | colspan="2" | Automatically moves towards the new 16-bit position at a fixed rate determined by the AutoMoveSpeed. | ||
| Line 242: | Line 242: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_DisableServo''' | ||
|- | |- | ||
| colspan="2" | Disables a servo channel effectivly disabling the motor. | | colspan="2" | Disables a servo channel effectivly disabling the motor. | ||
| Line 261: | Line 261: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_EnableServo''' | ||
|- | |- | ||
| colspan="2" | Enables a servo channel effectivly setting the position of the motor to the value in the local position variable. | | colspan="2" | Enables a servo channel effectivly setting the position of the motor to the value in the local position variable. | ||
| Line 280: | Line 280: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_Initialise''' | ||
|- | |- | ||
| colspan="2" | Sets up the servo motor interrupts | | colspan="2" | Sets up the servo motor interrupts | ||
| Line 294: | Line 294: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_IsAutoMoving''' | ||
|- | |- | ||
| colspan="2" | Is the AutoMoveToPosition movement complete. Returns 1 if the servos are still moving. Returns 0 if all servo movement is complete. | | colspan="2" | Is the AutoMoveToPosition movement complete. Returns 1 if the servos are still moving. Returns 0 if all servo movement is complete. | ||
| Line 308: | Line 308: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_IsServoAutoMoving''' | ||
|- | |- | ||
| colspan="2" | 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. | | colspan="2" | 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. | ||
| Line 327: | Line 327: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_MoveToPosition''' | ||
|- | |- | ||
| colspan="2" | 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. | | colspan="2" | 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. | ||
| Line 351: | Line 351: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_MoveToPositionInt''' | ||
|- | |- | ||
| colspan="2" | 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. | | colspan="2" | 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. | ||
| Line 375: | Line 375: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_SetAutoMoveSpeed''' | ||
|- | |- | ||
| colspan="2" | Sets the speed of the auto move to position macro. Default speed is shown in the Servo_Period_Multiplier property. | | colspan="2" | Sets the speed of the auto move to position macro. Default speed is shown in the Servo_Period_Multiplier property. | ||
| Line 394: | Line 394: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_SetAutoMoveSpeedInt''' | ||
|- | |- | ||
| colspan="2" | Sets the speed of the auto move to position macro. Default speed is shown in the Servo_Period_Multiplier property. | | colspan="2" | Sets the speed of the auto move to position macro. Default speed is shown in the Servo_Period_Multiplier property. | ||
| Line 413: | Line 413: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_SetPosition''' | ||
|- | |- | ||
| colspan="2" | Moves directly to the specified position with no interpolation. | | colspan="2" | Moves directly to the specified position with no interpolation. | ||
| Line 437: | Line 437: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_SetPositionInt''' | ||
|- | |- | ||
| colspan="2" | Moves directly to the specified position with no interpolation. Uses a 16-bit position parameter to add extra precision. | | colspan="2" | Moves directly to the specified position with no interpolation. Uses a 16-bit position parameter to add extra precision. | ||
| Line 461: | Line 461: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Servo_SetTrim''' | ||
|- | |- | ||
| colspan="2" | Allows the level of trim for each servo channel to be adjusted progmatically. | | colspan="2" | Allows the level of trim for each servo channel to be adjusted progmatically. | ||
| Line 485: | Line 485: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Stepper_DecrementStep''' | ||
|- | |- | ||
| colspan="2" | Move the motor backwards by one step. | | colspan="2" | Move the motor backwards by one step. | ||
| Line 499: | Line 499: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Stepper_DisableMotor''' | ||
|- | |- | ||
| colspan="2" | Turn off the motor. It will no longer respond to any other macros. | | colspan="2" | Turn off the motor. It will no longer respond to any other macros. | ||
| Line 513: | Line 513: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Stepper_EnableMotor''' | ||
|- | |- | ||
| colspan="2" | Turn on the motor. This must be done before it will respond to any other macros. | | colspan="2" | Turn on the motor. This must be done before it will respond to any other macros. | ||
| Line 527: | Line 527: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Stepper_IncrementStep''' | ||
|- | |- | ||
| colspan="2" | Move the motor forward by one step. | | colspan="2" | Move the motor forward by one step. | ||
| Line 542: | Line 542: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:22, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | E-blocks 2 |
Actuators component
The Actuators board allows for investigation into several different motor types. Included on the board is a DC motor with both analogue and digital feedback, a servo motor and a stepper motor plus the circuitry to drive the motors.
Version information
Library Version, Component Version, Date, Author, Info 4, 1.0, 08-05-25, BR, Added autodetect port on Ev_PostInitialise
Detailed description
No detailed description exists yet for this component
Examples
Demo program using the Eblocks 2 Actuators Board BL0127 connected to BL0011 PIC programmer
BL0127 Actuators Demo for PIC
Macro reference
DCMotor_Break
| DCMotor_Break | |
| Actively drives both ends of the motor by setting the pins according to the 'Brake Pattern' property. | |
| Return | |
DCMotor_Coast
| DCMotor_Coast | |
| Turn off power to the motor by setting the pins according to the 'Coast Pattern' property. | |
| Return | |
DCMotor_DC_Feedback
| DCMotor_DC_Feedback | |
| Return | |
DCMotor_DC_FeedbackSim
| DCMotor_DC_FeedbackSim | |
| Return | |
DCMotor_Disable
| DCMotor_Disable | |
| Disable the motor output | |
| Return | |
DCMotor_Enable
| DCMotor_Enable | |
| Enables the motor output | |
| Return | |
DCMotor_Forwards
DCMotor_Reverse
Servo_AutoMoveToPosition
Servo_AutoMoveToPositionInt
Servo_DisableServo
| Servo_DisableServo | |
| Disables a servo channel effectivly disabling the motor. | |
| Channel | |
| The channel to set the position for. First channel is zero. | |
| Return | |
Servo_EnableServo
Servo_Initialise
| Servo_Initialise | |
| Sets up the servo motor interrupts | |
| Return | |
Servo_IsAutoMoving
| Servo_IsAutoMoving | |
| Is the AutoMoveToPosition movement complete. Returns 1 if the servos are still moving. Returns 0 if all servo movement is complete. | |
| Return | |
Servo_IsServoAutoMoving
Servo_MoveToPosition
Servo_MoveToPositionInt
Servo_SetAutoMoveSpeed
Servo_SetAutoMoveSpeedInt
Servo_SetPosition
Servo_SetPositionInt
Servo_SetTrim
Stepper_DecrementStep
| Stepper_DecrementStep | |
| Move the motor backwards by one step. | |
| Return | |
Stepper_DisableMotor
| Stepper_DisableMotor | |
| Turn off the motor. It will no longer respond to any other macros. | |
| Return | |
Stepper_EnableMotor
| Stepper_EnableMotor | |
| Turn on the motor. This must be done before it will respond to any other macros. | |
| Return | |
Stepper_IncrementStep
| Stepper_IncrementStep | |
| Move the motor forward by one step. | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EB_Actuators_BL0127.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EB_Actuators_BL0127.fcfx