Loading…
Loading…
Method Name: meth_configure_i_o
Method ID: 0x48BE
Method Label: Inputs/Outputs
Method Help:
- {
- char status[3];
- long select;
- long step;
- long step1;
- long step2;
- long step3;
- long step4;
- long temp;
- char disp_string[100];
- char disp_string1[100];
- int slen;
- int retry_1;
- int slen1;
- int choice;
- int fault_setup_index;
- int index_no;
- float floatFreqVal;
- float floatRateVal;
- float floatPulsesPerUnit;
- float floatUnitsPerPulse;
- int ScalingMethodChoice;
- retry_1 = 0;
- select = 0;
- step = 0;
- step4 = 0;
- slen = 100;
- slen1 = 100;
- fault_setup_index = 0;
- index_no = 0;
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _iassign(17338,1);
- _iassign(17339,237);
- send(162,status);
- if (varMODBUS_Data_Type_Code == 1 && varCoil_Value == 0x01)
- {
- ACKNOWLEDGE(literal_string(1078));
- process_abort();
- }
- ACKNOWLEDGE(literal_string(1121));
- _get_dictionary_string(858981312,disp_string,slen);
- _MenuDisplay(18597,disp_string,literal_string(1119));
- if (select = 0)
- {
- step--;
- }
- if (select = 1)
- {
- step++;
- }
- {
- send(51,status);
- if (status[0])
- {
- display_response_status(51,status[0]);
- _get_dictionary_string(858587163,disp_string,slen);
- DELAY(2,disp_string);
- process_abort();
- }
- }
- send(50,status);
- DELAY(2,literal_string(1197));
- step = 0;
- do {
- switch (step)
- {
- case 0:
- send(15,status);
- if (status[0])
- {
- display_response_status(15,status[0]);
- _get_dictionary_string(858587163,disp_string,slen);
- DELAY(2,disp_string);
- process_abort();
- }
- send(63,status);
- if (status[0])
- {
- display_response_status(63,status[0]);
- _get_dictionary_string(858587163,disp_string,slen);
- DELAY(2,disp_string);
- process_abort();
- }
- send(195,status);
- if (status[0])
- {
- display_response_status(195,status[0]);
- _get_dictionary_string(858587163,disp_string,slen);
- DELAY(2,disp_string);
- process_abort();
- }
- if (_ivar_value(4048) == 22 || _ivar_value(4048) == 32 || _ivar_value(4048) == 47 || _ivar_value(4048) == 53 || _ivar_value(4048) == 56)
- {
- _get_dictionary_string(858981312,disp_string,slen);
- temp = _MenuDisplay(18576,disp_string,literal_string(1119));
- step++;
- }
- else
- {
- if (_ivar_value(4048) == 1 || _ivar_value(4048) == 3 || _ivar_value(4048) == 15 || _ivar_value(4048) == 19 || _ivar_value(4048) == 20 || _ivar_value(4048) == 21 || _ivar_value(4048) == 55)
- {
- _get_dictionary_string(858981312,disp_string,slen);
- temp = _MenuDisplay(18577,disp_string,literal_string(1119));
- step++;
- }
- else
- {
- _get_dictionary_string(858981312,disp_string,slen);
- temp = _MenuDisplay(18578,disp_string,literal_string(1119));
- step++;
- }
- }
Please login for more