Loading…

方法名称: alarm_lower_value

方法ID: 0x4063

方法标签: Low alarm

方法描述: Low limit of the flow rate, at which an alarm is generated, can be set as % value of the span flow rate of the set maximum range. Low alarm values for flow rate can be set within the range of -10% to 110% (percentage to Range 1) in increments of 0.1%.


  • {
  • long ids[2];
  • int alarm_lower_value10;
  • float alarm_lower_value11;
  • int alarm_lower_value20;
  • float alarm_lower_value21;
  • char status[3];
  • send(135,status);
  • do {
  • alarm_lower_value10 = _ivar_value(resolve_record_ref(16598,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(509),ids,literal_string(510));
  • alarm_lower_value20 = alarm_lower_value21 * 10;


请登录以获得完整内容