 |
ALPHA-VISION® API-Interface to Technology program: FC170
|
FC170
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)
- Measuring value as
0/1-Signal
- bOk (BOOL)
- 1=okay, 0=error
PARAMETERS (IN_OUT)
DESCRIPTION
GetValueB_ex() - Reads the actual measuring value in the format
<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 measuring value <obj.val> is returned.
- For PV-Objects of the types <Bit/Byte/Word/Dword/Real>
the measuring 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>.
- In case of an error <bOk=0> is returned.
- Possible error: Invalid Object Number.
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 |
bOk |
bVal |
| Bin-MP (A) |
1 |
true/false |
| Bin-MP (DBX) |
1 |
true/false |
| Bin-MP (E) |
1 |
true/false |
| Ana-MP (PEW) |
1 |
true/false |
| Ana-MP (PAW) |
1 |
true/false |
| Ana-MP (DBD) |
1 |
true/false |
| Ana-MP (DBW) |
1 |
true/false |
| PV (DBX) |
1 |
true/false |
| PV (DBB) |
1 |
true/false |
| PV (DBW) |
1 |
true/false |
| PV (DBD, int) |
1 |
true/false |
| PV (DBD, real) |
1 |
true/false |
| PV (DBW, string) |
1 |
true/false |
On the next object processing the Measuring Value of the object is
calculated new on base of the modified Input Signal.