RS232 functions have been separated from "ladder.c" (and a small bug has been fixed)