HOW TO: Look Up Table, UART SEND - LDmicro/LDmicro GitHub Wiki

The simplest ladder diagram to sending Look-Up Table data to UART is
lut0.ld
In simulation mode, it looks like this
lut0.ld

But there is a nuance associated with PLC Cycle Time and UART Baud Rate
default
lut1.ld

A) The symbol transmission time is about 2 ms and less than the PLC cycle time 3 ms.
Data transmitting driven by PLC cycle time, sends the symbols at regular intervals.
default
Enlarged view.
Ybusy - yellow.
Yinc - blue.
UART TX - red.
Ycycle - green.
default

B) The symbol transmission time is about 2 ms and less than the PLC cycle time 1 ms.
Data transmitting driven by UART baud rate, sends the symbols at irregular intervals, but faster.
default
Enlarged view.
default

Both cases work correctly in LDmicro.

LUT.ZIP

Any questions to [email protected]