Jump to content

Component: Power Board (BL0110) (E-blocks 2): Difference between revisions

From Flowcode Help
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray..."
 
No edit summary
Line 25: Line 25:
==Macro reference==
==Macro reference==


===Disable===
===SetDirection===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Disable'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetDirection'''
|-
| colspan="2" | Allows the direction of current to be reversed. Only applies to the Full Bridge mode.  
|-
|-
| colspan="2" |  
|-
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | Direction
|-
| colspan="2" | 0=Forwards, 1=Reverse 
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 39: Line 44:




===Enable===
===SetDuty===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Enable'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetDuty'''
|-
|-
| colspan="2" |  
| colspan="2" |  
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Channel
|-
| colspan="2" | 0=A, 1=B 
|-
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
| width="90%" | Duty
|-
| colspan="2" | Range: 0 to Resolution - 1 
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 53: Line 68:




===SetDirection===
===StartPWM===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetDirection'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StartPWM'''
|-
|-
| colspan="2" | Allows the direction of current to be reversed. Only applies to the Full Bridge mode.  
| colspan="2" |  
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | Direction
|-
| colspan="2" | 0=Forwards, 1=Reverse 
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 72: Line 82:




===SetDuty===
===StopPWM===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetDuty'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StopPWM'''
|-
|-
| colspan="2" |  
| colspan="2" |  
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Channel
|-
| colspan="2" | 0=A, 1=B 
|-
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
| width="90%" | Duty
|-
| colspan="2" | Range: 0 to Resolution - 1 
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 160: Line 160:
==Component Source Code==
==Component Source Code==


Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Eblocks2_Power_BL0110.fcfx FC_Comp_Source_Eblocks2_Power_BL0110.fcfx]
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_EB_Power_BL0110.fcfx FC_Comp_Source_EB_Power_BL0110.fcfx]


Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Eblocks2_Power_BL0110.fcfx FC_Comp_Source_Eblocks2_Power_BL0110.fcfx]
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_EB_Power_BL0110.fcfx FC_Comp_Source_EB_Power_BL0110.fcfx]

Revision as of 08:57, 27 April 2026

Author Matrix TSL
Version 1.0
Category E-blocks 2


Power Board (BL0110) component

A component to drive the power board BL0110 either as a full bridge or as two half bridges.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

SetDirection

SetDirection
Allows the direction of current to be reversed. Only applies to the Full Bridge mode.  
- BOOL Direction
0=Forwards, 1=Reverse 
- VOID Return


SetDuty

SetDuty
 
- BYTE Channel
0=A, 1=B 
- UINT Duty
Range: 0 to Resolution - 1 
- VOID Return


StartPWM

StartPWM
 
- VOID Return


StopPWM

StopPWM
 
- VOID Return


Property reference

Properties
Setup
Mode
Defines how the driver is connected. A full bridge is capable of controlling a load like a DC motor offering speed and direction control. A half bridge is capable of controlling a load like a DC motor with speed control only. 
PWM A
 
Enable A
 
PWM B
 
Enable B
 
Timer Properties
Timer
Timer Peripheral to use to monitor the passage of time. 
Frequency (Hz)
Sets the control frequency of the PWM output. Recommend between 100 and 5000 Hz 
Resolution
Defines how many possible steps there are in the output PWM duty. Recommend 100 - 256 100 would allow for duty control values in the range of 0 (fully off) to 99 (fully on) 
Interrupt Rate (Hz)
The overall timer interrupt rate. Try to keep this as low as possible to avoid slowing down the system with excessive interrupts. 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_EB_Power_BL0110.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_EB_Power_BL0110.fcfx