Difference between revisions of "Component: DMX-512 Slave (Comms: System)"
| (2 intermediate revisions by the same user not shown) | |||
| Line 65: | Line 65: | ||
For DMX 512 Master example see [[Component:_ID_b4e10f9e_4ea9_4fbc_a584_a4d7d4d8fba6|DMX Master]]  | For DMX 512 Master example see [[Component:_ID_b4e10f9e_4ea9_4fbc_a584_a4d7d4d8fba6|DMX Master]]  | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 91: | Line 97: | ||
| − | ===  | + | ===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" |   | + | | colspan="2" | Configures the UART serial interface.   | 
|-  | |-  | ||
|-  | |-  | ||
| − | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-  | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
| − | ===  | + | ===ReceiveDataChain===  | 
{| 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;" | '''ReceiveDataChain'''  | 
| + | |-  | ||
| + | | colspan="2" | Waits for a BREAK, MAB and StartCode followed by the contents of the data channels. Returns 0 to indicate a timeout and 1 to indicate succesful reception.   | ||
| + | |-  | ||
|-  | |-  | ||
| − | |   | + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | 
| + | | width="90%" | Timeout  | ||
|-  | |-  | ||
| + | | colspan="2" | 0 = Don't wait, 1 - 254 = 1ms - 254ms, 255 = Wait forever   | ||
|-  | |-  | ||
| − | | 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''  | ||
|}  | |}  | ||
| − | |||
| − | |||
Latest revision as of 13:09, 7 February 2023
| Author | MatrixTSL | 
| Version | 2.0 | 
| Category | Comms: System | 
Contents
DMX-512 Slave component
A serial based communications protocol designed for controlling theatrical equipment such as dimmers, fog machines and intelligent lights. DMX-512 Slave devices are daisy chained together with a final 180R terminating resistor at the end of the chail. DMX requires the signal to be level shifted from VCC and GND to +2.5V and -2.5V.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DMX-512_Slave.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DMX-512_Slave.fcfx
Detailed description
No detailed description exists yet for this component
Examples
DMX Slave Example, captures the first DMX data channel sent from the Master and outputs the value onto a Port using the LED array component.
DMX Slave Example1
For DMX 512 Master example see DMX Master
Macro reference
GetDataChannel
| GetDataChannel | |
| Gets the data byte from a data channel | |
| Channel | |
| Return | |
Initialise
| Initialise | |
| Configures the UART serial interface. | |
| Return | |
ReceiveDataChain