Loading…
Loading…
Method Name: write_alarm_severity_meth_new
Method ID: 0x4DA8
Method Label: Change Alert Severity
Method Help: Allows the user to change the severity level of an alarm. The alarms are represented by their alarm number. For example, A26 is 26 and A102 is 102.
- {
- char status[3];
- long var_id[1];
- char disp_string[100];
- int slen;
- int choice;
- int alarmNum;
- slen = 100;
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _iassign(17338,1);
- _iassign(17339,237);
- send(162,status);
- if (varMODBUS_Data_Type_Code == 1 && varCoil_Value == 0x01)
- {
- ACKNOWLEDGE(literal_string(1078));
- process_abort();
- }
- _get_dev_var_value(literal_string(1160),0,19881);
- alarmNum = _ivar_value(19881);
Please login for more