46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using AuroraMotor;
|
|
using PropertyTools.DataAnnotations;
|
|
|
|
namespace AuroraPLC
|
|
{
|
|
// AxisConfig 가 더 나을까?
|
|
public class PLCMotorBaseConfig : BaseConfig
|
|
{
|
|
//[Category("Axis Type")]
|
|
|
|
/*
|
|
// Gear ratio: (driver rev. / driven rev.)
|
|
public double GearRatio { get; set; } = 1.0;
|
|
public double EncoderResolution { get; set; } = 1.0;
|
|
*/
|
|
|
|
/*
|
|
[Category("Dynamic Motion limits")]
|
|
public double AxisMaxVel { get; set; } = 300; // VelLimit 과 동일한 녀석...이걸로 대체하는게 나을까?
|
|
public double AxisMaxAccel { get; set; } = 300;
|
|
public double AxisMaxDecel { get; set; } = 300;
|
|
// Max. jerk, torque 는 생략
|
|
*/
|
|
|
|
|
|
/*
|
|
//---------------------------------------------------------
|
|
// 위치 Inposition Gap
|
|
//---------------------------------------------------------
|
|
[Category("Motion Config")]
|
|
public double InPosGap { get; set; } = 0.01;
|
|
*/
|
|
|
|
|
|
//[System.ComponentModel.Browsable(false)]
|
|
//public IConnConfig ConnConfig { get; set; }
|
|
|
|
|
|
public PLCMotorBaseConfig()
|
|
{
|
|
ConnConfig = null;
|
|
PosLimit = (0, 1000);
|
|
VelLimit = (0, 500);
|
|
}
|
|
}
|
|
} |