dictionary:unitinformation:futurevalue
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
dictionary:unitinformation:futurevalue [2023/02/13 14:52] – created - external edit 127.0.0.1 | dictionary:unitinformation:futurevalue [2023/05/20 15:10] – added enumerated value info James Sentman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====Future Value==== | + | =====Future Value===== |
In the ON and OFF script of a unit a call to the [[valueof|value]] verb will return the current value of the unit, not the new value being set. In order to see what the future value of the unit will be you need to use the Future Value verb. | In the ON and OFF script of a unit a call to the [[valueof|value]] verb will return the current value of the unit, not the new value being set. In order to see what the future value of the unit will be you need to use the Future Value verb. | ||
- | ===Usage: | + | ====Usage:==== |
**future value**\\ | **future value**\\ | ||
returns a real number that will be the value of unit after the new command is received. | returns a real number that will be the value of unit after the new command is received. | ||
- | ===Notes: | + | < |
+ | if (future value) > 300 then | ||
+ | write log “Error in reading, setting to current value” color red | ||
+ | | ||
+ | else | ||
+ | write log “Reading Appears Valid, continue" | ||
+ | end if | ||
+ | </ | ||
+ | |||
+ | ====Using with Enumerated Values: | ||
+ | |||
+ | For Units with Enumerated Values you can use the optional “for” parameter to the [[dictionary: | ||
+ | |||
+ | < | ||
+ | write log “new enumerated value will be “ & (enumerated value for (futureValue)) | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====Notes:==== | ||
see also: [[changefuturevalue|change future value]] | see also: [[changefuturevalue|change future value]] |
dictionary/unitinformation/futurevalue.txt · Last modified: 2023/05/20 15:11 by James Sentman