Issue
What is the difference between a Numeric Input, Numeric Output and Numeric Public within a script program.
Is using a Numeric Public a less efficient choice (as opposed to using a Numeric Input or Numeric Output) that will generate negative overhead in the AS?
Product Line
EcoStruxure Building Operation
Environment
- Building Operation Automation Server (AS, AS-P or AS-B)
- Building Operation Workstation
- b3 and Infinet controllers
Cause
Want to determine best practices when choosing numeric types during script programming.
Resolution
- Numeric Input is a read only numeric (from the point of view of the script program) that accepts a binding.
- Numeric Output is a write only numeric (from the point of view of the script program) that accepts a binding.
- Numeric Public is both read and write (from the point of view of the script program). Numeric Public also accepts a binding.
(A Numeric Public can be bound to both a Graphic and a Value Object to allow overriding of values from a Graphic. See SBO Script Public.zip for an example)
When choosing the numeric type in a script program there is no overhead cost difference between using one of these numeric types vs the others.
Also check out the Script Programming - Writing the Script Program Quick-Help video on the Exchange.
NOTE b3 and Infinet Controller scripts do not support "Numeric Public", but "Numeric Output", in these controller scripts, can be used in a similar way to "Numeric Public" The Bound value is read by the script as well as being written to.