프로젝트 구조 개선 및 README.md 추가

- UIControl 프로젝트 구조 변경 (CapCleaningControl → Sub/UIControl)
- arAjinextek 라이브러리 통합 및 구조 개선
- 새로운 arAjinextek_Union 프로젝트 추가
- 솔루션 파일에 README.md 추가
- QR 모드에서 WMS RCV 태그 인식 기능 강화
- 데이터베이스 스키마 업데이트 및 관련 클래스 수정
- 프린터 및 바코드 장치 연동 로직 개선

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ChiKyun Kim
2025-08-07 08:35:56 +09:00
parent c17296101a
commit 9a7d1d27c7
140 changed files with 4203 additions and 6791 deletions

View File

@@ -28,7 +28,7 @@ namespace Project
public static Boolean CheckMotionLimitError()
{
for (int i = 0; i < PUB.mot.DeviceCount; i++)
for (short i = 0; i < PUB.mot.DeviceCount; i++)
{
if (PUB.mot.IsUse(i) == false) continue; //미사용축은 제외한다.
//if (PUB.system.UseAxis(i) == false) continue;
@@ -51,7 +51,7 @@ namespace Project
public static Boolean CheckMotionPos(eAxis Motaxis, TimeSpan stepTime, double pos, double speed, double acc, double dcc, string source, Boolean useInterLocak = true, int timeoutSec = 0, float inpaccr = 0f)
{
var axis = (int)Motaxis;
var axis = (short)Motaxis;
//타임아웃 적용 191213
if (timeoutSec == 0) timeoutSec = AR.SETTING.Data.Timeout_MotionCommand;
@@ -135,7 +135,7 @@ namespace Project
//홈을 잡지 않았다면 오류로 처리함\
//eYPPosition retval = eYPPosition.Unknown;
var motIndex = (int)axis;
var motIndex = (short)axis;
if (PUB.mot.IsInit == false) return "ERROR";// (T)ePickYPosition.ERROR; //200213
if (PUB.mot.IsHomeSet(motIndex) == false) return "ERROR";//ePickYPosition.ERROR;
@@ -193,7 +193,7 @@ namespace Project
public static Boolean isAxisSaftyZone(eAxis axis, int allowoffset = 2)
{
//홈을 잡지 않았다면 오류로 처리함
var motIndex = (int)axis;
var motIndex = (short)axis;
if (PUB.mot.IsInit == false) return false;
if (PUB.mot.IsHomeSet(motIndex) == false) return false;
if (PUB.Result == null || PUB.Result.isSetmModel == false) return false;
@@ -282,7 +282,7 @@ namespace Project
}
//홈이 잡힌상태일때
if (PUB.mot.IsHomeSet((int)axis))
if (PUB.mot.IsHomeSet((short)axis))
{
if (axis == eAxis.PX_PICK)
{
@@ -336,9 +336,9 @@ namespace Project
/// <returns></returns>
private static sPositionData GetAxPos(eAxis axis, int pos)
{
return GetAxpos((int)axis, pos);
return GetAxpos((short)axis, pos);
}
private static sPositionData GetAxpos(int axis, int pos)
private static sPositionData GetAxpos(short axis, int pos)
{
var retval = new sPositionData();
retval.Clear();
@@ -408,8 +408,8 @@ namespace Project
public static void Stop(eAxis axis, string reason, Boolean estop = false)
{
if (PUB.mot.IsInit == false) return;
if (PUB.mot.IsServAlarm((int)axis)) return;
PUB.mot.MoveStop(reason, (int)axis, estop);
if (PUB.mot.IsServAlarm((short)axis)) return;
PUB.mot.MoveStop(reason, (short)axis, estop);
}
@@ -421,7 +421,7 @@ namespace Project
}
public static double getPositionOffset(eAxis axis, double cmdPos)
{
return getPositionOffset((int)axis, cmdPos);
return getPositionOffset((short)axis, cmdPos);
}
/// <summary>
@@ -439,15 +439,15 @@ namespace Project
/// <param name="axis"></param>
/// <param name="cmdPos"></param>
/// <returns></returns>
public static double getPositionOffset(int axis, double cmdPos)
public static double getPositionOffset(short axis, double cmdPos)
{
var coffset = (PUB.mot.GetActPos((int)axis) - cmdPos);
var coffset = (PUB.mot.GetActPos(axis) - cmdPos);
return coffset;// return coffset < offset;
}
public static bool getPositionMatch(eAxis axis, double cmdPos, double offset = 0.1)
{
return getPositionMatch((int)axis, cmdPos, offset);
return getPositionMatch((short)axis, cmdPos, offset);
}
public static bool getPositionMatch(sPositionData pos, double offset = 0.1)
@@ -456,7 +456,7 @@ namespace Project
}
public static bool getPositionMatch(int axis, double cmdPos, double offset = 0.1)
public static bool getPositionMatch(short axis, double cmdPos, double offset = 0.1)
{
var actpos = PUB.mot.GetActPos(axis);
var coffset = Math.Abs(actpos - cmdPos);
@@ -552,7 +552,7 @@ namespace Project
if (validchk == true)
{
//현재위치보다 작으면 ccw
var isCW = pos_mm >= PUB.mot.GetActPos((int)axis);
var isCW = pos_mm >= PUB.mot.GetActPos((short)axis);
if (!Move_Validation(axis, isCW, out Message))
{
PUB.log.AddE(string.Format("[{0}-Axis] Move Error : {1}", axis, Message));
@@ -582,7 +582,7 @@ namespace Project
}
public static Boolean JOG(int _Axis, MOTION_DIRECTION Dir, double _Vel, double _Acc, double _Dec, Boolean sCurve = false, Boolean EnableValidCheck = true, Boolean UserInterLock = true)
public static Boolean JOG(short _Axis, MOTION_DIRECTION Dir, double _Vel, double _Acc, double _Dec, Boolean sCurve = false, Boolean EnableValidCheck = true, Boolean UserInterLock = true)
{
eAxis axis = (eAxis)_Axis;