Loading…
Loading…
Method Name: select_unit
Method ID: 0x4037
Method Label: Process unit
Method Help: Field Device Variable Unit- Engineering unit to be displayed with the Digital Value representation, Minimum Span, Upper Range Value, Lower Range Value, Lower Sensor Limit, and Upper Sensor Limit
- {
- int old_unit;
- int counter;
- int unit;
- int mail;
- float _fvalue;
- float _upper;
- float _lower;
- char status[3];
- mail = 0;
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- old_unit = _ivar_value(resolve_record_ref(resolve_array_ref(172,1),190));
- if (_get_dev_var_value(literal_string(388),0,resolve_record_ref(resolve_array_ref(172,1),190)) == 0)
- {
- unit = _ivar_value(resolve_record_ref(resolve_array_ref(172,1),190));
- if (old_unit != unit && (!(old_unit == 32 || old_unit == 33 || old_unit == 34 || old_unit == 35) || !(unit == 32 || unit == 33 || unit == 34 || unit == 35)))
- {
- ACKNOWLEDGE(literal_string(368));
Please login for more