 |
ALPHA-VISION® API-Interface to Technology program: FC153
|
FC153
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)
- iVal (DINT)
- Measuring value as 32bit-Integer
- rVal (REAL)
- Measuring value as 32bit-Real digit
- bVal (BOOL)
- Measuring value as 0/1-Signal
PARAMETERS (IN_OUT)
DESCRIPTION
GetValue() - Reads actual Measuring Value
Returns the value of the object referenced by <obj>.
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.
- Der value/string length is returned as <DINT/REAL/BOOL>.
Internally the value of MPs are stored as real digit, that also applies
for PVs of the format <REAL>. The return values of
<bVal> and <iVal> are calculated from the REAL-Value.
- <bVal> is 'false' for <rVal=0.0>, apart from that
it is always 'true'.
- <iVal> is the integer part of <rVal>.
For PV-Objects of the formats <BIT/BYTE/WORD/DWORD> the value is
stored as a INTEGER internally. The return value <bVal> and
<rVal> are calculated from the INTEGER-Value.
- <bVal> is 'false' for <iVal=0>, apart from that
it is always 'true'.
- <rVal> is the to REAL converted INTEGER value
<iVal>.
Description of the Output Parameters
| Object/Signal Address |
bVal |
iVal |
rVal |
| Bin-MP (A) |
true/false |
1/0 |
1.0/0.0 |
| Bin-MP (DBX) |
true/false |
1/0 |
1.0/0.0 |
| Bin-MP (E) |
true/false |
1/0 |
1.0/0.0 |
| Ana-MP (PEW) |
true/false |
L#-2147483648 bis L##2147483647
|
-3.402823e+38 bis +3.402823e+38
|
| Ana-MP (PAW) |
true/false |
L#-2147483648 bis L##2147483647
|
-3.402823e+38 bis +3.402823e+38
|
| Ana-MP (DBD) |
true/false |
L#-2147483648 bis L##2147483647
|
-3.402823e+38 bis +3.402823e+38
|
| Ana-MP (DBW) |
true/false |
L#-2147483648 bis L##2147483647
|
-3.402823e+38 bis +3.402823e+38
|
| PV (DBX) |
true/false |
1/0 |
1.0/0.0 |
| PV (DBB) |
true/false |
0 ... 255 |
0.0 ... 255.0 |
| PV (DBW) |
true/false |
0 ... 65535 |
0.0 ... 65535.0 |
| PV (DBD, int) |
true/false |
L#-2147483648 bis L##2147483647
|
-2.147e+009 bis +2.147e+009
|
| PV (DBD, real) |
true/false |
L#-2147483648 bis L##2147483647
|
-3.402823e+38 bis +3.402823e+38
|
| PV (DBW, string) |
true/false |
0 ... 65535 |
0.0 ... 65535.0 |
On the next object processing the Measuring Value of the object is
calculated new on base of the modified Input Signal.