Difference between revisions of "Component: DALI Slave (Comms: System)"
From Flowcode Help
Jump to navigationJump to search| Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/DALI_Slave.fcfx FC_Comp_Source_temp/DALI_Slave.fcfx] |
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/DALI_Slave.fcfx FC_Comp_Source_temp/DALI_Slave.fcfx] |
==Detailed description== | ==Detailed description== | ||
| Line 48: | Line 48: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 55: | Line 57: | ||
==Macro reference== | ==Macro reference== | ||
| − | === | + | ===CheckForGroupAddress=== |
{| 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;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CheckForGroupAddress''' |
| + | |- | ||
| + | | colspan="2" | Tests the 16-bit incoming data for the defined group address Returns 0 for no match, returns 1 for a match | ||
| + | |- | ||
|- | |- | ||
| − | | | + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT |
| + | | width="90%" | Data | ||
|- | |- | ||
| + | | colspan="2" | | ||
|- | |- | ||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| Line 107: | Line 114: | ||
| − | === | + | ===CollectPacketType=== |
{| 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;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CollectPacketType''' |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | Returns if the incoming packet was data or a command. Return of 0 = Data Return of 1 = Command |
|- | |- | ||
|- | |- | ||
| Line 126: | Line 133: | ||
| − | === | + | ===Initialise=== |
{| 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;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | ===ReceiveForwardFrame=== | ||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReceiveForwardFrame''' | ||
|- | |- | ||
| − | | | + | | colspan="2" | Attempts to receive an 16-bit command from the master controller. 0xFFFF indicates timeout or no reply |
| − | |||
|- | |- | ||
| − | |||
|- | |- | ||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| Line 160: | Line 176: | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Revision as of 11:59, 3 February 2023
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Comms: System |
Contents
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_temp/DALI_Slave.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/DALI_Slave.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
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 | |