|
@@ -96,11 +96,11 @@ namespace PLCTool.ViewModels.BusinessManageViewModel
|
|
|
/// </summary>
|
|
|
private async void Reset()
|
|
|
{
|
|
|
- PLCCom.GetInstance().WritePlcCIOObject("1.00", VarType.Bit, "0");
|
|
|
+ PLCCom.GetInstance().ResetPLC("1.00", VarType.Bit, "0");
|
|
|
await Task.Delay(1000);
|
|
|
- PLCCom.GetInstance().WritePlcCIOObject("1.00", VarType.Bit, "1");
|
|
|
+ PLCCom.GetInstance().ResetPLC("1.00", VarType.Bit, "1");
|
|
|
await Task.Delay(1000);
|
|
|
- bool isResult=PLCCom.GetInstance().WritePlcCIOObject("1.00", VarType.Bit, "0");
|
|
|
+ bool isResult=PLCCom.GetInstance().ResetPLC("1.00", VarType.Bit, "0");
|
|
|
if(isResult)
|
|
|
{
|
|
|
MessageBox.Show("复位成功!", "确认", MessageBoxButton.OK, MessageBoxImage.Information);
|