Difference between revisions of "Component: DMX-512 Master (Comms: System)"
From Flowcode Help
Jump to navigationJump to searchLine 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_DMX- | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_DMX-512_Master_SCADA.fcsx FC_Comp_Source_DMX-512_Master_SCADA.fcsx] |
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 46: | Line 48: | ||
==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. | 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. | ||
Line 54: | Line 58: | ||
For DMX 512 slave example see: [[Component:_ID_1be0ac44_3521_402e_a8b7_1faf86c09560|DMX Slave]] | For DMX 512 slave example see: [[Component:_ID_1be0ac44_3521_402e_a8b7_1faf86c09560|DMX Slave]] | ||
− | == | + | ==Macro reference== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
Line 125: | Line 129: | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
− | | width="90%" | | + | | width="90%" | COM Port |
+ | |- | ||
+ | | colspan="2" | Selects which port to communicate with, only lists ports which are currently available. | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | ||
+ | | width="90%" | Refresh COM Ports | ||
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | When set to yes the COM port list is rescanned for newly connected or available ports. Note that refreshing the ports list may take a few seconds depending on the number of connected ports. |
|- | |- | ||
− | | width="10%" align="center" | [[File:Fc9-type- | + | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]] |
− | | width="90%" | Baud | + | | width="90%" | Baud |
|- | |- | ||
− | | colspan="2" | Baud rate | + | | colspan="2" | Baud rate passed to the COM port to control the rate of data. |
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-14-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]] | ||
− | | width="90%" | | + | | width="90%" | Timeout Value |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Value to specify what is returned when no incoming receive data is present. |
|- | |- | ||
− | | width="10%" align="center" | [[File:Fc9-type- | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] |
− | | width="90%" | | + | | width="90%" | Console Data |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | |
|- | |- | ||
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
Line 152: | Line 161: | ||
|- | |- | ||
| colspan="2" | Number of data bytes used by the DMX chain, Max 512 bytes per transmission. 24 Bytes minimum to match minimum 1204us timing requirements, not all channels need to be used. | | colspan="2" | Number of data bytes used by the DMX chain, Max 512 bytes per transmission. 24 Bytes minimum to match minimum 1204us timing requirements, not all channels need to be used. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |
Revision as of 14:10, 20 January 2023
Author | MatrixTSL |
Version | 2.0 |
Category | Comms: System |
Contents
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.
Component Source Code
Please click here for the component source code: FC_Comp_Source_DMX-512_Master_SCADA.fcsx
Detailed description
No detailed description exists yet for this component
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.
For DMX 512 slave example see: DMX Slave
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 |