This commit is contained in:
2025-04-26 10:02:53 +08:00
parent 2f80b50e0b
commit 55c9e1c216
6 changed files with 88 additions and 16 deletions

View File

@@ -2285,7 +2285,7 @@ namespace CapMachine.Wpf.Services
/// <returns></returns>
public bool SysReset()
{
return true;
//return true;
//取消XXX
var FindData = ListHandSwitchData.Where(a => a.Name == "复位");
@@ -2310,7 +2310,7 @@ namespace CapMachine.Wpf.Services
/// <returns></returns>
public bool SysMute()
{
return true;
//return true;
//取消XXX
var FindData = ListHandSwitchData.Where(a => a.Name == "消音");
@@ -2336,18 +2336,18 @@ namespace CapMachine.Wpf.Services
/// <returns></returns>
public bool SysStart()
{
return true;
//return true;
//取消XXX
//var Result = SiemensDrive.Write("M0.4", true);
//if (Result.IsSuccess)
//{
// return true;
//}
//else
//{
// return false;
//}
var Result = SiemensDrive.Write("M0.4", true);
if (Result.IsSuccess)
{
return true;
}
else
{
return false;
}
}
@@ -2357,7 +2357,7 @@ namespace CapMachine.Wpf.Services
/// <returns></returns>
public bool SysEnd()
{
return true;
//return true;
//取消XXX
var Result = SiemensDrive.Write("M0.7", true);
@@ -2379,7 +2379,7 @@ namespace CapMachine.Wpf.Services
/// <returns></returns>
public bool SysPause()
{
return true;
//return true;
//取消XXX
var StateResult = SiemensDrive.ReadBool("M0.6");