fix(report): 운전모드 펌프 가동 판정 — 상태 포맷 매칭 버그 #10
Reference in New Issue
Block a user
Delete Branch "fix/pump-run-detection-format"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
버그
DetectMode가 펌프
livevalue를IN (1,5,L-RUN,R-RUN)로 정확일치 비교했으나, realtime_table은 디지털 상태점을{5 | R-RUN | }포맷으로 저장(FormatValue). 절대 매칭 안 됨 →pumpRunning항상 false → 펌프 설정된 컬럼(C-6111 등)은 가동 중에도 무조건 미가동(idle) 오판정. 카드 state·알람 진실원이 틀어짐.수정
LIKE %RUN%로 RUN 라벨 부분일치(TRIP/FAULT/STOP은 RUN 미포함→정지로 올바르게 처리). 구 bare 값도 허용.라이브 검증
C-6111(P-6102/P-6118 모두 R-RUN) 펌프 가동수 0→2 → 정상(normal) 복구. feed 400·product 355·vac 113도 정상 일치.
적용: 머지 후 크롤러 재시작 시 LiveKpi가 올바른 모드 재계산.
🤖 Generated with Claude Code
DetectMode가 펌프 livevalue를 IN ('1','5','L-RUN','R-RUN')로 정확일치 비교했으나, realtime_table은 디지털 상태점을 '{5 | R-RUN | }' 포맷으로 저장(FormatValue) → 절대 매칭 안 됨 → pumpRunning 항상 false → 펌프 설정된 컬럼은 가동 중에도 무조건 '미가동(idle)'으로 오판정(카드 state·알람 진실원 오류). LIKE '%RUN%'로 RUN 라벨 부분일치(TRIP/FAULT/STOP은 RUN 미포함→정지). 구 bare 값도 허용. 라이브 검증: C-6111 펌프 가동수 0→2 → 정상(normal) 판정 복구. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>