While reading the data from scanner through RS232 serial block in zenon logic, at very first time when PC is started or restarted and zenon Runtime is started then it is reading garbage values while scan and it is continuously reading the same for all scan's.

After that if i scan in Hyperterminal or other serial port software's for one time and again if i started the zenon logic then onwards it is reading correct value's.

I request you to suggest me how to solve this issue, like port initialization or serial buffer clear etc.,