refactor(demos): use MachiningStep.EndTimecode instead of obsolete AccumulatedTime

DemoSessionMessage console output and the step-present default key list switch off the [Obsolete] AccumulatedTime alias.
This commit is contained in:
iamboss 2026-06-27 19:16:45 +08:00
parent 0fdba701fa
commit 7a4d0d7999
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ public static class DemoSessionMessage
string[] machineCoordinateValueTexts = GetMachineCoordinateValueTexts(step, machiningChain);
var machineCoordinatesText = string.Join("; ", Enumerable.Range(0, machiningChain.McCodes.Length)
.Select(i => $"MC.{machiningChain.McCodes[i]}: {machineCoordinateValueTexts[i]}"));
Console.Write($"Time: {step.AccumulatedTime:G}; MRR = {step.Mrr_mm3ds.ToString(mrrFormat)} {mrrUnit}; Torque = {step.AvgAbsTorque_Nm?.ToString(torqueFormat)} {torqueUnit}; {machineCoordinatesText}; ");
Console.Write($"Time: {step.EndTimecode:G}; MRR = {step.Mrr_mm3ds.ToString(mrrFormat)} {mrrUnit}; Torque = {step.AvgAbsTorque_Nm?.ToString(torqueFormat)} {torqueUnit}; {machineCoordinatesText}; ");
var nc_ = sessionMessageHost.GetSourceCommand(sessionMessage);
Console.WriteLine($"Message/NC: {nc_.Line}; File: {nc_.FilePath}; LineNo: {nc_.GetLineNo()}");
}

View File

@ -142,7 +142,7 @@ public class UserConfig : IMakeXmlSource
public List<string> DisplayedStepPresentKeyList { get; set; } = new List<string>([
nameof(MachiningStep.StepIndex),
nameof(MachiningStep.FileNo), nameof(MachiningStep.LineNo),
nameof(MachiningStep.FilePath),nameof(MachiningStep.AccumulatedTime),
nameof(MachiningStep.FilePath),nameof(MachiningStep.EndTimecode),
nameof(MachiningStep.LineText),nameof(MachiningStep.FlagsText),
nameof(MachiningStep.ToolId),
nameof(MachiningStep.SpindleSpeed_rpm),nameof(MachiningStep.Feedrate_mmdmin),