- Added QRValidation vision control system - Includes CapCleaningControl UI components - WebSocket-based barcode validation system - Support for Crevis PLC integration - Test projects for PLC emulator, motion, IO panel, and Modbus 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
54 lines
895 B
C#
54 lines
895 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Project
|
|
{
|
|
public enum eFlag
|
|
{
|
|
CHECKLICENSE=0,
|
|
CHECKCAMERAL,
|
|
CHECKCAMERAR,
|
|
CAMERAINIT,
|
|
}
|
|
public class Flag : CInterLock
|
|
{
|
|
public Boolean IsInit; //H/W설정이 안된경우에만 FALSE로 한다
|
|
public int PortCount;
|
|
public string[] Name;
|
|
|
|
public Flag()
|
|
{
|
|
this.Tag = "MAIN";
|
|
PortCount = 64;
|
|
IsInit = true;
|
|
errorMessage = string.Empty;
|
|
_value = 0;
|
|
Name = new string[PortCount];
|
|
for (int i = 0; i < Name.Length; i++)
|
|
{
|
|
Name[i] = string.Empty;
|
|
}
|
|
}
|
|
|
|
public bool get(eFlag flag)
|
|
{
|
|
return get((int)flag);
|
|
}
|
|
public void set(eFlag flag, bool value, string reason)
|
|
{
|
|
var idx = (int)flag;
|
|
set(idx, value, reason);
|
|
}
|
|
|
|
public void Toggle(eFlag flag)
|
|
{
|
|
Toggle((int)flag);
|
|
}
|
|
|
|
|
|
}
|
|
}
|