 |
ALPHA-VISION® API-Interface to Technology program: FC155
|
FC155
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
- iVal (DINT)
- Process Value
PARAMETERS (OUT)
- bOk (BOOL)
- Status (1=okay, 0=Error)
PARAMETERS (IN_OUT)
DESCRIPTION
SetValInt() - Writes input/output signal of the Typ <DINT>
The value <iVal> 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...>, <A> 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) |
1 |
Bit is set for iVal=1, otherwise it is reset |
| Bin-MP (DBX) |
1 |
Bit is set for iVal=1, otherwise it is reset |
| Bin-MP (E) |
0 |
- |
| Ana-MP (PEW) |
0 |
- |
| Ana-MP (PAW) |
1 |
"iVal" is converted to raw value using lineare standardization. |
| Ana-MP (DBD) |
0 |
- |
| Ana-MP (DBW) |
1 |
- |
| PV (DBX) |
1 |
Bit is reset for iVal=0, otherwise it is set |
| PV (DBB) |
1 |
"iVal" is cut to the Byte-Area |
| PV (DBW) |
1 |
"iVal" is cut to the Word-Area |
| PV (DBD, int) |
1 |
- |
| PV (DBD, real) |
0 |
- |
| 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.