Difference between revisions of "Bot test"
From Flowcode Help
Jump to navigationJump to search| Line 16: | Line 16: | ||
==Examples== | ==Examples== | ||
| + | |||
| + | |||
| + | |||
| + | DMX Master Example, reads the value of two ports using switch arrays to set the values and then transmits the data in a DMX packet. | ||
| + | |||
| + | {{Fcfile|DMX_Master_Example1.fcfx|DMX Master Example1}} | ||
| + | |||
| + | |||
| + | 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. | ||
| + | |||
| + | {{Fcfile|DMX_Slave_Example1.fcfx|DMX Slave Example1}} | ||
Revision as of 12:03, 31 August 2021
| Author | MatrixTSL |
| Version | 2.0 |
| Category | Comms: System |
DMX-512 Master 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.
Examples
DMX Master Example, reads the value of two ports using switch arrays to set the values and then transmits the data in a DMX packet.
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.
Downloadable macro reference
| SetDataChannel | |
| Sets the data byte in a data channel | |
| Channel | |
| DataValue | |
| Return | |
| SendDataChain | |
| Transmits the BREAK, MAB and StartCode followed by the contents of the data channels. | |
| StartCode | |
| Return | |
| Initialise | |
| Configures the UART serial interface. | |
| Return | |