22.09.2016, 19:50
Your script is not 100% working because there's race condition while accessing storage items.
The easiest approach is to use UDP client (event scripts) and server (resident) - this way you don't have to waste CPU power polling and OS will do the buffering for you while your script is sending data to RS-485. I'll prepare a short example later.
The easiest approach is to use UDP client (event scripts) and server (resident) - this way you don't have to waste CPU power polling and OS will do the buffering for you while your script is sending data to RS-485. I'll prepare a short example later.