Loading…

Method Name: alarm_lower_value

Method ID: 0x4063

Method Label: Low alarm

Method Help: Low alarm- Flow-rate low limit alarm value.


  • {
  • long ids[2];
  • int alarm_lower_value10;
  • float alarm_lower_value11;
  • int alarm_lower_value20;
  • float alarm_lower_value21;
  • char status[3];
  • send(133,status);
  • do {
  • alarm_lower_value10 = _ivar_value(resolve_record_ref(resolve_array_ref(172,1),16455));
  • alarm_lower_value10 = (alarm_lower_value10 & 0xff00) / 0x0100 | (alarm_lower_value10 & 0x00ff) * 0x0100;
  • alarm_lower_value21 = alarm_lower_value11 = (alarm_lower_value10 >> 8 & 0x00ff | alarm_lower_value10 << 8 & 0xff00) / 10.0;
  • if (alarm_lower_value11 > 3276)
  • {
  • alarm_lower_value10 = alarm_lower_value10 - 0x0100;
  • alarm_lower_value10 = alarm_lower_value10 ^ 0xffff;
  • alarm_lower_value21 = alarm_lower_value11 = -(alarm_lower_value10 >> 8 & 0x00ff | alarm_lower_value10 << 8 & 0xff00) / 10.0;
  • }
  • _get_local_var_value(literal_string(469),ids,literal_string(470));
  • alarm_lower_value20 = alarm_lower_value21 * 10;


Please login for more