close
close
close
close
Your writing is not clear and you haven't asked a question.
- What are the settings for Scale Mode, Raw Low, Raw High, Scaled Low, Scaled High and Clamp Mode?
- In your sample code you are reading the tag before you write to it. Why?
- Are you aware that there is a
writeBlocking
function which will wait until the write is complete before the code execution continues. It might save you some problems later.
Is there a specific reason that Scale Mode is set to Linear? It seems like turning it to Off would fix your issue.
You don't. Tag scaling is intentionally transparent to the rest of the system, because it's usually the desired behavior.
If you want more control, consider turning off tag scaling and creating a derived tag.
I am trying to scale the model by showing the actual values in the summation. But now it seems that it must be implemented with two tags, one actual value, one reference and then scaled
If you need to work with both the actual and the scaled values, how did you think it should work in just one tag? If you don't need the unscaled value anywhere in Ignition, then tag scaling is the right answer.
Works well under OPC tag and manual input values
-
[PLC] OPC Tag: write value 100 => Tag Value 100 => Display value 10
-
[Manual] Memory Tag: write value 100 => Tag Value 100 => Display value 10
-
[Script] Memory Tag: write value 100 => Tag Value 1000 => Display value 100
Not exactly sure what you’re trying to show, but it would seem to me that you’re doing something incorrectly in the script.