You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ProductionSystem/ProductionSystem/Untils/PWMHelper.cs

26 lines
666 B
C#

using ProductionSystem_Model.ViewModel.Response.Para;
namespace ProductionSystem.Untils
{
public class PWMHelper
{
/// <summary>
/// PWM通讯
/// </summary>
/// <param name="paraCategory">工序名称</param>
/// <param name="speed">转速目标值</param>
/// <param name="pointKeyValue">PLC反馈点位信息</param>
/// <returns></returns>
public static (bool isOk, string msg) PWMCommunication(string paraCategory, decimal speed, PointKeyValue pointKeyValue)
{
return PWMDeviceHelper.Instance.Run(paraCategory, speed, pointKeyValue);
}
}
}