Loading…
Loading…
方法名称: ResetMessageStatsMethod
方法ID: 0x4209
方法标签: Reset Modbus Stats
方法描述: Clears all Modbus stats to zero.
- {
- char acStatus[3];
- char disp_string1[60];
- int wChoice;
- int slen1;
- slen1 = 60;
- _set_all_resp_code(0);
- _set_xmtr_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- iOneLowUnsignedIntegerIndexSC200 = 248;
- wChoice = SELECT_FROM_LIST("|en|Do you want to reset Modbus statistics?","|en|NO;YES" );
- if( wChoice == 0 )
- {
- DELAY( 2,"|en|Modbus statistics not reset, aborting." );
- process_abort();
- }
- wChoice = SELECT_FROM_LIST("|en|This will reset Modbus Statistics to zero. Proceed?","|en|NO;YES" );
- if( wChoice == 0 )
请登录以获得完整内容