flag,error 항목 정리,

This commit is contained in:
ChiKyun Kim
2025-12-17 15:53:18 +09:00
parent 1f37871336
commit cef2fa8095
11 changed files with 249 additions and 171 deletions

View File

@@ -240,17 +240,17 @@ namespace Project.Device
data[5] = (byte)((VAR.BOOL[eVarBool.FLAG_CHARGEONA] || VAR.BOOL[eVarBool.FLAG_CHARGEONM]) ? 1 : 0);
// CartSt
if (PUB.AGV.signal.cart_detect1 && PUB.AGV.signal.cart_detect2)
if (PUB.AGV.signal2.cart_detect1 && PUB.AGV.signal2.cart_detect2)
data[6] = 1; // 센서두개가 모두 감지되는 경우
else if (PUB.AGV.signal.cart_detect1 == false && PUB.AGV.signal.cart_detect2 == false)
else if (PUB.AGV.signal2.cart_detect1 == false && PUB.AGV.signal2.cart_detect2 == false)
data[6] = 0; // 센서두개가 모두 감지되지 않는 경우
else
data[6] = 2; // 센서하나만 감지되는 경우
// LiftSt
if (PUB.AGV.signal.lift_up)
if (PUB.AGV.signal1.lift_up)
data[7] = 1; // 위로 올라가는 경우
else if (PUB.AGV.signal.lift_down)
else if (PUB.AGV.signal1.lift_down)
data[7] = 0; // 아래로 내려가는 경우
else
data[7] = 2; // unknown (기본값)