Receipt of 64 bytes data to two DMX slaves (EL6851-0010) in each case

Unpacking the example files


Receipt of 64 bytes data to two DMX slaves (EL6851-0010) in each case 1:

Fig. 3:  8 arrays each with 64 bytes, full range (all PDO activated )

The EL6851-0010 is able to read max. 512 bytes (64 bytes in eight arrays in each case, see fig. 3). The arrays can assigned via PDO 0x1C13 in the TwinCAT System Manger (tab "process data").

Example:

DMX Channel 1 - 64 - > Index 0x1A01
DMX Channel 65 - 128  -> Index 0x1A02

....

DMX Channel 449 - 512  -> Index 0x1A08

Receipt of 64 bytes data to two DMX slaves (EL6851-0010) in each case 2:

Fig. 4: DMX Channel 1 - 64 (default), select PDO 0x1A01


Receipt of 64 bytes data to two DMX slaves (EL6851-0010) in each case 3:

Fig. 5: DMX Channel 65 - 128, select PDO 0x1A02

In the sample program the first DMX slave receives the first sent 64 bytes and the second one the next 64 bytes (fig. 4+ 5, it is possible to receive all 128 bytes with one EL6851-0010, the segmentation in the example is deliberately selected).

Receipt of 64 bytes data to two DMX slaves (EL6851-0010) in each case 4:

Abb. 6: DMX status object

In the DMX status object (Index 0x6000, "DMX-Status", fig. 6) a copy counter is established with Index 0x6000:11 ("Channel length").

Example: If the PDO 0x1A01 is activated, the value of  "Channel length" is 64dec. If the PDO 0x1A02 is activated, the value is 128dez. If both PDOs are activated (0x1A01 and 0x1A02) the value is also 128dez.

 

Receipt of 64 bytes data to two DMX slaves (EL6851-0010) in each case 5:

Fig. 6: Visualization example 3 in the TwinCAT PLC

DMX Slave 1 receives 64 bytes data on channel 1 of  the first array ("DMX Channel 1  - 64")
DMX Slave 1 receives 64 bytes data on channel 1 of  the second array ("DMX Channel 65 - 128")

The "Receive toggle" Bit (Index 0x6000:02) is evaluated with the FB "fb_Monitor_ToggleBit" and displayed in the PLC visualization (Watchdog DMX Slave).