Jump to content

Component: Relay (BL0183) (E-blocks 2): Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
(8 intermediate revisions by 2 users not shown)
Line 15: Line 15:
The Relay is a digital normally open switch capable of switching much higher voltages and currents than your normal Microcontroller outputs. When set to HIGH, the LED will light up and the relay will close allowing current to flow.  The peak voltage capability is 250V at 10 amps. Simulated component, green indiacator is on when the relay is active.
The Relay is a digital normally open switch capable of switching much higher voltages and currents than your normal Microcontroller outputs. When set to HIGH, the LED will light up and the relay will close allowing current to flow.  The peak voltage capability is 250V at 10 amps. Simulated component, green indiacator is on when the relay is active.


==Component Source Code==
==Version information==


Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/EBlocks2_Relay_BL0183_2d.fcfx FC_Comp_Source_temp/EBlocks2_Relay_BL0183_2d.fcfx]
Library Version, Component Version, Date, Author, Info
6, 1.0, 08-05-25, BR, Added autodetect port on Ev_PostInitialise


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


==Detailed description==
==Detailed description==
Line 52: Line 52:


''<span style="color:red;">No additional examples</span>''
''<span style="color:red;">No additional examples</span>''




Line 62: Line 68:


===Relay1SwitchOff===
===Relay1SwitchOff===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Relay1SwitchOff'''
| width="90%" class="mtx-class-macrohead" | '''Relay1SwitchOff'''
|-
|-
| colspan="2" | Switch off the relay, disconnecting the common pin from the normally open pin.&nbsp;
| colspan="2" | Switch off the relay, disconnecting the common pin from the normally open pin.&nbsp;
Line 76: Line 82:


===Relay1SwitchOn===
===Relay1SwitchOn===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Relay1SwitchOn'''
| width="90%" class="mtx-class-macrohead" | '''Relay1SwitchOn'''
|-
|-
| colspan="2" | Switch on the relay, connecting the common pin to the normally open pin.&nbsp;
| colspan="2" | Switch on the relay, connecting the common pin to the normally open pin.&nbsp;
Line 90: Line 96:


===Relay2SwitchOff===
===Relay2SwitchOff===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Relay2SwitchOff'''
| width="90%" class="mtx-class-macrohead" | '''Relay2SwitchOff'''
|-
|-
| colspan="2" | Switch off the relay, disconnecting the common pin from the normally open pin.&nbsp;
| colspan="2" | Switch off the relay, disconnecting the common pin from the normally open pin.&nbsp;
Line 104: Line 110:


===Relay2SwitchOn===
===Relay2SwitchOn===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Relay2SwitchOn'''
| width="90%" class="mtx-class-macrohead" | '''Relay2SwitchOn'''
|-
|-
| colspan="2" | Switch on the relay, connecting the common pin to the normally open pin.&nbsp;
| colspan="2" | Switch on the relay, connecting the common pin to the normally open pin.&nbsp;
Line 115: Line 121:
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}




==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
Line 152: Line 156:
| colspan="2" | &nbsp;
| colspan="2" | &nbsp;
|}
|}
==Component Source Code==
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_EB_Relay_BL0183_2d.fcfx FC_Comp_Source_EB_Relay_BL0183_2d.fcfx]
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_EB_Relay_BL0183_2d.fcfx FC_Comp_Source_EB_Relay_BL0183_2d.fcfx]

Latest revision as of 14:23, 13 July 2026

Author Matrix Ltd
Version 1.0
Category E-blocks 2


Relay (BL0183) component

The Relay is a digital normally open switch capable of switching much higher voltages and currents than your normal Microcontroller outputs. When set to HIGH, the LED will light up and the relay will close allowing current to flow. The peak voltage capability is 250V at 10 amps. Simulated component, green indiacator is on when the relay is active.

Version information

Library Version, Component Version, Date, Author, Info
6, 1.0, 08-05-25, BR, Added autodetect port on Ev_PostInitialise


Detailed description

No detailed description exists yet for this component

Examples

No additional examples







Macro reference

Relay1SwitchOff

Relay1SwitchOff
Switch off the relay, disconnecting the common pin from the normally open pin. 
- VOID Return


Relay1SwitchOn

Relay1SwitchOn
Switch on the relay, connecting the common pin to the normally open pin. 
- VOID Return


Relay2SwitchOff

Relay2SwitchOff
Switch off the relay, disconnecting the common pin from the normally open pin. 
- VOID Return


Relay2SwitchOn

Relay2SwitchOn
Switch on the relay, connecting the common pin to the normally open pin. 
- VOID Return


Property reference

Properties
Output Mode
 
Switch1
 
Port
 
Relay1 Pin
 
Relay2 Pin
 

Component Source Code

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

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