Commit ba99a865 LN

添加注释

1 个父辈 e5b0d154
...@@ -612,7 +612,11 @@ namespace HuichuanLibrary ...@@ -612,7 +612,11 @@ namespace HuichuanLibrary
return res; return res;
} }
/// <summary>
/// 获取EtherCAT类型轴对应的正向力矩限制
/// </summary>
/// <param name="axisNo">轴号0-31</param>
/// <returns>正向力矩限制</returns>
public static short GetEcatAxPosTorqLmt(short axisNo) public static short GetEcatAxPosTorqLmt(short axisNo)
{ {
if (!CardInitOk()) if (!CardInitOk())
...@@ -627,8 +631,13 @@ namespace HuichuanLibrary ...@@ -627,8 +631,13 @@ namespace HuichuanLibrary
return -1; return -1;
} }
return outV; return outV;
} }
/// <summary>
/// 设置EtherCAT类型轴对应的正向力矩限制
/// </summary>
/// <param name="axisNo">轴号0-31</param>
/// <param name="value">正向力矩限制</param>
/// <returns></returns>
public static bool SetEcatAxPosTorqLmt(short axisNo,short value) public static bool SetEcatAxPosTorqLmt(short axisNo,short value)
{ {
if (!CardInitOk()) if (!CardInitOk())
...@@ -643,6 +652,11 @@ namespace HuichuanLibrary ...@@ -643,6 +652,11 @@ namespace HuichuanLibrary
} }
return true ; return true ;
} }
/// <summary>
/// 获取EtherCAT类型轴对应的负向力矩限制
/// </summary>
/// <param name="axisNo">轴号0-31</param>
/// <returns>负向力矩限制</returns>
public static short GetEcatAxNegTorqLmt(short axisNo) public static short GetEcatAxNegTorqLmt(short axisNo)
{ {
if (!CardInitOk()) if (!CardInitOk())
...@@ -658,7 +672,12 @@ namespace HuichuanLibrary ...@@ -658,7 +672,12 @@ namespace HuichuanLibrary
} }
return outV; return outV;
} }
/// <summary>
/// 设置EtherCAT类型轴对应的负向力矩限制
/// </summary>
/// <param name="axisNo">轴号0-31</param>
/// <param name="value">负向力矩限制</param>
/// <returns></returns>
public static bool SetEcatAxNegTorqLmt(short axisNo, short value) public static bool SetEcatAxNegTorqLmt(short axisNo, short value)
{ {
if (!CardInitOk()) if (!CardInitOk())
...@@ -673,6 +692,11 @@ namespace HuichuanLibrary ...@@ -673,6 +692,11 @@ namespace HuichuanLibrary
} }
return true; return true;
} }
/// <summary>
/// 获取EtherCAT类型轴对应的最大力矩限制
/// </summary>
/// <param name="axisNo">轴号0-31</param>
/// <returns>最大力矩限制</returns>
public static short GetEcatAxMaxTorqLmt(short axisNo) public static short GetEcatAxMaxTorqLmt(short axisNo)
{ {
if (!CardInitOk()) if (!CardInitOk())
...@@ -688,7 +712,12 @@ namespace HuichuanLibrary ...@@ -688,7 +712,12 @@ namespace HuichuanLibrary
} }
return outV; return outV;
} }
/// <summary>
/// 设置EtherCAT类型轴对应的最大力矩限制
/// </summary>
/// <param name="axisNo">轴号0-31</param>
/// <param name="value">最大力矩限制</param>
/// <returns></returns>
public static bool SetEcatAxMaxTorqLmt(short axisNo, short value) public static bool SetEcatAxMaxTorqLmt(short axisNo, short value)
{ {
if (!CardInitOk()) if (!CardInitOk())
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!