Hello,
There is a caculated issue when doing the configuration:
Under Database, defined a userdefinedvariable.Temperature and added a calculation as following:
if("UserDefinedVariable.Temperature ">=32767,"UserDefinedVariable.Temperature"-65536,"UserDefinedVariable")
Transmission UserDefinedVariable.Temerpature <32767, can get the right UserDefinedVariable.Temerpature value;
When transmissing UserDefinedVariable.Temperature>=32767. take 45536 as an example ,
can get 45536-65536 = -20000; but sometimes, this value can be replaced by 65536 shortly .
What's the reason?
If anything is unclear, please feel free to let me know.
Thank you.
TERRY
Calculated Issues
- twang
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: Calculated Issues
Hello Terry,
I have a few questions:
How do you run this calculation event?
Do you use a state machine with a timer or fire on change?
Is this a calculation event of the variable "UserDefinedVariable.Temperature"?
Is the calculation event checking the variable's own value to re-calculate itself?
Do you have a variable called "UserDefinedVariable"?
It appears to be referenced in the else part of the if fucntion.
Thank you,
ksaenz
I have a few questions:
How do you run this calculation event?
Do you use a state machine with a timer or fire on change?
Is this a calculation event of the variable "UserDefinedVariable.Temperature"?
Is the calculation event checking the variable's own value to re-calculate itself?
Do you have a variable called "UserDefinedVariable"?
It appears to be referenced in the else part of the if fucntion.
Thank you,
ksaenz