USER MANUAL – Z-TWS4/Z-PASS2-S/S6001-RTU
180
19.1.4
GET_ALARMS
This FB retrieves all alarm records with the specified status from the DB;
the records are written as lines into the specified file.
INPUTS:
- STATUS : this parameter is handled as a "negative bitmask", meaning that this
FB will provide alarm records such that:
(alarms.stat & STATUS) = 0, where:
alarms.stat: DB field
STATUS: this parameter
- SEP_CHAR : the field separator to be used in the file lines; possible values:
" "|","|";"
- MAX_REC : the maximum number of records (lines) to be retrieved
- FILENAME : the file name, with absolute path
- @ENABLE: TRUE -> FB is executed
FALSE -> FB is skipped
the parameter is set to FALSE by the FB at the end of execution
OUTPUTS:
- RESULT: the FB result; possible values are:
0: FB still running
1: FB successfully executed
-1: FB execution failed
-2: FB execution timeout
- FIRST_ID : the id of the first record retrieved; this value shall be passed as
an argument to the SET_ALARMS_STAT FB
- LAST_ID : the id of the last record retrieved; this value shall be passed as
an argument to the SET_ALARMS_STAT FB
- REC_NUM : the number of records retrieved
Summary of Contents for S6001-RTU
Page 35: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 35 Then import the Library menu Tools Import...
Page 68: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 68...
Page 76: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 76...
Page 86: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 86...
Page 87: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 87...
Page 121: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 121...
Page 133: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 133...
Page 162: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 162 Select the mbus_shm csv file...