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
|
ReceiveBackwardFrame
|
Attempts to receive an 8-bit reply 0 indicates timeout or no reply
|
- BYTE
|
Return
|
|
TransmitForwardFrame
|
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.
|
- BYTE
|
Address
|
Address byte
|
- BYTE
|
Data
|
Data Byte
|
- BYTE
|
Return
|
|
TransmitIndividualForwardFrame
|
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.
|
- BYTE
|
Address
|
Individual Address 0-63
|
- BYTE
|
Type
|
0 = Data, 1 = Command
|
- BYTE
|
Data
|
|
- BYTE
|
Return
|
|
TransmitGroupForwardFrame
|
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.
|
- BYTE
|
Address
|
Group Address 0-15
|
- BYTE
|
Type
|
0 = Data, 1 = Command
|
- BYTE
|
Data
|
|
- BYTE
|
Return
|
|
Initialise
|
Configures the UART serial interface.
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
Serial Properties
|
|
TX Pin
|
|
|
RX Pin
|
|
|
Simulation
|
|
API
|
|
==Macro reference==
|
ReceiveBackwardFrame
|
Attempts to receive an 8-bit reply 0 indicates timeout or no reply
|
- BYTE
|
Return
|
|
TransmitForwardFrame
|
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.
|
- BYTE
|
Address
|
Address byte
|
- BYTE
|
Data
|
Data Byte
|
- BYTE
|
Return
|
|
TransmitIndividualForwardFrame
|
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.
|
- BYTE
|
Address
|
Individual Address 0-63
|
- BYTE
|
Type
|
0 = Data, 1 = Command
|
- BYTE
|
Data
|
|
- BYTE
|
Return
|
|
TransmitGroupForwardFrame
|
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.
|
- BYTE
|
Address
|
Group Address 0-15
|
- BYTE
|
Type
|
0 = Data, 1 = Command
|
- BYTE
|
Data
|
|
- BYTE
|
Return
|
|
Initialise
|
Configures the UART serial interface.
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
Serial Properties
|
|
TX Pin
|
|
|
RX Pin
|
|
|
Simulation
|
|
API
|
|
==Macro reference==
|
ReceiveBackwardFrame
|
Attempts to receive an 8-bit reply 0 indicates timeout or no reply
|
- BYTE
|
Return
|
|
TransmitForwardFrame
|
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.
|
- BYTE
|
Address
|
Address byte
|
- BYTE
|
Data
|
Data Byte
|
- BYTE
|
Return
|
|
TransmitIndividualForwardFrame
|
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.
|
- BYTE
|
Address
|
Individual Address 0-63
|
- BYTE
|
Type
|
0 = Data, 1 = Command
|
- BYTE
|
Data
|
|
- BYTE
|
Return
|
|
TransmitGroupForwardFrame
|
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.
|
- BYTE
|
Address
|
Group Address 0-15
|
- BYTE
|
Type
|
0 = Data, 1 = Command
|
- BYTE
|
Data
|
|
- BYTE
|
Return
|
|
Initialise
|
Configures the UART serial interface.
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
Serial Properties
|
|
TX Pin
|
|
|
RX Pin
|
|
|
Simulation
|
|
API
|
|
==Macro reference==
|
ReceiveBackwardFrame
|
Attempts to receive an 8-bit reply 0 indicates timeout or no reply
|
- BYTE
|
Return
|
|
TransmitForwardFrame
|
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.
|
- BYTE
|
Address
|
Address byte
|
- BYTE
|
Data
|
Data Byte
|
- BYTE
|
Return
|
|
TransmitIndividualForwardFrame
|
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.
|
- BYTE
|
Address
|
Individual Address 0-63
|
- BYTE
|
Type
|
0 = Data, 1 = Command
|
- BYTE
|
Data
|
|
- BYTE
|
Return
|
|
TransmitGroupForwardFrame
|
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.
|
- BYTE
|
Address
|
Group Address 0-15
|
- BYTE
|
Type
|
0 = Data, 1 = Command
|
- BYTE
|
Data
|
|
- BYTE
|
Return
|
|
Initialise
|
Configures the UART serial interface.
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
Serial Properties
|
|
TX Pin
|
|
|
RX Pin
|
|
|
Simulation
|
|
API
|
|