Loading…
Loading…
方法名称: Linearization_Table_Size
方法ID: 0x4109
方法标签: Linearisation Table
方法描述: The number of value pairs for linearisation needs to be specified and the values have to be entered here. Can increase accuracy via on-site calibration.
- {
- long ids[2];
- long l_tempd;
- long tempe;
- long table_temp;
- long table_temp2;
- int n;
- int choice;
- int l_Table_index;
- int l_number_of_entries;
- int l_entries_remain;
- int l_count_read_write;
- int l_point_number;
- int l_Last_two_bytes_flag;
- int l_current_entries_read;
- int i;
- int l_flag;
- int l_p1;
- int l_p2;
- int l_toExit;
- int l_Edit_point_number;
- int l_local_validity;
- float lf_length_conversion_Factor;
- float lf_level[50];
- float lf_volume[50];
- float lf_Olevel;
- float lf_Ovol;
- float f_outl2;
- float f_outv2;
- char status[3];
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_resp_code(32,1);
- l_current_entries_read = 0;
- l_count_read_write = 0;
- l_Table_index = 0;
- l_Last_two_bytes_flag = 0;
- l_flag = 0;
- PUT_MESSAGE(literal_string(653));
- _iassign(16569,0x01);
- _iassign(16592,0x085C);
- send_command_trans(142,0);
- if (status[0])
- {
- display_response_status(142,status[0]);
- process_abort();
- }
- l_number_of_entries = _ivar_value(16480);
- l_entries_remain = l_number_of_entries;
- while (l_entries_remain > 0)
- {
- _iassign(16570,l_count_read_write + 1);
- if (l_entries_remain > 7 + l_flag)
- {
- send_command_trans(142,9);
- l_entries_remain = l_entries_remain - 7 - l_flag;
- l_flag = 1;
- l_Last_two_bytes_flag = 1;
- l_current_entries_read = 7;
- }
- else
- {
- send_command_trans(142,l_entries_remain + (1 - l_flag));
- l_current_entries_read = l_entries_remain;
- l_entries_remain = 0;
- if (l_flag == 1)
- l_current_entries_read--;
- }
请登录以获得完整内容