Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I don't know about general purpose variable writing, but you should have a look at the forums. Already saw a post trying to get values from a file (like JSON does)
Hi,
Do someone have any simple idea how convert this string : 'temp=44.4$'C$N'
to real variable temp= 44.5 ?
I don't know about general purpose variable writing, but you should have a look at the forums. Already saw a post trying to get values from a file (like JSON does)
For specific purposes and few variables, you may do it in 2 steps.
1) Get the variable name and test if it match one expected
2) Convert the value to desired datatype https://help.codesys.com/webapp/_cds_operator_string_to;product=codesys;version=3.5.14.0