samJones Posted January 10, 2020 Report Share Posted January 10, 2020 Hi, This is -hopefully- a relatively simple question, but I'm a bit out of my depth so apologies if I manage to confuse the situation with imprecise terminology! I need to read (and ultimately log) the serial output of a third party device to a Unistream PLC. The device outputs six values (e.g. 5.10945e1 1.00361e2 -2.58244e2 -1.2803876e-1 8.77776e1 2.5464391e-1) as string (hexidecimal, length 70) that ends with a return (OD) and new line character (OA) e.g. I can read this string into a buffer tag using the Com Rx function and I can see in online mode that the data arrived bit tag is updating at the correct rate and that the hexidecimal values received by the buffer tag seem to respond sensibly. However, I'm stuck trying to understand how to go about defining the contents of the buffer tag as a message in Message Composer so that it is recognised by the Parse Message function. I would greatly appreciate any suggestions about how to do this or resources that might help me better understand my problem! I have found useful information here and in the video tutorials but I'm obviously still lacking some critical piece of knowledge! Ultimately I would like to end up with 6 data tags containing ASCII values that I can append to a .csv file created elsewhere in the program, but I'm not at this moment clear on the steps in between. Hopefully the above makes sense, if not I'll try again! Many thanks in advance, Sam Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.