 |
ALPHA-VISION® API-Interface to Technology program: FC156
|
FC156
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
- rVal (REAL)
- Process Value
PARAMETERS (OUT)
- bOk (BOOL)
- Status (1=okay, 0=Error)
- bChanged (BOOL)
- Change ?
PARAMETERS (IN_OUT)
DESCRIPTION
SetValReal() - Writes input/output signal of the type <REAL>
The value <rVal> ; is written to the S7-Address specified by the
process connection of the object referenced by <obj>.
- The function is defined for Measuring Points (MP) and Process
Variables (PV).
- Function works only on Signal-Addresses of the types <DB...>
and <PAW>
- In case of an error <bOk=0> is returned.
- Possible Errors:
- a) Invalid Object Number
- b) illicitly signal address
Description of the Output Parameters
| Object/Signal Address |
bOk |
Remark |
| Bin-MP (A) |
0 |
- |
| Bin-MP (DBX) |
0 |
- |
| Bin-MP (E) |
0 |
- |
| Ana-MP (PEW) |
0 |
- |
| Ana-MP (PAW) |
1 |
"rVal" is converted to raw value using lineare standardization. |
| Ana-MP (DBD) |
1 |
- |
| Ana-MP (DBW) |
0 |
- |
| PV (DBX) |
0 |
- |
| PV (DBB) |
td>0 |
- |
| PV (DBW) |
td>0 |
- |
| PV (DBD, int) |
td>0 |
- |
| PV (DBD, real) |
1 |
- |
| PV (DBW, string) |
0 |
- |
On the next object processing the Measuring Value of the object is
calculated new on base of the modified Input Signal.