publish aicam server.
This commit is contained in:
parent
cf1d995d28
commit
a7c363254b
@ -43,7 +43,7 @@ namespace Sample.Machining
|
|||||||
};
|
};
|
||||||
Console.WriteLine($"Set machining step event.");
|
Console.WriteLine($"Set machining step event.");
|
||||||
//show MRR.
|
//show MRR.
|
||||||
machiningProject.ShellApi.MachiningStepBuilt += (preStep, curStep) =>
|
machiningProject.RuntimeController.MachiningStepBuilt += (preStep, curStep) =>
|
||||||
{
|
{
|
||||||
var sourceCommand = curStep.SourceCommand;
|
var sourceCommand = curStep.SourceCommand;
|
||||||
if (curStep.Mrr_mm3ds > 500) //show only the step that contains large MRR.
|
if (curStep.Mrr_mm3ds > 500) //show only the step that contains large MRR.
|
||||||
@ -57,13 +57,13 @@ namespace Sample.Machining
|
|||||||
|
|
||||||
Console.WriteLine($"Session begin.");
|
Console.WriteLine($"Session begin.");
|
||||||
machiningProject.BeginSession();
|
machiningProject.BeginSession();
|
||||||
machiningProject.ShellApi.MachiningResolution_mm = 1;
|
machiningProject.RuntimeController.MachiningResolution_mm = 1;
|
||||||
machiningProject.ShellApi.EnableCollisionDetection = true;
|
machiningProject.RuntimeController.EnableCollisionDetection = true;
|
||||||
machiningProject.ShellApi.EnablePauseOnCollision = false;
|
machiningProject.RuntimeController.EnablePauseOnFailure = false;
|
||||||
machiningProject.ShellApi.EnableMillingForceEvaluation = false;
|
machiningProject.RuntimeController.EnablePhysics = false;
|
||||||
//the path from Shell-API is relative by project directory.
|
//the path from Shell-API is relative by project directory.
|
||||||
machiningProject.ShellApi.PlayNcFile("NC/side.ptp");
|
machiningProject.RuntimeController.PlayNcFile("NC/side.ptp");
|
||||||
machiningProject.ShellApi.PlayNcFile("NC/circle.ptp");
|
machiningProject.RuntimeController.PlayNcFile("NC/circle.ptp");
|
||||||
machiningProject.EndSession();
|
machiningProject.EndSession();
|
||||||
Console.WriteLine($"Session end.");
|
Console.WriteLine($"Session end.");
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user