Reading bytes from a Serial Port

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Sunshine12
Posts: 12
Joined: Fri Sep 14, 2012 6:27 am

Reading bytes from a Serial Port

Post by Sunshine12 »

Hi there i am sending a string to my screen
via RS232 to my screen. However the data iam receiving looks like nonsense. I assume this data is in a raw bytes format. Is there a way to convert it back to the original string.
note this works fine when simulating the project on the PC its just when running the project on the panel that it all messes up . I have been useing the simpleSerialScript in the Scripting forum.

Thanks

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Reading bytes from a Serial Port

Post by mark.monroe »

I would double check your baud rate and serial port settings. There should be no difference between the HMI application and running it on the PC for serial port communication.

Take a look at this forum post on how to debug a serial port connection.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply