Loading…
Loading…
方法名称: write_discrete_assignment_meth
方法ID: 0x4293
方法标签: Assign Discrete Action
方法描述: Assigns a discrete to an action. Select none for no discrete assignment.
- {
- char status[3];
- int actionChoice;
- int assignChoice;
- char disp_string[400];
- char disp_string1[400];
- int slen;
- int slen1;
- slen1 = 400;
- slen = 400;
- _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();
请登录以获得完整内容