123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MECF.Framework.Common.Utilities
- {
- public class BeckhoffVelocityUtil
- {
-
-
-
-
-
-
- public static int ConvertVelocityToCountPerSecondByRPM(int rpm,double scale)
- {
- double rps = (double)rpm / 60;
- double degs = rpm * 360;
- return (int)Math.Round(rps * scale,0);
- }
-
-
-
-
-
- public static double ConvertVelocityToDegPerSecondByRPM(int rpm)
- {
- double rps = (double)rpm / 60;
- double degs = rps * 360;
- return degs;
- }
- }
- }
|