Difference between revisions of "Component: DALI Slave (Comms: System)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | MatrixTSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray;...") |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 14: | Line 14: | ||
==DALI Slave component== | ==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. | 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 Pack== | ||
+ | |||
+ | COMMSC | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
+ | |||
+ | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
Line 21: | Line 29: | ||
==Examples== | ==Examples== | ||
− | + | ||
+ | |||
+ | |||
+ | |||
+ | DALI Slave Example, listens for DALI messages and checks that the group is correct before attempting to process the request and if required reply to the master. | ||
+ | {{Fcfile|DALI_Slave.fcfx|DALI Slave Example1}} | ||
+ | |||
+ | |||
+ | For a DALI Master example see: [[Component: DALI Master (Comms: System)]] | ||
==Downloadable macro reference== | ==Downloadable macro reference== | ||
Line 134: | Line 150: | ||
|- | |- | ||
| colspan="2" | Configures the UART serial interface. | | colspan="2" | Configures the UART serial interface. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|- | |- | ||
Line 308: | Line 165: | ||
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
+ | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Serial Properties | ||
|- | |- | ||
|- | |- | ||
Line 319: | Line 180: | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
+ | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | DALI Slave Properties | ||
+ | |- | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
Line 330: | Line 195: | ||
| colspan="2" | Address ranging from 0-15 | | colspan="2" | Address ranging from 0-15 | ||
|- | |- | ||
− | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
− | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation |
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|- | |- |
Latest revision as of 17:19, 9 November 2022
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 Pack
COMMSC
Detailed description
No detailed description exists yet for this component
Examples
DALI Slave Example, listens for DALI messages and checks that the group is correct before attempting to process the request and if required reply to the master.
DALI Slave Example1
For a DALI Master example see: Component: DALI Master (Comms: System)
Downloadable macro reference
![]() |
ReceiveForwardFrame |
Attempts to receive an 16-bit command from the master controller. 0xFFFF indicates timeout or no reply | |
![]() |
Return |
![]() |
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 |
Returns the data byte from a 16-bit data packet | |
![]() |
Data |
![]() |
Return |
![]() |
CheckForGroupAddress |
Tests the 16-bit incoming data for the defined group address Returns 0 for no match, returns 1 for a match | |
![]() |
Data |
![]() |
Return |
![]() |
CollectPacketType |
Returns if the incoming packet was data or a command. Return of 0 = Data Return of 1 = Command | |
![]() |
Data |
![]() |
Return |
![]() |
TransmitBackwardFrame |
Send out a 8-bit frame consisting of a data byte. | |
![]() |
Data |
Data Byte | |
![]() |
Return |
![]() |
Initialise |
Configures the UART serial interface. | |
![]() |
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 |