Example: DMX master

Sending the cyclic process data as a DMX master (EL6851)

Files for TwinCAT 3.1.

Preparation

The application examples have been tested with a test configuration and are described accordingly. Certain deviations when setting up actual applications are possible.

The following hardware and software were used for the test configuration:

Starting the sample program

1. Save the *.zip file on your hard disk and unzip it.
2. Open the project with TwinCAT XAE.
3. Connect the hardware accordingly and connect the Ethernet adapter of your PCs to the EtherCAT coupler.
4. Select the local Ethernet adapter (with real-time driver, if required) under Tc2_DMX_Sample_DMX_Master > I/O > Devices > Device 1 (EtherCAT) . Then select the appropriate adapter in the Adapter tab under Search... and confirm it.
Example: DMX master 1:
Example: DMX master 2:
5. Activate the configuration and confirm.
Example: DMX master 3:
Example: DMX master 4:
6. Start TwinCAT in RUN mode.
Example: DMX master 5:
7. Build the project in TwinCAT XAE by selecting the command Build Tc2_DMX_Sample_DMX_Master in the Build menu.
Example: DMX master 6:
8. Log in and confirm loading of the program.
Example: DMX master 7:
Example: DMX master 8:
9. Start the program.
Example: DMX master 9:

Visualization

Specification of the control values for the three colors of the DMX slave in TwinCAT XAE:

Example: DMX master 10:

The example transmits the DMX data cyclically to a DMX slave. The DMX device used here occupies three slots (bytes) in the DMX512 frame. Each slot addresses one of the three colors. If the “Start/Stop” button is pressed, then automatically generated data are transmitted to the DMX device. The speed of the changes can be altered using the horizontal slide control. If the “Start/Stop” button is not pressed, you can change the values manually using the three horizontal sliders.