Jump to content

Component: DALI Slave (Comms: System): Difference between revisions

From Flowcode Help
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(5 intermediate revisions by the same user not shown)
Line 46: Line 46:


===CheckForGroupAddress===
===CheckForGroupAddress===
{| 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;" | '''CheckForGroupAddress'''
| 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 65: Line 65:


===CheckForIndividualAddress===
===CheckForIndividualAddress===
{| 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;" | '''CheckForIndividualAddress'''
| 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 84: Line 84:


===CollectDataByte===
===CollectDataByte===
{| 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;" | '''CollectDataByte'''
| 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 103: Line 103:


===CollectPacketType===
===CollectPacketType===
{| 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;" | '''CollectPacketType'''
| 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 122: Line 122:


===Initialise===
===Initialise===
{| 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;" | '''Initialise'''
| width="90%" class="mtx-class-macrohead" | '''Initialise'''
|-
|-
| colspan="2" | Configures the UART serial interface. 
| colspan="2" | Configures the UART serial interface. 
Line 136: Line 136:


===ReceiveForwardFrame===
===ReceiveForwardFrame===
{| 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;" | '''ReceiveForwardFrame'''
| 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 150: Line 150:


===TransmitBackwardFrame===
===TransmitBackwardFrame===
{| 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;" | '''TransmitBackwardFrame'''
| 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 170: Line 170:
==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'''  
|-
|-
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Serial Properties
| width="90%" class="mtx-class-propfolder" | Serial Properties
|-
|-
|-
|-
Line 190: Line 190:
| colspan="2" |  
| colspan="2" |  
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | DALI Slave Properties
| 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" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
| 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

DALI Slave Example

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 
- UINT Data
 
- BYTE Return


CheckForIndividualAddress

CheckForIndividualAddress
Tests the 16-bit incoming data for the defined individual address Returns 0 for no match, returns 1 for a match 
- UINT Data
 
- BYTE Return


CollectDataByte

CollectDataByte
Returns the data byte from a 16-bit data packet 
- UINT Data
 
- BYTE Return


CollectPacketType

CollectPacketType
Returns if the incoming packet was data or a command. Return of 0 = Data Return of 1 = Command 
- UINT Data
 
- BYTE Return


Initialise

Initialise
Configures the UART serial interface. 
- VOID Return


ReceiveForwardFrame

ReceiveForwardFrame
Attempts to receive an 16-bit command from the master controller. 0xFFFF indicates timeout or no reply 
- UINT Return


TransmitBackwardFrame

TransmitBackwardFrame
Send out a 8-bit frame consisting of a data byte. 
- BYTE Data
Data Byte 
- 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