Loading…
Loading…
Method Name: MthSimulateCurrentFrequencyOutputB
Method ID: 0x4276
Method Label: Simulation B
Method Help: Simulation of current/frequency output B (modular IO / Exi IO).
- {
- long ids[2];
- char cmd_status[3];
- _set_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- if (SELECT_FROM_LIST(literal_string(1951),literal_string(1950)) != 0)
- {
- SET_NUMBER_OF_RETRIES(3);
- _iassign(4189,3);
- save_values();
- _add_abort_method(17010);
- ids[0] = resolve_record_ref(resolve_record_ref(resolve_array_ref(172,_ivar_value(4189)),213),4070);
- ids[1] = resolve_record_ref(resolve_record_ref(resolve_array_ref(172,_ivar_value(4189)),213),193);
- while (1)
- {
- if (_ivar_value(16815) == 2)
- {
- _get_dev_var_value(literal_string(1955),0,17009);
- _fassign(resolve_record_ref(resolve_record_ref(resolve_array_ref(172,_ivar_value(4189)),213),193),_ivar_value(17009));
- _iassign(resolve_record_ref(resolve_record_ref(resolve_array_ref(172,_ivar_value(4189)),213),4070),38);
- }
Please login for more