Loading…
Loading…
方法名称: alarm_upper_value
方法ID: 0x4062
方法标签: High alarm
方法描述: High alarm value- Flow-rate high limit alarm value.
- {
- long ids[2];
- int alarm_upper_value10;
- float alarm_upper_value11;
- int alarm_upper_value20;
- float alarm_upper_value21;
- char status[3];
- send(133,status);
- do {
- alarm_upper_value10 = _ivar_value(resolve_record_ref(resolve_array_ref(172,1),16454));
- alarm_upper_value10 = (alarm_upper_value10 & 0xff00) / 0x0100 | (alarm_upper_value10 & 0x00ff) * 0x0100;
- alarm_upper_value21 = alarm_upper_value11 = (alarm_upper_value10 >> 8 & 0x00ff | alarm_upper_value10 << 8 & 0xff00) / 10.0;
- if (alarm_upper_value11 > 3276)
- {
- alarm_upper_value10 = alarm_upper_value10 - 0x0100;
- alarm_upper_value10 = alarm_upper_value10 ^ 0xffff;
- alarm_upper_value21 = alarm_upper_value11 = -(alarm_upper_value10 >> 8 & 0x00ff | alarm_upper_value10 << 8 & 0xff00) / 10.0;
- }
- _get_local_var_value(literal_string(466),ids,literal_string(467));
- alarm_upper_value20 = alarm_upper_value21 * 10;
请登录以获得完整内容