步骤下发更改

This commit is contained in:
2025-02-27 15:28:04 +08:00
parent b9bde07d6b
commit 9400b9e891
6 changed files with 319 additions and 33 deletions

View File

@@ -1592,23 +1592,23 @@ namespace CapMachine.Wpf.Services
if (ProRunChannelData.RunStepType == RunStepType.SlopCell)
{
SiemensDrive.Write("D1", (short)ProRunChannelData.SV);
Console.WriteLine($"【时间】{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff")} " +
$"【参数名称】:{ProRunChannelData.MeterName} " +
$"【程序Seg】{ProRunChannelData.ProSegName} " +
$"【程序步骤】{ProRunChannelData.MeterStep} " +
$"【斜坡打点步骤】{ProRunChannelData.SlopStepNo} " +
$"【斜坡打点值SV】{ProRunChannelData.SV} " +
$"【Msg】接受到仿真写入PLC OK ");
//Console.WriteLine($"【时间】{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff")} " +
// $"【参数名称】:{ProRunChannelData.MeterName} " +
// $"【程序Seg】{ProRunChannelData.ProSegName} " +
// $"【程序步骤】{ProRunChannelData.MeterStep} " +
// $"【斜坡打点步骤】{ProRunChannelData.SlopStepNo} " +
// $"【斜坡打点值SV】{ProRunChannelData.SV} " +
// $"【Msg】接受到仿真写入PLC OK ");
}
else
{
SiemensDrive.Write("D1", (short)ProRunChannelData.SV);
Console.WriteLine($"【时间】{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff")} " +
$"【参数名称】:{ProRunChannelData.MeterName} " +
$"【程序Seg】{ProRunChannelData.ProSegName} " +
$"【程序步骤】{ProRunChannelData.MeterStep} " +
$"【步骤SV】{ProRunChannelData.SV} " +
$"【Msg】接受到步骤仿真写入PLC OK ");
//Console.WriteLine($"【时间】{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff")} " +
// $"【参数名称】:{ProRunChannelData.MeterName} " +
// $"【程序Seg】{ProRunChannelData.ProSegName} " +
// $"【程序步骤】{ProRunChannelData.MeterStep} " +
// $"【步骤SV】{ProRunChannelData.SV} " +
// $"【Msg】接受到步骤仿真写入PLC OK ");
}