Added Files
This commit is contained in:
34
PepLib.Core/Codes/SetKerf.cs
Normal file
34
PepLib.Core/Codes/SetKerf.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
namespace PepLib.Codes
|
||||
{
|
||||
public class SetKerf : ICode
|
||||
{
|
||||
public SetKerf(KerfType kerf = KerfType.Left)
|
||||
{
|
||||
Kerf = kerf;
|
||||
}
|
||||
|
||||
public KerfType Kerf { get; set; }
|
||||
|
||||
public CodeType CodeType()
|
||||
{
|
||||
return Codes.CodeType.SetKerf;
|
||||
}
|
||||
|
||||
public ICode Clone()
|
||||
{
|
||||
return new SetKerf(Kerf);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
if (Kerf == KerfType.None)
|
||||
return "G40";
|
||||
|
||||
if (Kerf == KerfType.Left)
|
||||
return "G41";
|
||||
|
||||
return "G42";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user