 |
ALPHA-VISION® Functions: aci.Obj_SetVal
|
aci.Obj_SetVal
SUMMARY
Set the value of a data object as an application.
SYNTAX
aci.Obj_SetVal(
(<object number>|<point id>),
<value>)
ARGUMENTS
- object number (type:number)
-
A data object number
- point id (type:string)
-
The name of a data object
- value (type:number)
-
The new value.
ERROR HANDLING
The function will fail and terminate script execution if strict error checking is enabled (see
aci.SetStrictMode()) and
one of the following conditions is met:
-
The given data object does not exist.
-
The value cannot be set.
DESCRIPTION
The new value will not be directly written to the process image in
aci.dll
but it will be sent to the data object's station (e.g. a PLC) via the driver handling this station.
The station then sends the value to all operator stations.
EXAMPLES
aci.Obj_SetVal("TANKVOLUME", 1362.45)
Syntax Notation
- [aaa]
- aaa is optional (zero or one occurences)
- (aaa|bbb)
- aaa exclusive or bbb
- (aaa)*
- aaa may occur indefinitely often or may be omitted
- (aaa)+
- aaa may occur indefinitely often but at least once
- (aaa)m..n
- aaa may occur from m to n times