Jump to content

Component: DALI Slave (Comms: System)

From Flowcode Help
Revision as of 14:39, 16 January 2023 by Wiki bot (talk | contribs) (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;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 for the component source code: FC_Comp_Source_DALI_Slave.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Downloadable macro reference

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


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
Returns the data byte from a 16-bit data packet 
- UINT Data
 
- BYTE Return


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


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


TransmitBackwardFrame
Send out a 8-bit frame consisting of a data byte. 
- BYTE Data
Data Byte 
- BYTE Return


Initialise
Configures the UART serial interface. 
- VOID 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