FEAT: 업데이트
This commit is contained in:
parent
69679864ef
commit
1439479989
@ -172,7 +172,7 @@ namespace MilUI {
|
|||||||
public void DrawGuideLines() {
|
public void DrawGuideLines() {
|
||||||
var calFovRecipe = VisionRecipeManager.GetCalFovRecipe(_FovInfo);
|
var calFovRecipe = VisionRecipeManager.GetCalFovRecipe(_FovInfo);
|
||||||
var centerPos = new ImagePoint(_ImageSize.Width / 2, _ImageSize.Height / 2);
|
var centerPos = new ImagePoint(_ImageSize.Width / 2, _ImageSize.Height / 2);
|
||||||
var color = MIL.M_RGB888(255, 165, 0); // Orange
|
var color = MIL.M_COLOR_RED; // Orange
|
||||||
|
|
||||||
_gridGuideLine.DrawGuideLines(_ImageSize, centerPos, 1, color, calFovRecipe.ErrRotationX);
|
_gridGuideLine.DrawGuideLines(_ImageSize, centerPos, 1, color, calFovRecipe.ErrRotationX);
|
||||||
//_gridGuideLine.DrawRefLine(_ImageSize, calFovRecipe.ErrRotationX);
|
//_gridGuideLine.DrawRefLine(_ImageSize, calFovRecipe.ErrRotationX);
|
||||||
|
|||||||
@ -97,11 +97,11 @@ namespace MilUI {
|
|||||||
|
|
||||||
if (gridMode == eGridMode.Narrow) {
|
if (gridMode == eGridMode.Narrow) {
|
||||||
DrawGuideLines(imageSize, centerPos, 11, MIL.M_COLOR_LIGHT_GRAY, errRotation);
|
DrawGuideLines(imageSize, centerPos, 11, MIL.M_COLOR_LIGHT_GRAY, errRotation);
|
||||||
DrawGuideLines(imageSize, centerPos, 1, COLOR_ORANGE, errRotation);
|
DrawGuideLines(imageSize, centerPos, 1, MIL.M_COLOR_RED, errRotation);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
DrawGuideLines(imageSize, centerPos, 5, MIL.M_COLOR_LIGHT_GRAY, errRotation);
|
DrawGuideLines(imageSize, centerPos, 5, MIL.M_COLOR_LIGHT_GRAY, errRotation);
|
||||||
DrawGuideLines(imageSize, centerPos, 1, COLOR_ORANGE, errRotation);
|
DrawGuideLines(imageSize, centerPos, 1, MIL.M_COLOR_RED, errRotation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,8 @@ namespace MilUI {
|
|||||||
_milGraphics = new MilGraphics(_displayId, _graphicListId);
|
_milGraphics = new MilGraphics(_displayId, _graphicListId);
|
||||||
_tempMilGraphics = new MilGraphics(_displayId, _graphicListId);
|
_tempMilGraphics = new MilGraphics(_displayId, _graphicListId);
|
||||||
_colors = new List<MIL_INT>() {
|
_colors = new List<MIL_INT>() {
|
||||||
MIL.M_COLOR_YELLOW,
|
//MIL.M_COLOR_YELLOW,
|
||||||
|
MIL.M_COLOR_GREEN,
|
||||||
MIL.M_COLOR_MAGENTA
|
MIL.M_COLOR_MAGENTA
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -305,7 +305,8 @@ namespace ILSOS_PrismaticScanner.Sequences
|
|||||||
}
|
}
|
||||||
private bool CheckDeviceReady(SequenceContext context)
|
private bool CheckDeviceReady(SequenceContext context)
|
||||||
{
|
{
|
||||||
List<string> deviceListToCheck = new List<string>() { CommonDeviceIds.Scanner, CommonDeviceIds.IODevice };
|
//List<string> deviceListToCheck = new List<string>() { CommonDeviceIds.Scanner, CommonDeviceIds.IODevice }; // 26.04.15 주석처리 아래 로 테스트
|
||||||
|
List<string> deviceListToCheck = new List<string>() { CommonDeviceIds.Scanner };
|
||||||
//List<string> deviceListToCheck = new List<string>() { CommonDeviceIds.Scanner, CommonDeviceIds.IODevice,DeviceIds.ACS }; 변수 맵 수신 후 ACS 주석 해제 위에 주석 처리
|
//List<string> deviceListToCheck = new List<string>() { CommonDeviceIds.Scanner, CommonDeviceIds.IODevice,DeviceIds.ACS }; 변수 맵 수신 후 ACS 주석 해제 위에 주석 처리
|
||||||
bool isAllDeviceActivated = true;
|
bool isAllDeviceActivated = true;
|
||||||
foreach (string item in deviceListToCheck)
|
foreach (string item in deviceListToCheck)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -98,33 +98,33 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
cbParamExt.Items.Add(i);
|
cbParamExt.Items.Add(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (editMode) {
|
//if (editMode) {
|
||||||
gbLaser.Enabled = true;
|
// gbLaser.Enabled = true;
|
||||||
gbRamping.Enabled = true;
|
// gbRamping.Enabled = true;
|
||||||
gbScanner.Enabled = true;
|
// gbScanner.Enabled = true;
|
||||||
gbWobbel.Enabled = true;
|
// gbWobbel.Enabled = true;
|
||||||
|
|
||||||
btnCopyParam.Enabled = true;
|
// btnCopyParam.Enabled = true;
|
||||||
btnImport.Enabled = true;
|
// btnImport.Enabled = true;
|
||||||
btnImportAll.Enabled = true;
|
// btnImportAll.Enabled = true;
|
||||||
btnExport.Enabled = true;
|
// btnExport.Enabled = true;
|
||||||
btnExportAll.Enabled = true;
|
// btnExportAll.Enabled = true;
|
||||||
btnOk.Enabled = true;
|
// btnOk.Enabled = true;
|
||||||
btnCancel.Enabled = true;
|
// btnCancel.Enabled = true;
|
||||||
} else {
|
//} else {
|
||||||
gbLaser.Enabled = false;
|
// gbLaser.Enabled = false;
|
||||||
gbRamping.Enabled = false;
|
// gbRamping.Enabled = false;
|
||||||
gbScanner.Enabled = false;
|
// gbScanner.Enabled = false;
|
||||||
gbWobbel.Enabled = false;
|
// gbWobbel.Enabled = false;
|
||||||
|
|
||||||
btnCopyParam.Enabled = false;
|
// btnCopyParam.Enabled = false;
|
||||||
btnImport.Enabled = false;
|
// btnImport.Enabled = false;
|
||||||
btnImportAll.Enabled = false;
|
// btnImportAll.Enabled = false;
|
||||||
btnExport.Enabled = false;
|
// btnExport.Enabled = false;
|
||||||
btnExportAll.Enabled = false;
|
// btnExportAll.Enabled = false;
|
||||||
btnOk.Enabled = false;
|
// btnOk.Enabled = false;
|
||||||
btnCancel.Enabled = true;
|
// btnCancel.Enabled = true;
|
||||||
}
|
//}
|
||||||
|
|
||||||
//Welding Paramter 색 지정
|
//Welding Paramter 색 지정
|
||||||
//rbParam1.ForeColor = Color.FromName(((WeldingParameterIDEditor.eWeldingColor)1).ToString());
|
//rbParam1.ForeColor = Color.FromName(((WeldingParameterIDEditor.eWeldingColor)1).ToString());
|
||||||
|
|||||||
@ -227,6 +227,7 @@ namespace WeldingCommon
|
|||||||
|
|
||||||
|
|
||||||
registry.Register(CommonDeviceIds.Scanner, () => new Scanner(CommonDeviceIds.Scanner, isSimul), new ScannerConfig());
|
registry.Register(CommonDeviceIds.Scanner, () => new Scanner(CommonDeviceIds.Scanner, isSimul), new ScannerConfig());
|
||||||
|
registry.Register(CommonDeviceIds.Laser, () => new Laser(CommonDeviceIds.Laser, isSimul), new LaserConfig());
|
||||||
//registry.Register(CommonDeviceIds.SmcChiller, () => new SmcChiller(CommonDeviceIds.SmcChiller, 0, isSimul), new SmcChiller.Config(),
|
//registry.Register(CommonDeviceIds.SmcChiller, () => new SmcChiller(CommonDeviceIds.SmcChiller, 0, isSimul), new SmcChiller.Config(),
|
||||||
// device => new UCSMCChillerDevice() { DataContext = new UCSMCChillerDeviceViewModel(AuroraEnv, CommonDeviceIds.SmcChiller) });
|
// device => new UCSMCChillerDevice() { DataContext = new UCSMCChillerDeviceViewModel(AuroraEnv, CommonDeviceIds.SmcChiller) });
|
||||||
|
|
||||||
|
|||||||
@ -211,18 +211,18 @@ namespace WeldingCommon.Views
|
|||||||
CurrentY = yPos;
|
CurrentY = yPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if(_Laser != null)
|
if (_Laser != null)
|
||||||
//{
|
{
|
||||||
// if (_Laser.GetLaserReady())
|
if (_Laser.GetLaserReady())
|
||||||
// {
|
{
|
||||||
// LaserStatus = true;
|
LaserStatus = true;
|
||||||
// }
|
}
|
||||||
// else
|
else
|
||||||
// {
|
{
|
||||||
// LaserStatus = false;
|
LaserStatus = false;
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnUpdateCorrectionTable(EventMessage obj)
|
private void OnUpdateCorrectionTable(EventMessage obj)
|
||||||
|
|||||||
@ -125,10 +125,11 @@ namespace WeldingCommon.Views
|
|||||||
//private readonly EquipmentInfo _EquipmentInfo;
|
//private readonly EquipmentInfo _EquipmentInfo;
|
||||||
|
|
||||||
private readonly Scanner _Scanner;
|
private readonly Scanner _Scanner;
|
||||||
|
#region To Do : 26.04.15 해당 _Laser와 _IODevice 와 _LaserConfig 전부 걷어내고 _Scanner로 동작하도록 수정해야한다.
|
||||||
private readonly Laser _Laser;
|
private readonly Laser _Laser;
|
||||||
private readonly IODevice _IODevice;
|
private readonly IODevice _IODevice;
|
||||||
private readonly LaserConfig _LaserConfig;
|
private readonly LaserConfig _LaserConfig;
|
||||||
|
#endregion
|
||||||
private ISequence _SeqScoutNormal;
|
private ISequence _SeqScoutNormal;
|
||||||
private bool _IsSequenceRunning_ScoutNormal;
|
private bool _IsSequenceRunning_ScoutNormal;
|
||||||
public bool IsSequenceRunning_ScoutNormal { get => _IsSequenceRunning_ScoutNormal; set => SetProperty(ref _IsSequenceRunning_ScoutNormal, value); }
|
public bool IsSequenceRunning_ScoutNormal { get => _IsSequenceRunning_ScoutNormal; set => SetProperty(ref _IsSequenceRunning_ScoutNormal, value); }
|
||||||
@ -416,30 +417,44 @@ namespace WeldingCommon.Views
|
|||||||
private void OnMonitoring(object sender, EventArgs e)
|
private void OnMonitoring(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// TODO: Laser Device 에 구현된 내용에 따르면, 일부 Laser Device 는 구현이 되어 있지 않은 상태. 항상 false
|
// TODO: Laser Device 에 구현된 내용에 따르면, 일부 Laser Device 는 구현이 되어 있지 않은 상태. 항상 false
|
||||||
//if (_Laser.GetPilotLaserStatus()) {
|
if (_Laser.GetPilotLaserStatus())
|
||||||
// IsGuidBeam = true;
|
{
|
||||||
//} else {
|
IsGuidBeam = true;
|
||||||
// IsGuidBeam = false;
|
}
|
||||||
//}
|
else
|
||||||
|
{
|
||||||
|
IsGuidBeam = false;
|
||||||
|
}
|
||||||
|
|
||||||
//if (_Laser.GetLaserReady()) {
|
if (_Laser.GetLaserReady())
|
||||||
// IsLaserReady = true;
|
{
|
||||||
|
IsLaserReady = true;
|
||||||
|
|
||||||
// // TODO: PRIBAT_L1, PRIBAT_L2 는 IO에 LaserOnLamp 를 켜고 끄는게 필요함.
|
// TODO: PRIBAT_L1, PRIBAT_L2 는 IO에 LaserOnLamp 를 켜고 끄는게 필요함.
|
||||||
// // TODO: 우선 주석 처리 해 둠. 레이저 Type 별로 달라서 그런건지 확인하고, 어떻게 공통으로 구현할지를 생각해서 추가해 두자
|
// TODO: 우선 주석 처리 해 둠. 레이저 Type 별로 달라서 그런건지 확인하고, 어떻게 공통으로 구현할지를 생각해서 추가해 두자
|
||||||
// //_iODevice._iOUnit.WriteDoBit(Convert.ToInt32(ePDOAddress.LaserOnLampOn), true);
|
//_iODevice._iOUnit.WriteDoBit(Convert.ToInt32(ePDOAddress.LaserOnLampOn), true);
|
||||||
|
|
||||||
//} else {
|
}
|
||||||
// IsLaserReady = false;
|
else
|
||||||
// // TODO: PRIBAT_L1, PRIBAT_L2 는 IO에 LaserOnLamp 를 켜고 끄는게 필요함.
|
{
|
||||||
// // TODO: 우선 주석 처리 해 둠. 레이저 Type 별로 달라서 그런건지 확인하고, 어떻게 공통으로 구현할지를 생각해서 추가해 두자
|
IsLaserReady = false;
|
||||||
// //_iODevice._iOUnit.WriteDoBit(Convert.ToInt32(ePDOAddress.LaserOnLampOn), true);
|
// TODO: PRIBAT_L1, PRIBAT_L2 는 IO에 LaserOnLamp 를 켜고 끄는게 필요함.
|
||||||
//}
|
// TODO: 우선 주석 처리 해 둠. 레이저 Type 별로 달라서 그런건지 확인하고, 어떻게 공통으로 구현할지를 생각해서 추가해 두자
|
||||||
|
//_iODevice._iOUnit.WriteDoBit(Convert.ToInt32(ePDOAddress.LaserOnLampOn), true);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: PRIBAT_L1, PRIBAT_L2 는 Blow 의 상태 check 가 들어 있음. 장비 한정이므로 이를 check 하는 것을 modelItem 이나 setting 으로 빼서 진행되도록 함.
|
// TODO: PRIBAT_L1, PRIBAT_L2 는 Blow 의 상태 check 가 들어 있음. 장비 한정이므로 이를 check 하는 것을 modelItem 이나 setting 으로 빼서 진행되도록 함.
|
||||||
|
|
||||||
#region
|
#region
|
||||||
// 26.04.09 NDY [Stage X Jog] OnMonitoring 내부 - X축 위치 갱신
|
// 26.04.15 NDY Scanner ACS 변수로 IsLaserReady 모니터링
|
||||||
|
// 26.04.15 NDY Gun → Scanner 변경: RTC5 ReadStatus 비트7로 레이저 상태 모니터링
|
||||||
|
//if (_Scanner != null && _Scanner.IsActivated)
|
||||||
|
//{
|
||||||
|
// uint status = _Scanner.ReadStatus();
|
||||||
|
// IsLaserReady = (status & (1 << 7)) != 0;
|
||||||
|
//}
|
||||||
|
|
||||||
|
// 26.04.09 NDY [Stage X Jog] X축 위치 갱신
|
||||||
if (_MotorX != null && _MotorX.IsActivated)
|
if (_MotorX != null && _MotorX.IsActivated)
|
||||||
{
|
{
|
||||||
StageXPos = _MotorX.GetActualPos();
|
StageXPos = _MotorX.GetActualPos();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user