 |
ALPHA-VISION® API-Interface to Technology program: FC159
|
FC159
SUMMARY
The AbvSpu provides functions to read and write process attributes
(status, measuring value, alarm information) as well as to control
process parameters (limits, delay times, etc.).
PARAMETERS (IN)
- obj (INT)
- Object Number
PARAMETERS (OUT)
- bVal (BOOL)
- Value as 0/1-Signal
PARAMETERS (IN_OUT)
DESCRIPTION
GetValueB() - Reads the actual value in the <BOOL>.
Returns the value of the object referenced by <obj> in the
format <BOOL>.
The function is defined for Measuring Points (MP) and Process Variables (PV).
- For MP-Objects the value <obj.val> is returned.
- For PV-Objects of the types <Bit/Byte/Word/Dword/Real>
the value <obj.val> is returned.
- For PV-Objects of the type <String> the string length
<obj.strlen> is returned.
- The measuring/String length value is returned as <BOOL>.
Internally the value of MPs are stored as real digit, that also applies
for PVs of the format <REAL>. The return value of <bVal>
is calculated from the REAL-Value.
- <bVal> is 'false' for <rVal=0.0>, in any other
case it's always 'true'.
Internally the value of PVs with the format <BIT/BYTE/WORD/DWORD>
are stored as INTEGER. The return values of <bVal>
are calculated from the INTEGER-Value.
Description of the Output Parameters
| Object/Signal Address |
bVal |
| Bin-MP (A) |
true/false |
| Bin-MP (DBX) |
true/false |
| Bin-MP (E) |
true/false |
| Ana-MP (PEW) |
true/false |
| Ana-MP (PAW) |
true/false |
| Ana-MP (DBD) |
true/false |
| Ana-MP (DBW) |
true/false |
| PV (DBX) |
true/false |
| PV (DBB) |
true/false |
| PV (DBW) |
true/false |
| PV (DBD, int) |
true/false |
| PV (DBD, real) |
true/false |
| PV (DBW, string) |
true/false |
On the next object processing the Measuring Value of the object is
calculated new on base of the modified Input Signal.