HOW TO: Look Up Table, UART SEND - LDmicro/LDmicro GitHub Wiki
The simplest ladder diagram to sending Look-Up Table data to UART is
In simulation mode, it looks like this
But there is a nuance associated with PLC Cycle Time and UART Baud Rate
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.
Enlarged view.
Ybusy - yellow.
Yinc - blue.
UART TX - red.
Ycycle - green.
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.
Enlarged view.
Both cases work correctly in LDmicro.
Any questions to [email protected]