Ah yes, sorry i had a misstype. Here's the complete serial code:
Now, the PLC sends one line of data with "pauses" so
saves the complete
string so when the line ends, it has the complete value or the recieved data, then where
obviously erases existing data so it can start over again.