Component: DALI Master (Comms: System): Difference between revisions
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (20 intermediate revisions by 3 users not shown) | |||
| Line 14: | Line 14: | ||
==DALI Master component== | ==DALI Master component== | ||
A serial based communications protocol designed for controlling lighting, specifically digitally controlled dimmable fluorescent ballasts. DALI requires the signals to be level shifted from VCC and GND to +9.5V - +25.5V and GND. The master component can addess up to 64 individual slaves & up to 16 groups. | A serial based communications protocol designed for controlling lighting, specifically digitally controlled dimmable fluorescent ballasts. DALI requires the signals to be level shifted from VCC and GND to +9.5V - +25.5V and GND. The master component can addess up to 64 individual slaves & up to 16 groups. | ||
==Component Source Code== | |||
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_DALI_Master.fcfx FC_Comp_Source_DALI_Master.fcfx] | |||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DALI_Master.fcfx FC_Comp_Source_DALI_Master.fcfx] | |||
==Detailed description== | ==Detailed description== | ||
| Line 24: | Line 48: | ||
==Examples== | ==Examples== | ||
| Line 32: | Line 74: | ||
DALI Master Example, reads the value of a keypad and sends out DALI commands based on the key pressed, 1 = switch on a slave's light, 2 = switch off a slave's light, 3 = read the slave's light level. | DALI Master Example, reads the value of a keypad and sends out DALI commands based on the key pressed, 1 = switch on a slave's light, 2 = switch off a slave's light, 3 = read the slave's light level. | ||
{{Fcfile|DALI_Master.fcfx|DALI Master Example1}} | {{Fcfile|DALI_Master.fcfx|DALI Master Example1}} | ||
For a DALI Slave example see: [[Component: DALI Slave (Comms: System)]] | |||
{| class="wikitable | |||
==Macro reference== | |||
===Initialise=== | |||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style=" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |||
| colspan="2" | Configures the UART serial interface. | |||
|- | |||
|- | |||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | |||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | |||
|} | |||
===ReceiveBackwardFrame=== | |||
{| class="mtx-class-macrotable wikitable" | |||
|- | |||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | |||
| width="90%" class="mtx-class-macrohead" | '''ReceiveBackwardFrame''' | |||
|- | |- | ||
| colspan="2" | Attempts to receive an 8-bit reply 0 indicates timeout or no reply | | colspan="2" | Attempts to receive an 8-bit reply 0 indicates timeout or no reply | ||
| Line 50: | Line 117: | ||
{| class="wikitable | ===TransmitForwardFrame=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TransmitForwardFrame''' | ||
|- | |- | ||
| colspan="2" | Send out a 16-bit frame consisting of the 8-bit address and data bytes. After sending the controller will attempt to receive If a reply is detected then the Return value will equal to the reply. If no reply is detected then the Return value will be 0. | | colspan="2" | Send out a 16-bit frame consisting of the 8-bit address and data bytes. After sending the controller will attempt to receive If a reply is detected then the Return value will equal to the reply. If no reply is detected then the Return value will be 0. | ||
| Line 73: | Line 141: | ||
{| class="wikitable | ===TransmitGroupForwardFrame=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TransmitGroupForwardFrame''' | ||
|- | |- | ||
| colspan="2" | Sends out | | colspan="2" | Sends out a group frame containing address and data. After sending the controller will attempt to receive a reply. If a reply is detected then the Return value will equal to the reply. If no reply is detected then the Return value will be 0. | ||
|- | |- | ||
|- | |- | ||
| Line 84: | Line 153: | ||
| width="90%" | Address | | width="90%" | Address | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Group Address 0-15 | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| Line 101: | Line 170: | ||
{| class="wikitable | ===TransmitIndividualForwardFrame=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TransmitIndividualForwardFrame''' | ||
|- | |- | ||
| colspan="2" | Sends out | | colspan="2" | Sends out an individual frame containing address and data. After sending the controller will attempt to receive a reply. If a reply is detected then the Return value will equal to the reply. If no reply is detected then the Return value will be 0. | ||
|- | |- | ||
|- | |- | ||
| Line 112: | Line 182: | ||
| width="90%" | Address | | width="90%" | Address | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Individual Address 0-63 | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| Line 129: | Line 199: | ||
{| class="wikitable | ==Property reference== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | |||
| width="10%" align="center" | | width="90%" class="mtx-class-propfolder" | Serial Properties | ||
| width="90%" | |||
|- | |- | ||
|- | |- | ||
| Line 162: | Line 221: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Simulation | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Comms: System |
DALI Master component
A serial based communications protocol designed for controlling lighting, specifically digitally controlled dimmable fluorescent ballasts. DALI requires the signals to be level shifted from VCC and GND to +9.5V - +25.5V and GND. The master component can addess up to 64 individual slaves & up to 16 groups.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DALI_Master.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DALI_Master.fcfx
Detailed description
No detailed description exists yet for this component
Examples
DALI Master Example, reads the value of a keypad and sends out DALI commands based on the key pressed, 1 = switch on a slave's light, 2 = switch off a slave's light, 3 = read the slave's light level.
DALI Master Example1
For a DALI Slave example see: Component: DALI Slave (Comms: System)
Macro reference
Initialise
| Initialise | |
| Configures the UART serial interface. | |
| Return | |
ReceiveBackwardFrame
| ReceiveBackwardFrame | |
| Attempts to receive an 8-bit reply 0 indicates timeout or no reply | |
| Return | |
TransmitForwardFrame
TransmitGroupForwardFrame
TransmitIndividualForwardFrame
Property reference
| Properties | |
| Serial Properties | |
| TX Pin | |
| RX Pin | |
| Simulation | |
| API | |