TCP Message Tag manipulation

Hi,

I am connecting a Mettler Toledo Scale with an RS232 via a Serial to Ethernet device. I have then connected the device to Ignition using the TCP driver and started to poll the Message tag for the weight being displayed. This works but I am receiving a string with characters that I don’t require. I am only really looking for the numbers and not the text.

example:

Whats I am getting - S S 31.1g

What I would like - 31.1

I have looked at transform I but couldn’t see anyway to do this, any advice?

Thanks

You can most likely edit what the nature of the message is at device level through print settings. If that doesn’t work. You could get the expected output with a script. The S is maybe stable? This was my experience integrating Ohaus scales.

thanks Wking. the setting on the scales seem quiet basic and couldn't see any print settings to adjust.

After multiple searches I came across the below link and managed to create and expression tag based on the OPC tag. Not sure if it is the best solution, but it works!