Loading…
Loading…
Method Name: meth_setup_mA_output_1
Method ID: 0x488F
Method Label: mA Outputs
Method Help:
- {
- char status[3];
- long select;
- long primary_var[1];
- long sec_var[1];
- long step;
- long step1;
- long temp;
- char disp_string[100];
- int slen;
- int value;
- int choice;
- select = 0;
- step = 0;
- slen = 100;
- step1 = 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();
- }
- send(50,status);
- ACKNOWLEDGE(literal_string(1121));
- value = _ivar_value(4048);
- dev_var_1 = value;
- primary_var[0] = 20064;
- _get_dev_var_value(literal_string(1172),primary_var,20065);
- if (_ivar_value(20065) != 111)
- {
- _iassign(4048,dev_var);
- }
- 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(136,status);
- if (status[0])
- {
- display_response_status(136,status[0]);
- _get_dictionary_string(858587163,disp_string,slen);
- DELAY(2,disp_string);
- process_abort();
- }
- _get_dictionary_string(858981294,disp_string,slen);
- DELAY(2,disp_string);
- do {
Please login for more