Updating procedure

The terminal has different buffers internally.

The data from the PLC is written into the first buffer (pixel buffer) in order to build the "image" for connected LEDs. The data is sent from the PLC either via a Command or a Write command together with an Execute.

From this buffer the finished data is written to the next buffer (frame buffer). For this purpose, the update command is used with an execute. In order to finally send the data out of this buffer to the LEDs, a Send command must be executed with the Execute. This process is shown graphically below.

Updating procedure 1:
Buffer sequence

For the timings to transfer data from the PLC to the connected LEDs different times have to be considered.

PLC to pixel buffer (Write/Command)

The duration for the transfer of data from the PLC to the pixel buffer depends on the selected operation mode (Command, Extended) and the set cycle time.

All four channels can be written in parallel from the PLC, so that no addition of times is necessary.

Frame buffer to LEDs (Send)

The duration for the transfer of data between the buffers depends on whether RGB or RGBW LEDs are used. For this purpose, the following calculation can be used with the data sheet values for the LED type used.

n: Number of LEDs to be manipulated
fD: Data rate (800 kHz for WS2812B)
TRST: Reset Time (~300 kHz for WS2812B)

 

Updating procedure 2:

Frame rate:

The update of the data to the terminal and the sending to the strip can run in parallel, because two different buffers in the terminal are accessed.

In addition, all four channels can always be processed in parallel.