 |
ALPHA-VISION® API-Interface to Technology program: FC166
|
FC166
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
- wMask (WORD)
- Bit Mask
PARAMETERS (OUT)
- wSts (INT)
- Status
- bOk (BOOL)
- 1=okay, 0=error
PARAMETERS (IN_OUT)
DESCRIPTION
GetSts_ex() - reads actual status
Returns the status of the object referenced by <obj>.
The actual status is ‘anded’ with <wMask> and returned by
<wSts> (wSts:=obj.sts&wMask).
The function is defined for Measuring Points (MP) only.
- For MP-Objects the status (obj.sts) is returned.
- For PV-Objects of the types Bit/Byte/Wort the value (obj.val)
is returned.
- In case of an error <bOk=0> and <wSts=0xffff>
is returned.
- Possible Errors:
- a) Invalid Object Number
- b) Wrong Object Type
Description of the Output Parameters
| Object/Signal Address |
bOk |
wSts |
| Bin-MP (A) |
1 |
Status |
| Bin-MP (DBX) |
1 |
Status |
| Bin-MP (E) |
1 |
Status |
| Ana-MP (PEW) |
1 |
Status |
| Ana-MP (PAW) |
1 |
Status |
| Ana-MP (DBD) |
1 |
Status |
| Ana-MP (DBW) |
1 |
Status |
| PV (DBX) |
1 |
0/1 |
| PV (DBB) |
1 |
0 ... 255 |
| PV (DBW) |
1 |
0 ... 65535 |
| PV (DBD, int) |
0 |
65535 |
| PV (DBD, real) |
0 |
65535 |
| PV (DBW, string) |
0 |
65535 |