Loading…
Loading…
Method Name: method_input_table_modify_one_point
Method ID: 0x4338
Method Label: Modify One Point
Method Help:
- {
- int pointIdx;
- char cmd_status[3];
- int OperationStatus;
- float ValuePreviousPointLev;
- float ValuePreviousPointConv;
- float ValueNextPointLev;
- float ValueNextPointConv;
- float ValueToTestLev;
- float ValueToTestConv;
- int localEditedPoint;
- _set_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- OperationStatus = 0;
- localEditedPoint = 1;
- _get_local_var_value(literal_string(1161),0,literal_string(1162));
- if (localEditedPoint > _ivar_value(16441) || localEditedPoint == 0)
- {
- ACKNOWLEDGE(literal_string(1163));
- return;
- }
- pointIdx = localEditedPoint - 1;
- if (pointIdx == 0)
- {
- _get_dev_var_value(literal_string(1164),0,16572);
- _get_dev_var_value(literal_string(1165),0,16573);
- ValuePreviousPointLev = 0.0;
- ValuePreviousPointConv = 0.0;
- ValueToTestLev = _fvar_value(16572);
- ValueToTestConv = _fvar_value(16573);
- ValueNextPointLev = _fvar_value(16574);
- ValueNextPointConv = _fvar_value(16575);
- }
- else
- {
- if (pointIdx == 1)
- {
- _get_dev_var_value(literal_string(1164),0,16574);
- _get_dev_var_value(literal_string(1165),0,16575);
- ValuePreviousPointLev = _fvar_value(16572);
- ValuePreviousPointConv = _fvar_value(16573);
- ValueToTestLev = _fvar_value(16574);
- ValueToTestConv = _fvar_value(16575);
- ValueNextPointLev = _fvar_value(16576);
- ValueNextPointConv = _fvar_value(16577);
- }
- else
- {
- if (pointIdx == 2)
- {
- _get_dev_var_value(literal_string(1164),0,16576);
- _get_dev_var_value(literal_string(1165),0,16577);
- ValuePreviousPointLev = _fvar_value(16574);
- ValuePreviousPointConv = _fvar_value(16575);
- ValueToTestLev = _fvar_value(16576);
- ValueToTestConv = _fvar_value(16577);
- ValueNextPointLev = _fvar_value(16578);
- ValueNextPointConv = _fvar_value(16579);
- }
- else
- {
- if (pointIdx == 3)
- {
- _get_dev_var_value(literal_string(1164),0,16578);
- _get_dev_var_value(literal_string(1165),0,16579);
- ValuePreviousPointLev = _fvar_value(16576);
- ValuePreviousPointConv = _fvar_value(16577);
- ValueToTestLev = _fvar_value(16578);
- ValueToTestConv = _fvar_value(16579);
- ValueNextPointLev = _fvar_value(16580);
- ValueNextPointConv = _fvar_value(16581);
- }
- else
- {
- if (pointIdx == 4)
- {
- _get_dev_var_value(literal_string(1164),0,16580);
- _get_dev_var_value(literal_string(1165),0,16581);
- ValuePreviousPointLev = _fvar_value(16578);
- ValuePreviousPointConv = _fvar_value(16579);
- ValueToTestLev = _fvar_value(16580);
- ValueToTestConv = _fvar_value(16581);
- ValueNextPointLev = _fvar_value(16582);
- ValueNextPointConv = _fvar_value(16583);
- }
- else
- {
- if (pointIdx == 5)
- {
- _get_dev_var_value(literal_string(1164),0,16582);
- _get_dev_var_value(literal_string(1165),0,16583);
- ValuePreviousPointLev = _fvar_value(16580);
- ValuePreviousPointConv = _fvar_value(16581);
- ValueToTestLev = _fvar_value(16582);
- ValueToTestConv = _fvar_value(16583);
- ValueNextPointLev = _fvar_value(16584);
- ValueNextPointConv = _fvar_value(16585);
- }
- else
- {
- if (pointIdx == 6)
- {
- _get_dev_var_value(literal_string(1164),0,16584);
- _get_dev_var_value(literal_string(1165),0,16585);
- ValuePreviousPointLev = _fvar_value(16582);
- ValuePreviousPointConv = _fvar_value(16583);
- ValueToTestLev = _fvar_value(16584);
- ValueToTestConv = _fvar_value(16585);
- ValueNextPointLev = _fvar_value(16586);
- ValueNextPointConv = _fvar_value(16587);
- }
- else
- {
- if (pointIdx == 7)
- {
- _get_dev_var_value(literal_string(1164),0,16586);
- _get_dev_var_value(literal_string(1165),0,16587);
- ValuePreviousPointLev = _fvar_value(16584);
- ValuePreviousPointConv = _fvar_value(16585);
- ValueToTestLev = _fvar_value(16586);
- ValueToTestConv = _fvar_value(16587);
- ValueNextPointLev = _fvar_value(16588);
- ValueNextPointConv = _fvar_value(16589);
- }
- else
- {
- if (pointIdx == 8)
- {
- _get_dev_var_value(literal_string(1164),0,16588);
- _get_dev_var_value(literal_string(1165),0,16589);
- ValuePreviousPointLev = _fvar_value(16586);
- ValuePreviousPointConv = _fvar_value(16587);
- ValueToTestLev = _fvar_value(16588);
- ValueToTestConv = _fvar_value(16589);
- ValueNextPointLev = _fvar_value(16590);
- ValueNextPointConv = _fvar_value(16591);
- }
- else
- {
- if (pointIdx == 9)
- {
- _get_dev_var_value(literal_string(1164),0,16590);
- _get_dev_var_value(literal_string(1165),0,16591);
- ValuePreviousPointLev = _fvar_value(16588);
- ValuePreviousPointConv = _fvar_value(16589);
- ValueToTestLev = _fvar_value(16590);
- ValueToTestConv = _fvar_value(16591);
- ValueNextPointLev = _fvar_value(16592);
- ValueNextPointConv = _fvar_value(16593);
- }
- else
- {
- if (pointIdx == 10)
- {
- _get_dev_var_value(literal_string(1164),0,16592);
- _get_dev_var_value(literal_string(1165),0,16593);
- ValuePreviousPointLev = _fvar_value(16590);
- ValuePreviousPointConv = _fvar_value(16591);
Please login for more