Loading…

Method Name: LF600_alarm_set

Method ID: 0x4125

Method Label: Alarm set1

Method Help: Setting of high alarm or low alarm, empty alarm


  • {
  • int result;
  • int alarm_set1;
  • int alarm_upper;
  • int alarm_lower;
  • int alarm_empty;
  • int alarm_empty_level;
  • char status[3];
  • send(135,status);
  • alarm_set1 = _ivar_value(resolve_record_ref(16598,16453));
  • alarm_empty_level = _ivar_value(resolve_record_ref(16598,16567));
  • do {
  • switch (alarm_set1)
  • {
  • case 0:
  • {
  • alarm_upper = 0;
  • alarm_lower = 0;
  • alarm_empty = 0;
  • break;
  • }
  • case 2:
  • {
  • alarm_upper = 1;
  • alarm_lower = 0;
  • alarm_empty = 0;
  • break;
  • }
  • case 4:
  • {
  • alarm_upper = 0;
  • alarm_lower = 1;
  • alarm_empty = 0;
  • break;
  • }
  • case 6:
  • {
  • alarm_upper = 1;
  • alarm_lower = 1;
  • alarm_empty = 0;
  • break;
  • }


Please login for more