 |
ALPHA-VISION® API-Interface to Technology program: FC154
|
FC154
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
- wSts (INT)
- Status
PARAMETERS (OUT)
- bOk (BOOL)
- 1=okay, 0=Error
PARAMETERS (IN_OUT)
DESCRIPTION
SetSts() - Set Status
The value <wSts> is written to the S7-Address specified by the
process connection of the object referenced by <obj>.
Originally the function was designed for the object type PO=Process
Object.
For compatibility reasons to existing S7-Technology Programs the function
is kept. Instead of POs it now is written to PV-Objects of the type
BIT/BYTE/WORD.
- For Measuring Points <bOK=0> is returned (Error).
Description of the Output Parameters
| Object/Signal Address |
bOk |
Remark |
| MP |
0 |
- |
| PV (DBX) |
1 |
Bit is reset for
wSts=0, otherwise it is set.
|
| PV (DBB) |
1 |
"wSts" is cut to the Byte-Area |
| PV (DBW) |
1 |
"wSts" is cut to the Byte-Area |
| PV (DBD, int) |
0 |
- |
| 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.