 |
ALPHA-VISION® API-Interface to Technology program: FC168
|
FC168
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 INTEGER
(DINT)
- bOk (BOOL)
- 1=okay, 0=error
PARAMETERS (IN_OUT)
DESCRIPTION
GetValueI_ex() - Reads aktual measuring value in the format
<DINT>.
Returns the value of the object referenced by <obj> in the
format <DINT>.
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.
- The measuring value is returned as <DINT>.
- 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 values of <iVal>
are calculated from the REAL-Value.
Description of the Output Parameters
| Object/Signal Address |
bOk |
iVal |
| Bin-MP (A) |
1 |
1/0 |
| Bin-MP (DBX) |
1 |
1/0 |
| Bin-MP (E) |
1 |
1/0 |
| Ana-MP (PEW) |
1 |
L#-2147483648 to L##2147483647
|
| Ana-MP (PAW) |
1 |
L#-2147483648 to L##2147483647
|
| Ana-MP (DBD) |
1 |
L#-2147483648 to L##2147483647
|
| Ana-MP (DBW) |
1 |
L#-2147483648 to L##2147483647
|
| PV (DBX) |
1 |
1/0 |
| PV (DBB) |
1 |
0 ... 255 |
| PV (DBW) |
1 |
0 ... 65535 |
| PV (DBD, int) |
1 |
L#-2147483648 to L##2147483647
|
| PV (DBD, real) |
1 |
L#-2147483648 to L##2147483647
|
| PV (DBW, string) |
1 |
0 ... 65535 |
On the next object processing the Measuring Value of the object is
calculated new on base of the modified Input Signal.