Component: DALI Slave (Comms: System): 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 - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 49: | Line 49: | ||
|- | |- | ||
| 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" | '''CheckForGroupAddress''' | ||
|- | |- | ||
| colspan="2" | Tests the 16-bit incoming data for the defined group address Returns 0 for no match, returns 1 for a match | | colspan="2" | Tests the 16-bit incoming data for the defined group address Returns 0 for no match, returns 1 for a match | ||
| Line 68: | Line 68: | ||
|- | |- | ||
| 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" | '''CheckForIndividualAddress''' | ||
|- | |- | ||
| colspan="2" | Tests the 16-bit incoming data for the defined individual address Returns 0 for no match, returns 1 for a match | | colspan="2" | Tests the 16-bit incoming data for the defined individual address Returns 0 for no match, returns 1 for a match | ||
| Line 87: | Line 87: | ||
|- | |- | ||
| 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" | '''CollectDataByte''' | ||
|- | |- | ||
| colspan="2" | Returns the data byte from a 16-bit data packet | | colspan="2" | Returns the data byte from a 16-bit data packet | ||
| Line 106: | Line 106: | ||
|- | |- | ||
| 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" | '''CollectPacketType''' | ||
|- | |- | ||
| colspan="2" | Returns if the incoming packet was data or a command. Return of 0 = Data Return of 1 = Command | | colspan="2" | Returns if the incoming packet was data or a command. Return of 0 = Data Return of 1 = Command | ||
| Line 125: | Line 125: | ||
|- | |- | ||
| 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" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Configures the UART serial interface. | | colspan="2" | Configures the UART serial interface. | ||
| Line 139: | Line 139: | ||
|- | |- | ||
| 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" | '''ReceiveForwardFrame''' | ||
|- | |- | ||
| colspan="2" | Attempts to receive an 16-bit command from the master controller. 0xFFFF indicates timeout or no reply | | colspan="2" | Attempts to receive an 16-bit command from the master controller. 0xFFFF indicates timeout or no reply | ||
| Line 153: | Line 153: | ||
|- | |- | ||
| 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" | '''TransmitBackwardFrame''' | ||
|- | |- | ||
| colspan="2" | Send out a 8-bit frame consisting of a data byte. | | colspan="2" | Send out a 8-bit frame consisting of a data byte. | ||
| Line 173: | Line 173: | ||
|- | |- | ||
| 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''' | ||
|- | |- | ||
|- | |- | ||
| 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" | Serial Properties | ||
|- | |- | ||
|- | |- | ||
| Line 190: | Line 190: | ||
| 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" | DALI Slave Properties | ||
|- | |- | ||
|- | |- | ||
| Line 204: | Line 204: | ||
| colspan="2" | Address ranging from 0-15 | | colspan="2" | Address ranging from 0-15 | ||
|- | |- | ||
| 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:36, 13 July 2026
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Comms: System |
DALI Slave 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 using external circuitry.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DALI_Slave.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DALI_Slave.fcfx
Detailed description
No detailed description exists yet for this component
Examples
An example that shows how to use the Dali Slave to receive packets then take actions accordingly
Macro reference
CheckForGroupAddress
| CheckForGroupAddress | |
| Tests the 16-bit incoming data for the defined group address Returns 0 for no match, returns 1 for a match | |
| Data | |
| Return | |
CheckForIndividualAddress
| CheckForIndividualAddress | |
| Tests the 16-bit incoming data for the defined individual address Returns 0 for no match, returns 1 for a match | |
| Data | |
| Return | |
CollectDataByte
| CollectDataByte | |
| Returns the data byte from a 16-bit data packet | |
| Data | |
| Return | |
CollectPacketType
| CollectPacketType | |
| Returns if the incoming packet was data or a command. Return of 0 = Data Return of 1 = Command | |
| Data | |
| Return | |
Initialise
| Initialise | |
| Configures the UART serial interface. | |
| Return | |
ReceiveForwardFrame
| ReceiveForwardFrame | |
| Attempts to receive an 16-bit command from the master controller. 0xFFFF indicates timeout or no reply | |
| Return | |
TransmitBackwardFrame
| TransmitBackwardFrame | |
| Send out a 8-bit frame consisting of a data byte. | |
| Data | |
| Data Byte | |
| Return | |
Property reference
| Properties | |
| Serial Properties | |
| TX Pin | |
| RX Pin | |
| DALI Slave Properties | |
| Individual Address | |
| Address ranging from 0-63 | |
| Group Address | |
| Address ranging from 0-15 | |
| Simulation | |
| API | |