using Rs.Controls;
using Rs.DataAccess;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Rs.Framework
{
public static class GlobalVar
{
///
/// 当前配方
///
public static string CurRecipe
{
get
{
return SysConfigParam.GetValue(nameof(CurRecipe));
}
}
public static int WholeSpeed
{
get
{
return SysConfigParam.GetValue(nameof(WholeSpeed));
}
}
public static int WholeVacWaitTime
{
get {
//return SysConfigParam.GetValue(nameof(WholeVacWaitTime));
return 1000;
}
}
///
/// 飞拍速度
///
public static int FlyCameraSpeed
{
get
{
return SysConfigParam.GetValue(nameof(FlyCameraSpeed));
}
}
///
/// 搬运速度
///
public static int TakeTraySpeed
{
get
{
return SysConfigParam.GetValue(nameof(TakeTraySpeed));
}
}
///
/// 上相机名称
///
public static string UpCameraName
{
get
{
return SysConfigParam.GetValue(nameof(UpCameraName));
}
}
///
/// 下相机名称
///
public static string DownLocationCameraName
{
get
{
return SysConfigParam.GetValue(nameof(DownLocationCameraName));
}
}
///
/// 下扫码相机名称
///
public static string DownScanCameraName
{
get
{
return SysConfigParam.GetValue(nameof(DownScanCameraName));
}
}
///
/// 空跑模式
///
public static bool RunSpace
{
get
{
return SysConfigParam.GetValue(nameof(RunSpace));
}
}
///
/// 下定位相机像素当量
///
public static double DownCameraMmPerPixel
{
get
{
return SysConfigParam.GetValue(nameof(DownCameraMmPerPixel));
}
}
///
/// 破真空偏移高度
///
public static double CloseVacOffsetHeight
{
get
{
return SysConfigParam.GetValue(nameof(CloseVacOffsetHeight));
}
}
///
/// 轴运动到位后等待时间
///
public static int AxisArrivedWaittime
{
get
{
return SysConfigParam.GetValue(nameof(AxisArrivedWaittime));
}
}
///
/// Tray盘放料时相对于取料位的偏移高度
///
public static double TrayDumpOffsetHeight
{
get
{
return SysConfigParam.GetValue(nameof(TrayDumpOffsetHeight));
}
}
///
/// Tray盘放料时破真空时间
///
public static int TrayDumpCloseVacTime
{
get
{
return SysConfigParam.GetValue(nameof(TrayDumpCloseVacTime));
}
}
#region 排料吸头
///
/// 排料吸头开真空吸延时
///
public static int LoadNozzleOpenVacSuctionDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(LoadNozzleOpenVacSuctionDelaytime));
}
}
///
/// 排料吸头关真空吸延时
///
public static int LoadNozzleCloseVacSuctionDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(LoadNozzleCloseVacSuctionDelaytime));
}
}
///
/// 排料吸头开真空破延时
///
public static int LoadNozzleOpenVacBreakDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(LoadNozzleOpenVacBreakDelaytime));
}
}
///
/// 排料吸头关真空破延时
///
public static int LoadNozzleCloseVacBreakDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(LoadNozzleCloseVacBreakDelaytime));
}
}
#endregion
#region 周转盘真空
///
/// 周转盘开真空吸延时
///
public static int TurnoverTrayOpenVacSuctionDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(TurnoverTrayOpenVacSuctionDelaytime));
}
}
///
/// 周转盘关真空吸延时
///
public static int TurnoverTrayCloseVacSuctionDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(TurnoverTrayCloseVacSuctionDelaytime));
}
}
///
/// 周转盘开真空破延时
///
public static int TurnoverTrayOpenVacBreakDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(TurnoverTrayOpenVacBreakDelaytime));
}
}
///
/// 周转盘关真空破延时
///
public static int TurnoverTrayCloseVacBreakDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(TurnoverTrayCloseVacBreakDelaytime));
}
}
#endregion
#region 周转吸头真空
///
/// 周转吸头开真空吸延时
///
public static int TurnoverNozzleOpenVacSuctionDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(TurnoverNozzleOpenVacSuctionDelaytime));
}
}
///
/// 周转吸头关真空吸延时
///
public static int TurnoverNozzleCloseVacSuctionDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(TurnoverNozzleCloseVacSuctionDelaytime));
}
}
///
/// 周转吸头开真空破延时
///
public static int TurnoverNozzleOpenVacBreakDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(TurnoverNozzleOpenVacBreakDelaytime));
}
}
///
/// 周转吸头关真空破延时
///
public static int TurnoverNozzleCloseVacBreakDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(TurnoverNozzleCloseVacBreakDelaytime));
}
}
#endregion
#region 保压真空
///
/// 保压开真空吸延时
///
public static int PressOpenVacSuctionDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(PressOpenVacSuctionDelaytime));
}
}
///
/// 保压关真空吸延时
///
public static int PresseCloseVacSuctionDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(PresseCloseVacSuctionDelaytime));
}
}
///
/// 保压开真空破延时
///
public static int PresseOpenVacBreakDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(PresseOpenVacBreakDelaytime));
}
}
///
/// 保压关真空破延时
///
public static int PressCloseVacBreakDelaytime
{
get
{
return SysConfigParam.GetValue(nameof(PressCloseVacBreakDelaytime));
}
}
#endregion
///
/// 飞拍曝光时间
///
public static int FlyGrabExposureTime
{
get
{
return SysConfigParam.GetValue(nameof(FlyGrabExposureTime));
}
}
///
/// 飞拍增益
///
public static int FlyGrabGain
{
get
{
return SysConfigParam.GetValue(nameof(FlyGrabGain));
}
}
}
}