2020-08-31 02:13:02 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2020-08-31 06:52:43 +00:00
|
|
|
|
namespace ITC81DB_0H
|
2020-08-31 02:13:02 +00:00
|
|
|
|
{
|
|
|
|
|
public class DataStore
|
|
|
|
|
{
|
|
|
|
|
#region Enum
|
|
|
|
|
public enum EquipmentStatus
|
|
|
|
|
{
|
|
|
|
|
Stop = 0,
|
|
|
|
|
Start = 1,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum DisplayMode
|
|
|
|
|
{
|
|
|
|
|
Normal,
|
|
|
|
|
Menu,
|
|
|
|
|
Calibration,
|
|
|
|
|
SystemSetting,
|
|
|
|
|
IOTest,
|
|
|
|
|
Bypass,
|
|
|
|
|
EquipmentTest,
|
|
|
|
|
SorterTest,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum DisplayStore
|
|
|
|
|
{
|
|
|
|
|
MainDisplay,
|
|
|
|
|
|
|
|
|
|
BasicDataBackup,
|
|
|
|
|
BasicDataStatistics,
|
|
|
|
|
BasicHelp,
|
|
|
|
|
BasicProduct,
|
|
|
|
|
BasicRandomMode,
|
|
|
|
|
BasicTime,
|
|
|
|
|
|
|
|
|
|
ConfiCountingOutput,
|
|
|
|
|
ConfiSerial,
|
|
|
|
|
ConfiEthernet,
|
|
|
|
|
ConfiHelp,
|
|
|
|
|
ConfiOption,
|
|
|
|
|
ConfiOptionBoard,
|
|
|
|
|
ConfiSerialSeparate,
|
|
|
|
|
|
|
|
|
|
EquipHelp,
|
|
|
|
|
EquipUpdate,
|
2020-09-22 01:11:23 +00:00
|
|
|
|
EquipInitialize,
|
2020-08-31 02:13:02 +00:00
|
|
|
|
EquipFuctionSetting,
|
|
|
|
|
EquipUser,
|
|
|
|
|
EquipTest,
|
|
|
|
|
EquipEngineer,
|
|
|
|
|
|
|
|
|
|
InforAS,
|
|
|
|
|
InforHelp,
|
|
|
|
|
InforSystem,
|
|
|
|
|
InforSystem2,
|
|
|
|
|
InforSystem3,
|
|
|
|
|
|
|
|
|
|
SystemAutoZero,
|
|
|
|
|
SystemCalibration,
|
|
|
|
|
SystemHelp,
|
|
|
|
|
SystemIOTest,
|
|
|
|
|
SystemJudgmentManual,
|
|
|
|
|
SystemExternalOutput,
|
|
|
|
|
SystemSorterSetting,
|
|
|
|
|
SystemJudgmentAuto,
|
|
|
|
|
SystemJudgmentSelect,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum FormStore
|
|
|
|
|
{
|
|
|
|
|
FormNone = 0,
|
|
|
|
|
FormMainDisplay,
|
|
|
|
|
FormMenu,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum MainDisplayStore
|
|
|
|
|
{
|
|
|
|
|
//DisplayStop,
|
|
|
|
|
DisplayStartBarGraph,
|
|
|
|
|
DisplayStartLineGraph,
|
|
|
|
|
DisplayStartList,
|
|
|
|
|
DisplayStopDataStat,
|
|
|
|
|
DisplayStartMenu,
|
|
|
|
|
DisplayFeedback,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum MenuSide
|
|
|
|
|
{
|
|
|
|
|
Basic,
|
|
|
|
|
Configuration,
|
|
|
|
|
System,
|
|
|
|
|
Equipment,
|
|
|
|
|
Information,
|
|
|
|
|
HiddenMenu,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum MenuBottomBasic
|
|
|
|
|
{
|
|
|
|
|
DataBackup,
|
|
|
|
|
DataStatistics,
|
|
|
|
|
Help,
|
|
|
|
|
Product,
|
|
|
|
|
Time,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum MenuBottomConfiguration
|
|
|
|
|
{
|
|
|
|
|
CountingOutput,
|
|
|
|
|
SerialCOM1,
|
|
|
|
|
SerialCOM3,
|
|
|
|
|
SerialCOM4,
|
|
|
|
|
Ethernet,
|
|
|
|
|
Help,
|
|
|
|
|
Option,
|
|
|
|
|
OptionBoard,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum MenuBottomEquipment
|
|
|
|
|
{
|
|
|
|
|
FunctionSetting,
|
|
|
|
|
Help,
|
|
|
|
|
Initialize,
|
|
|
|
|
Test,
|
|
|
|
|
Update,
|
|
|
|
|
User,
|
|
|
|
|
Engineer,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum MenuBottomSystem
|
|
|
|
|
{
|
|
|
|
|
AutoZero,
|
|
|
|
|
Calibration,
|
|
|
|
|
ExternalOutput,
|
|
|
|
|
Help,
|
|
|
|
|
IOTest,
|
|
|
|
|
JudgmentSetting,
|
|
|
|
|
SorterSetting,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum MenuBottomInformation
|
|
|
|
|
{
|
|
|
|
|
Help,
|
|
|
|
|
SystemInformation,
|
|
|
|
|
AS,
|
|
|
|
|
SystemInformation2,
|
|
|
|
|
SystemInformation3,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum LanguageID
|
|
|
|
|
{
|
|
|
|
|
Korean,
|
|
|
|
|
English,
|
|
|
|
|
German,
|
|
|
|
|
Chinese,
|
|
|
|
|
Russian,
|
|
|
|
|
Czech,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum JudgmentStatus
|
|
|
|
|
{
|
|
|
|
|
Empty,
|
|
|
|
|
Under,
|
|
|
|
|
Pass,
|
|
|
|
|
Over,
|
|
|
|
|
Double,
|
|
|
|
|
Metal,
|
|
|
|
|
ExNg,
|
|
|
|
|
ExNg1, // 외부입력 PIN5
|
|
|
|
|
ExNg2, // 외부입력 Photo B
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum WeightStatus
|
|
|
|
|
{
|
|
|
|
|
Empty,
|
|
|
|
|
WeightChange,
|
|
|
|
|
WeightZero,
|
|
|
|
|
CalNomal,
|
|
|
|
|
CalBalans,
|
2020-12-09 08:29:14 +00:00
|
|
|
|
CalWait,
|
2020-08-31 02:13:02 +00:00
|
|
|
|
CalStandby,
|
|
|
|
|
CalFinish,
|
|
|
|
|
CalError,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum UserGroup
|
|
|
|
|
{
|
|
|
|
|
None = 0,
|
|
|
|
|
Level1Operator,
|
|
|
|
|
Level2Engineer,
|
|
|
|
|
Level3Manager,
|
|
|
|
|
Level4Developer,
|
|
|
|
|
LogOut,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ResponseData
|
|
|
|
|
{
|
|
|
|
|
NAK = 0,
|
|
|
|
|
ACK = 1,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum UpdateCheck
|
|
|
|
|
{
|
|
|
|
|
Fail,
|
|
|
|
|
Success,
|
|
|
|
|
NotUsbMomery,
|
|
|
|
|
NotUpdateFolder,
|
|
|
|
|
NotFile,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum WeightInputMode
|
|
|
|
|
{
|
|
|
|
|
Weight,
|
|
|
|
|
Deviation,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum Step2
|
|
|
|
|
{
|
|
|
|
|
Step1,
|
|
|
|
|
Step2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum Step3
|
|
|
|
|
{
|
|
|
|
|
Step1,
|
|
|
|
|
Step2,
|
|
|
|
|
Step3,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum Step4
|
|
|
|
|
{
|
|
|
|
|
Step1,
|
|
|
|
|
Step2,
|
|
|
|
|
Step3,
|
|
|
|
|
Step4,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum Step5
|
|
|
|
|
{
|
|
|
|
|
Step1 = 1,
|
|
|
|
|
Step2 = 2,
|
|
|
|
|
Step3 = 3,
|
|
|
|
|
Step4 = 4,
|
|
|
|
|
Step5 = 5,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum SeparateType
|
|
|
|
|
{
|
|
|
|
|
STXANDETX,
|
|
|
|
|
ETXONLY,
|
|
|
|
|
NONEFRAME_READTIMEOUT,
|
|
|
|
|
STXONLY,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum EnumFileUserPassword
|
|
|
|
|
{
|
|
|
|
|
f0_Level1 = 0,
|
|
|
|
|
f1_Level2 = 1,
|
|
|
|
|
f2_Level3 = 2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum EnumFileUserGroup
|
|
|
|
|
{
|
|
|
|
|
f0_Level1 = 0,
|
|
|
|
|
f1_Level2 = 1,
|
|
|
|
|
f2_Level3 = 2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum JudgmentResult
|
|
|
|
|
{
|
|
|
|
|
None,
|
|
|
|
|
OK,
|
|
|
|
|
NG,
|
|
|
|
|
STOP, // 정지
|
|
|
|
|
Timeout, // 타임아웃
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum CharValue
|
|
|
|
|
{
|
|
|
|
|
ENQ, // 0x05
|
|
|
|
|
ACK, // 0x06
|
|
|
|
|
NAK, // 0x15
|
|
|
|
|
Space, // 0x20
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum SerialCOM
|
|
|
|
|
{
|
|
|
|
|
COM1 = 0,
|
|
|
|
|
COM3 = 1,
|
|
|
|
|
COM4 = 2,
|
|
|
|
|
}
|
2021-05-18 06:37:14 +00:00
|
|
|
|
|
|
|
|
|
public enum SerialMode
|
|
|
|
|
{
|
|
|
|
|
f0_None = 0,
|
|
|
|
|
f1_STD1,
|
|
|
|
|
f2_Remote,
|
|
|
|
|
f3_Printer,
|
|
|
|
|
f4_imaje_9410_OPT1,
|
|
|
|
|
f5_imaje_9028_OPT1 = 5,
|
|
|
|
|
f6_OPT0,
|
|
|
|
|
f7_imaje_9410_OPT2,
|
|
|
|
|
f8_imaje_9028_OPT2,
|
|
|
|
|
f9_Hitachi,
|
|
|
|
|
f10_MACSA_Laser = 10,
|
|
|
|
|
f11_Markoprint,
|
|
|
|
|
f12_alphaJET,
|
|
|
|
|
f13_Marking_VJ1510,
|
|
|
|
|
f14_OPT1,
|
|
|
|
|
f15_OPT2 = 15,
|
|
|
|
|
f16_OPC,
|
|
|
|
|
f17_OPT3,
|
|
|
|
|
f18_HP_200,
|
|
|
|
|
f19_SmartJet,
|
|
|
|
|
f20_imaje_9410_OPT3 = 20,
|
|
|
|
|
f21_Impinj_Speedway_R420 = 21, // RFID
|
|
|
|
|
f22_Modbus_RTU,
|
|
|
|
|
f23_STD2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum EthernetMode
|
|
|
|
|
{
|
|
|
|
|
f0_None = 0,
|
|
|
|
|
f1_STD1,
|
|
|
|
|
f2_Remote,
|
|
|
|
|
f3_Printer,
|
|
|
|
|
f4_imaje_9410_OPT1,
|
|
|
|
|
f5_imaje_9028_OPT1 = 5,
|
|
|
|
|
f6_OPT0,
|
|
|
|
|
f7_imaje_9410_OPT2,
|
|
|
|
|
f8_imaje_9028_OPT2,
|
|
|
|
|
f9_Hitachi,
|
|
|
|
|
f10_MACSA_Laser = 10,
|
|
|
|
|
f11_Markoprint,
|
|
|
|
|
f12_alphaJET,
|
|
|
|
|
f13_Marking_VJ1510,
|
|
|
|
|
f14_OPT1,
|
|
|
|
|
f15_OPT2 = 15,
|
|
|
|
|
f16_OPC,
|
|
|
|
|
f17_OPT3,
|
|
|
|
|
f18_HP_200,
|
|
|
|
|
f19_SmartJet,
|
|
|
|
|
f20_imaje_9410_OPT3 = 20,
|
|
|
|
|
f21_Impinj_Speedway_R420 = 21, // RFID
|
|
|
|
|
f22_Modbus_TCP,
|
|
|
|
|
f23_STD2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ExternalOutputMode
|
|
|
|
|
{
|
|
|
|
|
None,
|
|
|
|
|
Over,
|
|
|
|
|
Under,
|
|
|
|
|
NG,
|
|
|
|
|
Pass,
|
|
|
|
|
Run,
|
|
|
|
|
Count,
|
|
|
|
|
LatchCountrol,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ExternalInputMode
|
|
|
|
|
{
|
|
|
|
|
IN0_None,
|
|
|
|
|
IN1_Metal,
|
|
|
|
|
IN2_START,
|
|
|
|
|
IN3_STOP,
|
|
|
|
|
IN4_DischargeSorterA,
|
|
|
|
|
IN5_Air = 5,
|
|
|
|
|
IN6_Door,
|
|
|
|
|
IN7_Stopper,
|
|
|
|
|
IN8_Windproof,
|
|
|
|
|
IN9_ExternalOperation,
|
|
|
|
|
IN10_DispensorEntry1 = 10,
|
|
|
|
|
IN11_DispensorEntry2,
|
|
|
|
|
IN12_StackUp,
|
|
|
|
|
IN13_ExNG1,
|
|
|
|
|
IN14_ExNG2,
|
|
|
|
|
IN15_ExInputCheck,
|
|
|
|
|
IN16_DischargeSorterB,
|
|
|
|
|
}
|
2020-08-31 02:13:02 +00:00
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region SerialData
|
|
|
|
|
public class SerialData
|
|
|
|
|
{
|
|
|
|
|
public static readonly char STX = Convert.ToChar(0x02);
|
|
|
|
|
public static readonly char ETX = Convert.ToChar(0x03);
|
|
|
|
|
public static readonly char ETXs1 = Convert.ToChar(0x0D);
|
|
|
|
|
public static readonly char ETXs2 = Convert.ToChar(0x0A);
|
|
|
|
|
public static readonly char[] CharSaperate = { (char)0x0D, (char)0x0A };
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region CommunicationCommand
|
|
|
|
|
public class CommunicationCommand
|
|
|
|
|
{
|
|
|
|
|
// 불량알람(레벨)
|
|
|
|
|
public static readonly string AlarmNgLevel = "Caa00";
|
|
|
|
|
// 불량알람 해지
|
|
|
|
|
public static readonly string AlarmNgClear = "CAA00";
|
|
|
|
|
// 불량알람(펄스)
|
|
|
|
|
public static readonly string AlarmPulse = "Cac00";
|
|
|
|
|
// 부저ON(부저ON시간과 연동)
|
|
|
|
|
public static readonly string BuzzerOn = "Cad00";
|
|
|
|
|
// 부저ON(연속)
|
|
|
|
|
public static readonly string BuzzerOnContinuousEnable = "Cae00";
|
|
|
|
|
// 부저해지
|
|
|
|
|
public static readonly string BuzzerOnContinuousDisable = "CAE00";
|
|
|
|
|
// 선별기알람해지
|
|
|
|
|
public static readonly string AlarmNgClearSorter = "CA700";
|
|
|
|
|
// 카운팅출력1(펄스)
|
|
|
|
|
public static readonly string CountingOutput1Pulse = "Caf00";
|
|
|
|
|
// 카운팅출력2(펄스)
|
|
|
|
|
public static readonly string CountingOutput2Pulse = "Cag00";
|
|
|
|
|
// 램프ON(연속, 적색/황색 점등)
|
|
|
|
|
public static readonly string LampOnContinuousEnable = "Cah00";
|
|
|
|
|
// 램프해지
|
|
|
|
|
public static readonly string LampOnContinuousDisable = "CAH00";
|
|
|
|
|
|
|
|
|
|
// 중량조정모드
|
|
|
|
|
public static readonly string ModeCalibration = "Csc00";
|
|
|
|
|
// 노멀모드
|
|
|
|
|
public static readonly string ModeNormal = "Csn00";
|
|
|
|
|
// 메뉴 모드
|
|
|
|
|
public static readonly string ModeMenu = "Csm00";
|
|
|
|
|
// 판정설정모드
|
|
|
|
|
public static readonly string ModeJudgment = "Csg00";
|
|
|
|
|
// IO 테스트모드
|
|
|
|
|
public static readonly string ModeIOTest = "Cst00";
|
|
|
|
|
// 바이패스
|
|
|
|
|
public static readonly string ModeBypass = "Csb00";
|
|
|
|
|
// 장비 테스트모드
|
|
|
|
|
public static readonly string ModeEquipmentTest = "Csy00";
|
|
|
|
|
// 선별기 테스트모드
|
|
|
|
|
public static readonly string ModeRejectorTest = "Csr00";
|
|
|
|
|
|
|
|
|
|
// 중량조정 - 분동
|
|
|
|
|
public static readonly string CalibrationBalance = "Ccb00";
|
|
|
|
|
// 중량조정 - 시작
|
|
|
|
|
public static readonly string CalibrationStart = "Ccs00";
|
|
|
|
|
// 중량조정 - 취소
|
|
|
|
|
public static readonly string CalibrationCancel = "Ccx00";
|
|
|
|
|
// 중량보정 - 한자리올림
|
|
|
|
|
public static readonly string CalibrationUp = "Ccu00";
|
|
|
|
|
// 중량보정 - 한자리내림
|
|
|
|
|
public static readonly string CalibrationDown = "Ccd00";
|
|
|
|
|
|
|
|
|
|
// 파라미터 쓰기
|
|
|
|
|
public static readonly string Write = "Pw000";
|
|
|
|
|
// 파라미터 읽기
|
|
|
|
|
public static readonly string Read = "Pr000";
|
|
|
|
|
// Bypass To Motor
|
|
|
|
|
public static readonly string BypassToMotor = "Pb000";
|
|
|
|
|
// IO테스트 - OUT
|
|
|
|
|
public static readonly string IOTest = "Pt000";
|
|
|
|
|
|
|
|
|
|
// 임펠러 모터 - 정회전
|
|
|
|
|
public static readonly string ImpellerMotorForward = "Cmc00";
|
|
|
|
|
// 임펠러 모터 - 역회전
|
|
|
|
|
public static readonly string ImpellerMotorReverse = "Cmr00";
|
|
|
|
|
// 모터 - 원점초기화
|
|
|
|
|
public static readonly string MotorOrigin = "Cmo00";
|
|
|
|
|
// 모터 - Step
|
|
|
|
|
public static readonly string MotorStep = "Cms00";
|
|
|
|
|
// 업다운 - 다운
|
|
|
|
|
public static readonly string MotorDown = "Cmd00";
|
|
|
|
|
// 업다운 - 업
|
|
|
|
|
public static readonly string MotorUp = "Cmu00";
|
|
|
|
|
// 모터 - 업2
|
|
|
|
|
public static readonly string MotorUp2 = "Cmp00";
|
|
|
|
|
|
|
|
|
|
// Cut 신호
|
|
|
|
|
public static readonly string CutInpupt = "Cbc00";
|
|
|
|
|
// 공장초기화
|
|
|
|
|
public static readonly string Initialization = "Cbi00";
|
|
|
|
|
// 운전
|
|
|
|
|
public static readonly string Start = "Cbs00";
|
|
|
|
|
// 정지
|
|
|
|
|
public static readonly string Stop = "Cbt00";
|
|
|
|
|
// 영점
|
|
|
|
|
public static readonly string Zero = "Cbz00";
|
|
|
|
|
// 소거
|
|
|
|
|
public static readonly string Clear = "Cbe00";
|
|
|
|
|
// Output 제어
|
|
|
|
|
public static readonly string Output = "Cbd00";
|
|
|
|
|
|
|
|
|
|
// ACK
|
|
|
|
|
public static readonly string ACK = "ACK";
|
|
|
|
|
// NAK
|
|
|
|
|
public static readonly string NAK = "NAK";
|
|
|
|
|
// 운전중 중량
|
|
|
|
|
public static readonly string RunWeightData = "Sr";
|
|
|
|
|
|
|
|
|
|
// 카운팅출력 - 통신에러
|
|
|
|
|
public static readonly string CountingOutputClearCommunicationError = "Cra00";
|
|
|
|
|
|
|
|
|
|
// 기타NG
|
|
|
|
|
public static readonly string JudgmentExternalNG = "Cja00";
|
|
|
|
|
|
|
|
|
|
// 판정 - bypass 1회
|
|
|
|
|
public static readonly string BypassOnce = "Cjb00";
|
|
|
|
|
// 판정 - byNG 1회
|
|
|
|
|
public static readonly string ByNGOnce = "Cjc00";
|
|
|
|
|
// 판정 - bypass 연속 OFF
|
|
|
|
|
public static readonly string BypassOFF = "Cjd00";
|
|
|
|
|
// 판정 - bypass 연속 ON
|
|
|
|
|
public static readonly string BypassON = "Cjd01";
|
|
|
|
|
// 판정 - byNG 연속 OFF
|
|
|
|
|
public static readonly string ByNGOFF = "Cje00";
|
|
|
|
|
// 판정 - byNG 연속 ON
|
|
|
|
|
public static readonly string ByNGON = "Cje01";
|
|
|
|
|
}
|
|
|
|
|
public class CommunicationID
|
|
|
|
|
{
|
|
|
|
|
public static readonly string MainBoard = "0";
|
|
|
|
|
public static readonly string SubBoard1 = "A";
|
|
|
|
|
public static readonly string SubBoard2 = "B";
|
|
|
|
|
public static readonly string SubBoard3 = "C";
|
|
|
|
|
public static readonly string SubBoard4 = "D";
|
|
|
|
|
public static readonly string SubBoard5 = "E";
|
|
|
|
|
public static readonly string SubBoard6 = "F";
|
|
|
|
|
public static readonly string SubBoard7 = "G";
|
|
|
|
|
public static readonly string SubBoard8 = "H";
|
|
|
|
|
public static readonly string SubBoard9 = "I";
|
|
|
|
|
public static readonly string SubBoard10 = "J";
|
|
|
|
|
public static readonly string SubBoard11 = "K";
|
|
|
|
|
public static readonly string SubBoard12 = "L";
|
|
|
|
|
public static readonly string SubBoardAll = "Z";
|
|
|
|
|
}
|
|
|
|
|
public class CommunicationAddress
|
|
|
|
|
{
|
|
|
|
|
// Address None
|
|
|
|
|
public static readonly string None = "0000";
|
|
|
|
|
|
|
|
|
|
// 장비타입
|
|
|
|
|
public static readonly string EquipmentType = "1002";
|
|
|
|
|
|
|
|
|
|
// 임펠러 모터 - 회전각도
|
|
|
|
|
public static readonly string ImpellerMotorAngle = "1101";
|
|
|
|
|
// 임펠러 모터 - 통신속도
|
|
|
|
|
public static readonly string ImpellerMotorBaudrate = "1102";
|
|
|
|
|
// 임펠러 모터 - 회전방향
|
|
|
|
|
public static readonly string ImpellerMotorDirection = "1103";
|
|
|
|
|
// 바이패스
|
|
|
|
|
public static readonly string Bypass = "1201";
|
|
|
|
|
// 정지계량 사용 여부
|
|
|
|
|
public static readonly string IsStopWeighing = "1401";
|
|
|
|
|
// OPT(옵션보드) 사용
|
|
|
|
|
public static readonly string OptionBoard = "1402";
|
|
|
|
|
// 외부운전 사용 여부
|
|
|
|
|
public static readonly string IsExternalOperation = "1403";
|
|
|
|
|
// 초기구동 사용 여부
|
|
|
|
|
public static readonly string IsInitialDrive = "1404";
|
|
|
|
|
// 공기압감지 사용 여부
|
|
|
|
|
public static readonly string IsPressureSensing = "1405";
|
|
|
|
|
// 적체센서 사용 여부
|
|
|
|
|
public static readonly string IsStackSensing = "1406";
|
|
|
|
|
// 선별부 동작감지 사용 여부
|
|
|
|
|
public static readonly string IsSorterDetecting = "1407";
|
|
|
|
|
// 진입 스토퍼 사용 여부
|
|
|
|
|
public static readonly string IsEntryStopper = "1408";
|
2020-09-09 07:18:24 +00:00
|
|
|
|
// PI2 - 0:미사용, 1:NG, 2:외부운전, 3:공압센서, 4:문열림감지, 5:배출확인
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public static readonly string PI2 = "1421";
|
2020-09-09 07:18:24 +00:00
|
|
|
|
// PI3 - 0:미사용, 1:STOP, 2:외부운전, 3:공압센서, 4:문열림감지, 5:배출확인
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public static readonly string PI3 = "1422";
|
2020-09-09 07:18:24 +00:00
|
|
|
|
// PI4 - 0:미사용, 1:START, 2:외부운전, 3:공압센서, 4:문열림감지, 5:배출확인
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public static readonly string PI4 = "1423";
|
2020-09-09 07:18:24 +00:00
|
|
|
|
// PI5 - 0:미사용, 1:외부운전, 2:공압센서, 3:문열림감지, 4:배출확인
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public static readonly string PI5 = "1424";
|
2020-09-09 07:18:24 +00:00
|
|
|
|
// PI6 - 0:미사용, 1:외부운전, 2:공압센서, 3:문열림감지, 4:배출확인
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public static readonly string PI6 = "1425";
|
2020-09-09 07:18:24 +00:00
|
|
|
|
// PI7 -
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public static readonly string PI7 = "1426";
|
2020-09-09 07:18:24 +00:00
|
|
|
|
// PI8 -
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public static readonly string PI8 = "1427";
|
|
|
|
|
// 메인보드1 버전 읽기
|
2020-09-22 01:11:23 +00:00
|
|
|
|
public static readonly string ProgramVersion = "1502";
|
|
|
|
|
// 시스템설정 - 업데이트
|
|
|
|
|
public static readonly string _1651_UpdateForMain = "1651";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
// 품목설정 - 품번
|
|
|
|
|
public static readonly string ProductNumber = "2001";
|
|
|
|
|
// 품목설정 - 하한 설정값
|
|
|
|
|
public static readonly string UnderRange = "2002";
|
|
|
|
|
// 품목설정 - 기준 설정값
|
|
|
|
|
public static readonly string PassRange = "2003";
|
|
|
|
|
// 품목설정 - 상한 설정값
|
|
|
|
|
public static readonly string OverRange = "2004";
|
|
|
|
|
// 품목설정 - 용기 설정값
|
|
|
|
|
public static readonly string TareRange = "2005";
|
|
|
|
|
|
|
|
|
|
// 중량조정 - 최대중량 설정값
|
|
|
|
|
public static readonly string MaxWeight = "3001";
|
|
|
|
|
// 중량조정 - 분동중량 설정값
|
|
|
|
|
public static readonly string BalanceWeight = "3002";
|
|
|
|
|
// 중량조정 - 한눈의 값
|
|
|
|
|
public static readonly string Digit = "3003";
|
2020-09-16 05:06:11 +00:00
|
|
|
|
// 중량조정 - 소수점
|
|
|
|
|
public static readonly string DecimalPlaces = "3016";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
// 중량조정 - 상수값 읽기
|
|
|
|
|
public static readonly string ReadConstant = "3601";
|
|
|
|
|
// 중량조정 - 파라미터 읽기
|
|
|
|
|
public static readonly string ParameterRead3901 = "3901";
|
|
|
|
|
|
|
|
|
|
// 자동영점 - 모드1 시간
|
|
|
|
|
public static readonly string Zero1Time = "4001";
|
|
|
|
|
// 자동영점 - 모드1 범위
|
|
|
|
|
public static readonly string Zero1Range = "4002";
|
|
|
|
|
// 자동영점 - 모드1 변량
|
|
|
|
|
public static readonly string Zero1Variate = "4003";
|
|
|
|
|
// 자동영점 - 모드1 모드
|
|
|
|
|
public static readonly string Zero1Mode = "4004";
|
|
|
|
|
// 자동영점 - 모드2 모드
|
|
|
|
|
public static readonly string Zero2Mode = "4005";
|
|
|
|
|
// 자동영점 - 모드2 시간
|
|
|
|
|
public static readonly string Zero2Time = "4006";
|
|
|
|
|
// 자동영점 - 모드2 범위
|
|
|
|
|
public static readonly string Zero2Range = "4007";
|
|
|
|
|
// 자동영점 - 모드2 변량
|
|
|
|
|
public static readonly string Zero2Variate = "4008";
|
|
|
|
|
|
|
|
|
|
// 자동영점 - 모드1 파라미터 읽기
|
|
|
|
|
public static readonly string ParameterRead4901 = "4901";
|
|
|
|
|
// 자동영점 - 모드2 파라미터 읽기
|
|
|
|
|
public static readonly string ParameterRead4902 = "4902";
|
|
|
|
|
|
|
|
|
|
// 판정설정 - 필터
|
|
|
|
|
public static readonly string Filter = "5001";
|
|
|
|
|
// 판정설정 - 판정지연
|
|
|
|
|
public static readonly string JudgmentDelayTime = "5002";
|
|
|
|
|
// 판정설정 - 이중지연
|
|
|
|
|
public static readonly string DoubleDelayTime = "5003";
|
|
|
|
|
// 판정설정 - 판정개수
|
|
|
|
|
public static readonly string JudgmentCount = "5004";
|
|
|
|
|
// 판정설정 - 이송속도
|
|
|
|
|
public static readonly string FeedSpeed = "5005";
|
|
|
|
|
// 판정설정 - 동보정
|
|
|
|
|
public static readonly string DynamicCorrection = "5006";
|
|
|
|
|
// 판정설정 - Feeding 컨베어 지연시간
|
|
|
|
|
public static readonly string FeedingConveyorDelayTime = "5007";
|
|
|
|
|
// 판정설정 - Feeding 컨베어 동작시간
|
|
|
|
|
public static readonly string FeedingConveyorRunTime = "5008";
|
|
|
|
|
// 판정설정 - 배출 컨베어 지연시간
|
|
|
|
|
public static readonly string DischargeConveyorDelayTime = "5009";
|
|
|
|
|
// 판정설정 - 배출 컨베어 동작시간
|
|
|
|
|
public static readonly string DischargeConveyorRunTime = "5010";
|
2020-09-03 07:45:21 +00:00
|
|
|
|
// 판정설정 - 이동평균
|
|
|
|
|
public static readonly string MovingAverage = "5031";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
// 판정설정 - 자동판정 - 센서 검출 시간 읽기
|
|
|
|
|
public static readonly string ReadSensingTime = "5057";
|
|
|
|
|
// 판정설정 - 자동판정 - 필터갭
|
|
|
|
|
public static readonly string FilterGap = "5058";
|
|
|
|
|
// 판정설정 - 상승 지연시간
|
|
|
|
|
public static readonly string AscendDelayTime = "5011";
|
|
|
|
|
// 판정설정 - 하강 지연시간
|
|
|
|
|
public static readonly string DescendDelayTime = "5012";
|
|
|
|
|
// 판정설정 - 선별기 테스트
|
|
|
|
|
public static readonly string SorterTest = "5100";
|
|
|
|
|
// 판정설정 - 선별기1 모드 값
|
|
|
|
|
public static readonly string Sorter1Mode = "5101";
|
|
|
|
|
// 판정설정 - 선별기1 지연시간
|
|
|
|
|
public static readonly string Sorter1DelayTime = "5102";
|
|
|
|
|
// 판정설정 - 선별기1 동작시간
|
|
|
|
|
public static readonly string Sorter1RunTime = "5103";
|
|
|
|
|
// 판정설정 - 선별기2 모드 값
|
|
|
|
|
public static readonly string Sorter2Mode = "5104";
|
|
|
|
|
// 판정설정 - 선별기2 지연시간
|
|
|
|
|
public static readonly string Sorter2DelayTime = "5105";
|
|
|
|
|
// 판정설정 - 선별기2 동작시간
|
|
|
|
|
public static readonly string Sorter2RunTime = "5106";
|
|
|
|
|
// 판정설정 - 외부출력1 모드
|
|
|
|
|
public static readonly string ExternalOut1Mode = "5201";
|
|
|
|
|
// 판정설정 - 외부출력1 지연시간
|
|
|
|
|
public static readonly string ExternalOut1DelayTime = "5202";
|
|
|
|
|
// 판정설정 - 외부출력1 동작시간
|
|
|
|
|
public static readonly string ExternalOut1RunTime = "5203";
|
|
|
|
|
// 판정설정 - 외부출력2 모드
|
|
|
|
|
public static readonly string ExternalOut2Mode = "5204";
|
|
|
|
|
// 판정설정 - 외부출력2 지연시간
|
|
|
|
|
public static readonly string ExternalOut2DelayTime = "5205";
|
|
|
|
|
// 판정설정 - 외부출력2 동작시간
|
|
|
|
|
public static readonly string ExternalOut2RunTime = "5206";
|
|
|
|
|
// 판정설정 - 외부출력3 모드
|
|
|
|
|
public static readonly string ExternalOut3Mode = "5207";
|
|
|
|
|
// 판정설정 - 외부출력3 지연시간
|
|
|
|
|
public static readonly string ExternalOut3DelayTime = "5208";
|
|
|
|
|
// 판정설정 - 외부출력3 동작시간
|
|
|
|
|
public static readonly string ExternalOut3RunTime = "5209";
|
|
|
|
|
// 판정설정 - 외부출력4 모드
|
|
|
|
|
public static readonly string ExternalOut4Mode = "5210";
|
|
|
|
|
// 판정설정 - 외부출력4 지연시간
|
|
|
|
|
public static readonly string ExternalOut4DelayTime = "5211";
|
|
|
|
|
// 판정설정 - 외부출력4 동작시간
|
|
|
|
|
public static readonly string ExternalOut4RunTime = "5212";
|
2020-09-03 04:50:47 +00:00
|
|
|
|
// 판정설정 - 외부출력5 모드
|
|
|
|
|
public static readonly string ExternalOut5Mode = "5213";
|
|
|
|
|
// 판정설정 - 외부출력5 지연시간
|
|
|
|
|
public static readonly string ExternalOut5DelayTime = "5214";
|
|
|
|
|
// 판정설정 - 외부출력5 동작시간
|
|
|
|
|
public static readonly string ExternalOut5RunTime = "5215";
|
|
|
|
|
// 판정설정 - 외부출력6 모드
|
|
|
|
|
public static readonly string ExternalOut6Mode = "5216";
|
|
|
|
|
// 판정설정 - 외부출력6 지연시간
|
|
|
|
|
public static readonly string ExternalOut6DelayTime = "5217";
|
|
|
|
|
// 판정설정 - 외부출력6 동작시간
|
|
|
|
|
public static readonly string ExternalOut6RunTime = "5218";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
// 판정설정 - 외부출력9 모드
|
|
|
|
|
public static readonly string ExternalOut9Mode = "5225";
|
|
|
|
|
// 판정설정 - 외부출력9 지연시간
|
|
|
|
|
public static readonly string ExternalOut9DelayTime = "5226";
|
|
|
|
|
// 판정설정 - 외부출력9 동작시간
|
|
|
|
|
public static readonly string ExternalOut9RunTime = "5227";
|
|
|
|
|
// 판정설정 - 외부출력10 모드
|
|
|
|
|
public static readonly string ExternalOut10Mode = "5228";
|
|
|
|
|
// 판정설정 - 외부출력10 지연시간
|
|
|
|
|
public static readonly string ExternalOut10DelayTime = "5229";
|
|
|
|
|
// 판정설정 - 외부출력10 동작시간
|
|
|
|
|
public static readonly string ExternalOut10RunTime = "5230";
|
|
|
|
|
// 판정설정 - 파라미터 읽기
|
|
|
|
|
public static readonly string ParameterRead5901 = "5901";
|
|
|
|
|
// 판정설정 - 스타휠 회전주기
|
|
|
|
|
public static readonly string WheelCycleTime = "5301";
|
|
|
|
|
// 판정설정 - 스타휠 슬롯개수
|
|
|
|
|
public static readonly string WheelSlotCount = "5302";
|
|
|
|
|
// 판정설정 - 스타휠 슬롯배출지연개수
|
|
|
|
|
public static readonly string WheelSlotOutCount = "5303";
|
|
|
|
|
// 판정설정 - 진입센서 지연시간
|
|
|
|
|
public static readonly string EntrySensorDelayTime = "5304";
|
|
|
|
|
// 판정설정 - 서보드라이버 토크제한
|
|
|
|
|
public static readonly string ServoTorque = "5351";
|
|
|
|
|
// 판정설정 - 서보드라이버 회전속도
|
|
|
|
|
public static readonly string ServoSpeed = "5352";
|
|
|
|
|
// 판정설정 - 원점옵셋
|
|
|
|
|
public static readonly string ServoOffset = "5353";
|
|
|
|
|
// 판정설정 - 사용자정의1(선별기1모드,지연,동작,선별기2모드,지연,동작)
|
|
|
|
|
public static readonly string UserDefined1 = "5901";
|
|
|
|
|
|
|
|
|
|
// 옵션 - 부저 ON시간
|
|
|
|
|
public static readonly string BuzzerOnTime = "6001";
|
|
|
|
|
// 옵션 - 릴레이 동작시간
|
|
|
|
|
public static readonly string RelayRunTime = "6002";
|
|
|
|
|
// 옵션 - 이중진입사용여부
|
|
|
|
|
public static readonly string DoubleEnter = "6005";
|
|
|
|
|
// 옵션 - 채터링감지 설정
|
|
|
|
|
public static readonly string Chattering = "6006";
|
|
|
|
|
// 옵션 - 외부 NG 입력 사용
|
|
|
|
|
public static readonly string ExternalInput = "6007";
|
|
|
|
|
// 옵션 - 기타 NG 사용
|
|
|
|
|
public static readonly string ExternalNG = "6008";
|
|
|
|
|
// 옵션 - OPT1_샘플링개수
|
|
|
|
|
public static readonly string OPT1SamplingCount = "6201";
|
|
|
|
|
// 옵션 - OPT1_지연개수
|
|
|
|
|
public static readonly string OPT1DelayCount = "6202";
|
|
|
|
|
// 옵션 - OPT1_펄스폭
|
|
|
|
|
public static readonly string OPT1PulseWidth = "6203";
|
|
|
|
|
// 옵션 - OPT1_범위설정사용여부
|
|
|
|
|
public static readonly string OPT1RangeSetting = "6204";
|
|
|
|
|
// 옵션 - OPT1_상한범위
|
|
|
|
|
public static readonly string OPT1OverRange = "6205";
|
|
|
|
|
// 옵션 - OPT1_하한범위
|
|
|
|
|
public static readonly string OPT1UnderRange = "6206";
|
|
|
|
|
// 옵션 - OPT1_포트
|
|
|
|
|
public static readonly string OPT1Port = "6207";
|
|
|
|
|
// 옵션 - OPT2_포트
|
|
|
|
|
public static readonly string OPT2Port = "6231";
|
|
|
|
|
// 옵션 - OPT2_지연시간1
|
|
|
|
|
public static readonly string OPT2DelayTime1 = "6232";
|
|
|
|
|
// 옵션 - OPT2_지연시간2
|
|
|
|
|
public static readonly string OPT2DelayTime2 = "6233";
|
|
|
|
|
// 옵션 - 파라미터 읽기
|
|
|
|
|
public static readonly string ParameterRead6901 = "6901";
|
|
|
|
|
|
|
|
|
|
// RS232 통신1 속도
|
|
|
|
|
public static readonly string Serial1_BaudRate = "7001";
|
|
|
|
|
// RS232 통신1 모드
|
|
|
|
|
public static readonly string Serial1_Mode = "7002";
|
|
|
|
|
// RS232 통신 1 속도, 모드
|
|
|
|
|
public static readonly string Serial1 = "7003";
|
|
|
|
|
|
|
|
|
|
// 통신,IO설정 - INPUT ALL
|
|
|
|
|
public static readonly string InputAll = "7500";
|
|
|
|
|
// 통신,IO설정 = OUTPUT1
|
|
|
|
|
public static readonly string Output1 = "7701";
|
|
|
|
|
// 통신,IO설정 = OUTPUT2
|
|
|
|
|
public static readonly string Output2 = "7702";
|
|
|
|
|
// 통신,IO설정 = OUTPUT3
|
|
|
|
|
public static readonly string Output3 = "7703";
|
|
|
|
|
// 통신,IO설정 = OUTPUT4
|
|
|
|
|
public static readonly string Output4 = "7704";
|
|
|
|
|
// 통신,IO설정 = OUTPUT5
|
|
|
|
|
public static readonly string Output5 = "7705";
|
|
|
|
|
// 통신,IO설정 = OUTPUT6
|
|
|
|
|
public static readonly string Output6 = "7706";
|
|
|
|
|
// 통신,IO설정 = OUTPUT7
|
|
|
|
|
public static readonly string Output7 = "7707";
|
|
|
|
|
// 통신,IO설정 = OUTPUT8
|
|
|
|
|
public static readonly string Output8 = "7708";
|
|
|
|
|
// 통신,IO설정 = OUTPUT9
|
|
|
|
|
public static readonly string Output9 = "7709";
|
|
|
|
|
// 통신,IO설정 = OUTPUT10
|
|
|
|
|
public static readonly string Output10 = "7710";
|
|
|
|
|
// 통신,IO설정 = OUTPUT11
|
|
|
|
|
public static readonly string Output11 = "7711";
|
|
|
|
|
// 통신,IO설정 = OUTPUT12
|
|
|
|
|
public static readonly string Output12 = "7712";
|
|
|
|
|
// 통신,IO설정 = OUTPUT13
|
|
|
|
|
public static readonly string Output13 = "7713";
|
|
|
|
|
// 통신,IO설정 = OUTPUT14
|
|
|
|
|
public static readonly string Output14 = "7714";
|
|
|
|
|
// 통신,IO설정 = OUTPUT15
|
|
|
|
|
public static readonly string Output15 = "7715";
|
|
|
|
|
// 통신,IO설정 = OUTPUT16
|
|
|
|
|
public static readonly string Output16 = "7716";
|
|
|
|
|
|
|
|
|
|
// 전체파라미터 쓰기 1
|
|
|
|
|
public static readonly string SystemParameterWrite1 = "9018";
|
|
|
|
|
// 전체파라미터 쓰기 2
|
|
|
|
|
public static readonly string SystemParameterWrite2 = "9019";
|
|
|
|
|
// 전체파라미터 쓰기 3
|
|
|
|
|
public static readonly string SystemParameterWrite3 = "9020";
|
|
|
|
|
// 전체파라미터 쓰기 4
|
|
|
|
|
public static readonly string SystemParameterWrite4 = "9021";
|
|
|
|
|
// 랜덤모드 쓰기
|
|
|
|
|
public static readonly string RandomModeWrite = "9023";
|
|
|
|
|
// 중량설정값 쓰기
|
|
|
|
|
public static readonly string ParameterWeightSetting = "9024";
|
2020-09-03 07:45:21 +00:00
|
|
|
|
// 전체파라미터 쓰기
|
|
|
|
|
public static readonly string SystemParameterWriteAll = "9033";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
// 전체 카운트 읽기/쓰기
|
|
|
|
|
public static readonly string ParameterCount = "9031";
|
|
|
|
|
//// 시스템파라미터 읽기1
|
|
|
|
|
//public static readonly string SystemParameterRead1 = "9501";
|
|
|
|
|
//// 시스템파라미터 읽기2
|
|
|
|
|
//public static readonly string SystemParameterRead2 = "9502";
|
|
|
|
|
//// 시스템파라미터 읽기3
|
|
|
|
|
//public static readonly string SystemParameterRead3 = "9503";
|
|
|
|
|
//// 시스템파라미터 읽기4
|
|
|
|
|
//public static readonly string SystemParameterRead4 = "9504";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 시스템정보 파라미터 읽기1
|
|
|
|
|
public static readonly string SystemInformationRead1 = "9512";
|
|
|
|
|
// 시스템정보 파라미터 읽기2
|
|
|
|
|
public static readonly string SystemInformationRead2 = "9513";
|
|
|
|
|
// 시스템정보 파라미터 읽기3
|
|
|
|
|
public static readonly string SystemInformationRead3 = "9514";
|
|
|
|
|
// 시스템정보 파라미터 읽기4
|
|
|
|
|
public static readonly string SystemInformationRead4 = "9515";
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region CommunicationServo
|
|
|
|
|
public class ServoMotorParameterAddress
|
|
|
|
|
{
|
|
|
|
|
// Alarm Reset - 0x0049
|
|
|
|
|
public static readonly int AlarmReset = 73;
|
|
|
|
|
|
|
|
|
|
// CCW TRQ LMT - 0x00C8
|
|
|
|
|
public static readonly int CCWTorqueLimit = 200;
|
|
|
|
|
// CW TRQ LMT - 0x00C9
|
|
|
|
|
public static readonly int CWTorqueLimit = 201;
|
|
|
|
|
|
|
|
|
|
// Grop Speed 0 - 0x0131
|
|
|
|
|
public static readonly int GropSpeed0 = 305;
|
|
|
|
|
|
|
|
|
|
// Position CMD 0 - 0x01F4
|
|
|
|
|
public static readonly int PositionCMD0 = 500;
|
|
|
|
|
// Position CMD 1 - 0x01F5
|
|
|
|
|
public static readonly int PositionCMD1 = 501;
|
|
|
|
|
// Position CMD 2 - 0x01F6
|
|
|
|
|
public static readonly int PositionCMD2 = 502;
|
|
|
|
|
// Position CMD 3 - 0x01F7
|
|
|
|
|
public static readonly int PositionCMD3 = 503;
|
|
|
|
|
|
|
|
|
|
// ORG Speed 0 - 0x0258
|
|
|
|
|
public static readonly int ORGSpeed0 = 600;
|
|
|
|
|
// ORG Speed 1 - 0x0259
|
|
|
|
|
public static readonly int ORGSpeed1 = 601;
|
|
|
|
|
// Origin Offset - 0x025B
|
|
|
|
|
public static readonly int OriginOffset = 603;
|
|
|
|
|
// Jog Speed 0 - 0x025D
|
|
|
|
|
public static readonly int JogSpeed0 = 605;
|
|
|
|
|
|
|
|
|
|
// Angle Division - 0x02C2
|
|
|
|
|
public static readonly int AngleDivision = 706;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region SystemConfigurationItem1
|
|
|
|
|
public class SystemConfigurationItem1
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private bool m_IsDataBackup;
|
|
|
|
|
private bool m_IsLogin;
|
|
|
|
|
private bool m_IsBarcodeEnable;
|
|
|
|
|
private bool m_IsPrintPerProductEnable;
|
|
|
|
|
private bool m_IsExternalInputBuzzer;
|
|
|
|
|
private bool m_IsExternalInputLamp;
|
2022-02-16 00:05:19 +00:00
|
|
|
|
private bool m_IsBLDCON;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
private int m_EquipmentID;
|
|
|
|
|
private int m_DecimalPlaces;
|
|
|
|
|
private int m_ProductNumber;
|
|
|
|
|
private int m_UsbID;
|
|
|
|
|
private int m_SerialCOM1BaudRate;
|
|
|
|
|
private int m_SerialCOM1Mode;
|
|
|
|
|
private int m_SerialCOM3BaudRate;
|
|
|
|
|
private int m_SerialCOM3Mode;
|
|
|
|
|
private int m_SerialCOM4BaudRate;
|
|
|
|
|
private int m_SerialCOM4Mode;
|
|
|
|
|
private int m_DatabackupFormat;
|
|
|
|
|
private int m_TransmissionDelayTimeCOM1;
|
|
|
|
|
private int m_TransmissionDelayTimeCOM3;
|
|
|
|
|
private int m_TransmissionDelayTimeCOM4;
|
|
|
|
|
private int m_StatisticsPrintFormat;
|
|
|
|
|
|
|
|
|
|
private string m_SerialNumber;
|
|
|
|
|
private string m_MainBoardVersion;
|
|
|
|
|
private string m_Unit;
|
|
|
|
|
private string m_UserDefineCOM1;
|
|
|
|
|
private string m_UserDefineCOM3;
|
|
|
|
|
private string m_UserDefineCOM4;
|
|
|
|
|
|
|
|
|
|
private DataStore.LanguageID m_Language;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public SystemConfigurationItem1()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public bool IsDataBackup
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsDataBackup; }
|
|
|
|
|
set { this.m_IsDataBackup = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsLogin
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsLogin; }
|
|
|
|
|
set { this.m_IsLogin = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsBarcodeEnable
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsBarcodeEnable; }
|
|
|
|
|
set { this.m_IsBarcodeEnable = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsPrinterEnable
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.SerialCOM1Mode == 3 || this.SerialCOM3Mode == 3 || this.SerialCOM4Mode == 3)
|
|
|
|
|
return true;
|
|
|
|
|
else
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public bool IsPrintPerProductEnable
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsPrintPerProductEnable; }
|
|
|
|
|
set { this.m_IsPrintPerProductEnable = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsExternalInputLamp
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsExternalInputLamp; }
|
|
|
|
|
set { this.m_IsExternalInputLamp = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsExternalInputBuzzer
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsExternalInputBuzzer; }
|
|
|
|
|
set { this.m_IsExternalInputBuzzer = value; }
|
|
|
|
|
}
|
2022-02-16 00:05:19 +00:00
|
|
|
|
public bool IsBLDCON
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsBLDCON; }
|
|
|
|
|
set { this.m_IsBLDCON = value; }
|
|
|
|
|
}
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
public int EquipmentID
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_EquipmentID; }
|
|
|
|
|
set { this.m_EquipmentID = value; }
|
|
|
|
|
}
|
|
|
|
|
public int DecimalPlaces
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DecimalPlaces; }
|
|
|
|
|
set { this.m_DecimalPlaces = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ProductNumber
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProductNumber; }
|
|
|
|
|
set { this.m_ProductNumber = value; }
|
|
|
|
|
}
|
|
|
|
|
public int UsbID
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_UsbID; }
|
|
|
|
|
set { this.m_UsbID = value; }
|
|
|
|
|
}
|
|
|
|
|
public int SerialCOM1BaudRate
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SerialCOM1BaudRate; }
|
|
|
|
|
set { this.m_SerialCOM1BaudRate = value; }
|
|
|
|
|
}
|
|
|
|
|
public int SerialCOM1Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SerialCOM1Mode; }
|
|
|
|
|
set { this.m_SerialCOM1Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public int SerialCOM3BaudRate
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SerialCOM3BaudRate; }
|
|
|
|
|
set { this.m_SerialCOM3BaudRate = value; }
|
|
|
|
|
}
|
|
|
|
|
public int SerialCOM3Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SerialCOM3Mode; }
|
|
|
|
|
set { this.m_SerialCOM3Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public int SerialCOM4BaudRate
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SerialCOM4BaudRate; }
|
|
|
|
|
set { this.m_SerialCOM4BaudRate = value; }
|
|
|
|
|
}
|
|
|
|
|
public int SerialCOM4Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SerialCOM4Mode; }
|
|
|
|
|
set { this.m_SerialCOM4Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public int DatabackupFormat
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DatabackupFormat; }
|
|
|
|
|
set { this.m_DatabackupFormat = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ProductCount
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return 1000;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public int TransmissionDelayTimeCOM1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_TransmissionDelayTimeCOM1; }
|
|
|
|
|
set { this.m_TransmissionDelayTimeCOM1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int TransmissionDelayTimeCOM3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_TransmissionDelayTimeCOM3; }
|
|
|
|
|
set { this.m_TransmissionDelayTimeCOM3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int TransmissionDelayTimeCOM4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_TransmissionDelayTimeCOM4; }
|
|
|
|
|
set { this.m_TransmissionDelayTimeCOM4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int StatisticsPrintFormat
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_StatisticsPrintFormat; }
|
|
|
|
|
set { this.m_StatisticsPrintFormat = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string SerialNumber
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SerialNumber; }
|
|
|
|
|
set { this.m_SerialNumber = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MainBoardVersion
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MainBoardVersion; }
|
|
|
|
|
set { this.m_MainBoardVersion = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Unit
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Unit; }
|
|
|
|
|
set { this.m_Unit = value; }
|
|
|
|
|
}
|
|
|
|
|
public string UserDefineCOM1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_UserDefineCOM1; }
|
|
|
|
|
set { this.m_UserDefineCOM1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string UserDefineCOM3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_UserDefineCOM3; }
|
|
|
|
|
set { this.m_UserDefineCOM3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string UserDefineCOM4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_UserDefineCOM4; }
|
|
|
|
|
set { this.m_UserDefineCOM4 = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataStore.LanguageID Language
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Language; }
|
|
|
|
|
set { this.m_Language = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.IsDataBackup = false;
|
|
|
|
|
this.IsLogin = false;
|
|
|
|
|
this.IsBarcodeEnable = false;
|
|
|
|
|
this.IsPrintPerProductEnable = false;
|
|
|
|
|
this.IsExternalInputBuzzer = false;
|
|
|
|
|
this.IsExternalInputLamp = false;
|
2022-02-16 00:05:19 +00:00
|
|
|
|
this.IsBLDCON = false;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
this.EquipmentID = 1;
|
2020-09-14 08:43:49 +00:00
|
|
|
|
this.DecimalPlaces = 2;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
this.ProductNumber = 1;
|
|
|
|
|
this.UsbID = 1;
|
|
|
|
|
this.SerialCOM1BaudRate = 0;
|
|
|
|
|
this.SerialCOM1Mode = 0;
|
|
|
|
|
this.SerialCOM3BaudRate = 0;
|
|
|
|
|
this.SerialCOM3Mode = 0;
|
|
|
|
|
this.SerialCOM4BaudRate = 0;
|
|
|
|
|
this.SerialCOM4Mode = 0;
|
|
|
|
|
this.DatabackupFormat = 0;
|
|
|
|
|
this.TransmissionDelayTimeCOM1 = 0;
|
|
|
|
|
this.TransmissionDelayTimeCOM3 = 0;
|
|
|
|
|
this.TransmissionDelayTimeCOM4 = 0;
|
|
|
|
|
this.StatisticsPrintFormat = 0;
|
|
|
|
|
|
|
|
|
|
this.SerialNumber = "20F0000";
|
|
|
|
|
this.MainBoardVersion = "000";
|
|
|
|
|
this.Unit = "g";
|
|
|
|
|
this.UserDefineCOM1 = "";
|
|
|
|
|
this.UserDefineCOM3 = "";
|
|
|
|
|
this.UserDefineCOM4 = "";
|
|
|
|
|
|
|
|
|
|
this.Language = DataStore.LanguageID.Korean;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region StructSystemConfigurationItem1
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructSystemConfigurationItem1
|
|
|
|
|
{
|
|
|
|
|
public bool IsDataBackup;
|
|
|
|
|
public bool IsLogin;
|
|
|
|
|
|
|
|
|
|
public int EquipmentID;
|
|
|
|
|
public int DecimalPlaces;
|
|
|
|
|
public int ProductNumber;
|
|
|
|
|
public int UsbID;
|
|
|
|
|
public int Serial1BaudRate;
|
|
|
|
|
public int Serial1Mode;
|
|
|
|
|
public int Serial2BaudRate;
|
|
|
|
|
public int Serial2Mode;
|
|
|
|
|
public int Serial3BaudRate;
|
|
|
|
|
public int Serial3Mode;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)]
|
|
|
|
|
public string SerialNumber;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)]
|
|
|
|
|
public string Unit;
|
|
|
|
|
|
|
|
|
|
public DataStore.LanguageID Language;
|
|
|
|
|
|
2022-02-16 00:05:19 +00:00
|
|
|
|
public bool IsBLDCON;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public bool IsExternalInputLamp;
|
|
|
|
|
public bool IsExternalInputBuzzer;
|
|
|
|
|
public bool IsPrintPerProductEnable;
|
|
|
|
|
public bool IsBarcodeEnable;
|
|
|
|
|
|
|
|
|
|
public int StatisticsPrintFormat;
|
|
|
|
|
public int TransmissionDelayTimeCOM1;
|
|
|
|
|
public int TransmissionDelayTimeCOM3;
|
|
|
|
|
public int TransmissionDelayTimeCOM4;
|
|
|
|
|
public int DatabackupFormat;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
|
|
|
|
|
public string DummyString1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
|
|
|
|
|
public string UserDefineCOM1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
|
|
|
|
|
public string UserDefineCOM3;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
|
|
|
|
|
public string UserDefineCOM4;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 100)]
|
|
|
|
|
public string DummyString5;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region SystemConfigurationItem2
|
|
|
|
|
public class SystemConfigurationItem2
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
// 카운터출력 관련
|
|
|
|
|
private int m_CountingOutput1Mode;
|
|
|
|
|
private int m_CountingOutput1Number;
|
|
|
|
|
private bool m_IsCountingOutput1ConveyorStop;
|
|
|
|
|
private bool m_IsCountingOutput1BuzzerOn;
|
|
|
|
|
private bool m_IsCountingOutput1Continuous;
|
|
|
|
|
private bool m_IsCountingOutput1ExternalOutput;
|
|
|
|
|
|
|
|
|
|
private int m_CountingOutput2Mode;
|
|
|
|
|
private int m_CountingOutput2Number;
|
|
|
|
|
private bool m_IsCountingOutput2Continuous;
|
|
|
|
|
private bool m_IsCountingOutput2ConveyorStop;
|
|
|
|
|
private bool m_IsCountingOutput2BuzzerOn;
|
|
|
|
|
private bool m_IsCountingOutput2ExternalOutput;
|
|
|
|
|
|
|
|
|
|
// 통신모드 관련
|
|
|
|
|
private int m_HitachiRoomNumberCOM1;
|
|
|
|
|
private int m_MarkoprintLineNumberCOM1;
|
|
|
|
|
private bool m_IsHitachiBlankToNoneCOM1;
|
|
|
|
|
private bool m_IsMarkoprintDatePrintCOM1;
|
|
|
|
|
private bool m_IsMarkoprintTodaytDatePrintCOM1;
|
|
|
|
|
private string m_MarkoprintDateSettingCOM1;
|
|
|
|
|
|
|
|
|
|
private int m_HitachiRoomNumberCOM3;
|
|
|
|
|
private int m_MarkoprintLineNumberCOM3;
|
|
|
|
|
private bool m_IsHitachiBlankToNoneCOM3;
|
|
|
|
|
private bool m_IsMarkoprintDatePrintCOM3;
|
|
|
|
|
private bool m_IsMarkoprintTodaytDatePrintCOM3;
|
|
|
|
|
private string m_MarkoprintDateSettingCOM3;
|
|
|
|
|
|
|
|
|
|
private int m_HitachiRoomNumberCOM4;
|
|
|
|
|
private int m_MarkoprintLineNumberCOM4;
|
|
|
|
|
private bool m_IsHitachiBlankToNoneCOM4;
|
|
|
|
|
private bool m_IsMarkoprintDatePrintCOM4;
|
|
|
|
|
private bool m_IsMarkoprintTodaytDatePrintCOM4;
|
|
|
|
|
private string m_MarkoprintDateSettingCOM4;
|
|
|
|
|
|
|
|
|
|
// 랜덤모드 관련
|
|
|
|
|
private bool m_IsGroup1UsingRandomMode;
|
|
|
|
|
private bool m_IsGroup2UsingRandomMode;
|
|
|
|
|
private bool m_IsGroup3UsingRandomMode;
|
|
|
|
|
private bool m_IsGroup4UsingRandomMode;
|
|
|
|
|
private bool m_IsGroup5UsingRandomMode;
|
|
|
|
|
|
|
|
|
|
private int m_FileNameExtension;
|
|
|
|
|
|
|
|
|
|
private int m_HitachiRoomNumberEthernet;
|
|
|
|
|
private int m_MarkoprintLineNumberEthernet;
|
|
|
|
|
private bool m_IsMarkoprintDatePrintEthernet;
|
|
|
|
|
private bool m_IsMarkoprintTodaytDatePrintEthernet;
|
|
|
|
|
private string m_MarkoprintDateSettingEthernet;
|
|
|
|
|
private int m_EthernetPort;
|
|
|
|
|
private int m_EthernetCommMode;
|
|
|
|
|
private int m_EthernetOperationMode;
|
|
|
|
|
private string m_EthernetAddress;
|
|
|
|
|
private int m_ConveyorLength;
|
|
|
|
|
private int m_SortingPointLength;
|
2021-03-19 04:21:59 +00:00
|
|
|
|
private int m_EthernetLocalPort;
|
2021-05-18 06:37:14 +00:00
|
|
|
|
private int m_Barcode;
|
|
|
|
|
|
|
|
|
|
private int m_ModbusRTUSelectFunction;
|
|
|
|
|
private int m_ModbusRTUSlaveIDCOM1;
|
|
|
|
|
private int m_ModbusRTUSlaveIDCOM3;
|
|
|
|
|
private int m_ModbusRTUSlaveIDCOM4;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
private bool m_IsBypassDirectionPass;
|
|
|
|
|
private bool m_IsBypassOnce;
|
|
|
|
|
private bool m_IsCommunicationOption;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public SystemConfigurationItem2()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public int CountingOutput1Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CountingOutput1Mode; }
|
|
|
|
|
set { this.m_CountingOutput1Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public int CountingOutput1Number
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CountingOutput1Number; }
|
|
|
|
|
set { this.m_CountingOutput1Number = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsCountingOutput1Continuous
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsCountingOutput1Continuous; }
|
|
|
|
|
set { this.m_IsCountingOutput1Continuous = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsCountingOutput1ConveyorStop
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsCountingOutput1ConveyorStop; }
|
|
|
|
|
set { this.m_IsCountingOutput1ConveyorStop = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsCountingOutput1BuzzerOn
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsCountingOutput1BuzzerOn; }
|
|
|
|
|
set { this.m_IsCountingOutput1BuzzerOn = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsCountingOutput1ExternalOutput
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsCountingOutput1ExternalOutput; }
|
|
|
|
|
set { this.m_IsCountingOutput1ExternalOutput = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int CountingOutput2Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CountingOutput2Mode; }
|
|
|
|
|
set { this.m_CountingOutput2Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public int CountingOutput2Number
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CountingOutput2Number; }
|
|
|
|
|
set { this.m_CountingOutput2Number = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsCountingOutput2Continuous
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsCountingOutput2Continuous; }
|
|
|
|
|
set { this.m_IsCountingOutput2Continuous = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsCountingOutput2ConveyorStop
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsCountingOutput2ConveyorStop; }
|
|
|
|
|
set { this.m_IsCountingOutput2ConveyorStop = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsCountingOutput2BuzzerOn
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsCountingOutput2BuzzerOn; }
|
|
|
|
|
set { this.m_IsCountingOutput2BuzzerOn = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsCountingOutput2ExternalOutput
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsCountingOutput2ExternalOutput; }
|
|
|
|
|
set { this.m_IsCountingOutput2ExternalOutput = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int HitachiRoomNumberCOM1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_HitachiRoomNumberCOM1; }
|
|
|
|
|
set { this.m_HitachiRoomNumberCOM1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsHitachiBlankToNoneCOM1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsHitachiBlankToNoneCOM1; }
|
|
|
|
|
set { this.m_IsHitachiBlankToNoneCOM1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int MarkoprintLineNumberCOM1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MarkoprintLineNumberCOM1; }
|
|
|
|
|
set { this.m_MarkoprintLineNumberCOM1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsMarkoprintDatePrintCOM1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsMarkoprintDatePrintCOM1; }
|
|
|
|
|
set { this.m_IsMarkoprintDatePrintCOM1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsMarkoprintTodaytDatePrintCOM1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsMarkoprintTodaytDatePrintCOM1; }
|
|
|
|
|
set { this.m_IsMarkoprintTodaytDatePrintCOM1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MarkoprintDateSettingCOM1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MarkoprintDateSettingCOM1; }
|
|
|
|
|
set { this.m_MarkoprintDateSettingCOM1 = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int HitachiRoomNumberCOM3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_HitachiRoomNumberCOM3; }
|
|
|
|
|
set { this.m_HitachiRoomNumberCOM3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsHitachiBlankToNoneCOM3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsHitachiBlankToNoneCOM3; }
|
|
|
|
|
set { this.m_IsHitachiBlankToNoneCOM3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int MarkoprintLineNumberCOM3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MarkoprintLineNumberCOM3; }
|
|
|
|
|
set { this.m_MarkoprintLineNumberCOM3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsMarkoprintDatePrintCOM3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsMarkoprintDatePrintCOM3; }
|
|
|
|
|
set { this.m_IsMarkoprintDatePrintCOM3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsMarkoprintTodaytDatePrintCOM3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsMarkoprintTodaytDatePrintCOM3; }
|
|
|
|
|
set { this.m_IsMarkoprintTodaytDatePrintCOM3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MarkoprintDateSettingCOM3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MarkoprintDateSettingCOM3; }
|
|
|
|
|
set { this.m_MarkoprintDateSettingCOM3 = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int HitachiRoomNumberCOM4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_HitachiRoomNumberCOM4; }
|
|
|
|
|
set { this.m_HitachiRoomNumberCOM4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsHitachiBlankToNoneCOM4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsHitachiBlankToNoneCOM4; }
|
|
|
|
|
set { this.m_IsHitachiBlankToNoneCOM4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int MarkoprintLineNumberCOM4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MarkoprintLineNumberCOM4; }
|
|
|
|
|
set { this.m_MarkoprintLineNumberCOM4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsMarkoprintDatePrintCOM4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsMarkoprintDatePrintCOM4; }
|
|
|
|
|
set { this.m_IsMarkoprintDatePrintCOM4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsMarkoprintTodaytDatePrintCOM4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsMarkoprintTodaytDatePrintCOM4; }
|
|
|
|
|
set { this.m_IsMarkoprintTodaytDatePrintCOM4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MarkoprintDateSettingCOM4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MarkoprintDateSettingCOM4; }
|
|
|
|
|
set { this.m_MarkoprintDateSettingCOM4 = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsGroup1UsingRandomMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsGroup1UsingRandomMode; }
|
|
|
|
|
set { this.m_IsGroup1UsingRandomMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsGroup2UsingRandomMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsGroup2UsingRandomMode; }
|
|
|
|
|
set { this.m_IsGroup2UsingRandomMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsGroup3UsingRandomMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsGroup3UsingRandomMode; }
|
|
|
|
|
set { this.m_IsGroup3UsingRandomMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsGroup4UsingRandomMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsGroup4UsingRandomMode; }
|
|
|
|
|
set { this.m_IsGroup4UsingRandomMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsGroup5UsingRandomMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsGroup5UsingRandomMode; }
|
|
|
|
|
set { this.m_IsGroup5UsingRandomMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsUsingRandomMode
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.IsGroup1UsingRandomMode == true || this.IsGroup2UsingRandomMode == true ||
|
|
|
|
|
this.IsGroup3UsingRandomMode == true || this.IsGroup4UsingRandomMode == true ||
|
|
|
|
|
this.IsGroup5UsingRandomMode == true)
|
|
|
|
|
return true;
|
|
|
|
|
else
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int FileNameExtension
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_FileNameExtension; }
|
|
|
|
|
set { this.m_FileNameExtension = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int HitachiRoomNumberEthernet
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_HitachiRoomNumberEthernet; }
|
|
|
|
|
set { this.m_HitachiRoomNumberEthernet = value; }
|
|
|
|
|
}
|
|
|
|
|
public int MarkoprintLineNumberEthernet
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MarkoprintLineNumberEthernet; }
|
|
|
|
|
set { this.m_MarkoprintLineNumberEthernet = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsMarkoprintDatePrintEthernet
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsMarkoprintDatePrintEthernet; }
|
|
|
|
|
set { this.m_IsMarkoprintDatePrintEthernet = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsMarkoprintTodaytDatePrintEthernet
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsMarkoprintTodaytDatePrintEthernet; }
|
|
|
|
|
set { this.m_IsMarkoprintTodaytDatePrintEthernet = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MarkoprintDateSettingEthernet
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MarkoprintDateSettingEthernet; }
|
|
|
|
|
set { this.m_MarkoprintDateSettingEthernet = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsEthernetEnable
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.EthernetOperationMode != 0)
|
|
|
|
|
return true;
|
|
|
|
|
else
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public int EthernetPort
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_EthernetPort; }
|
|
|
|
|
set { this.m_EthernetPort = value; }
|
|
|
|
|
}
|
|
|
|
|
public int EthernetCommMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_EthernetCommMode; }
|
|
|
|
|
set { this.m_EthernetCommMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public int EthernetOperationMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_EthernetOperationMode; }
|
|
|
|
|
set { this.m_EthernetOperationMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string EthernetAddress
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_EthernetAddress; }
|
|
|
|
|
set { this.m_EthernetAddress = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ConveyorLength
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ConveyorLength; }
|
|
|
|
|
set { this.m_ConveyorLength = value; }
|
|
|
|
|
}
|
|
|
|
|
public int SortingPointLength
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SortingPointLength; }
|
|
|
|
|
set { this.m_SortingPointLength = value; }
|
|
|
|
|
}
|
2021-03-19 04:21:59 +00:00
|
|
|
|
public int EthernetLocalPort
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_EthernetLocalPort; }
|
|
|
|
|
set { this.m_EthernetLocalPort = value; }
|
|
|
|
|
}
|
2021-05-18 06:37:14 +00:00
|
|
|
|
public int Barcode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Barcode; }
|
|
|
|
|
set { this.m_Barcode = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int ModbusRTUSelectFunction
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ModbusRTUSelectFunction; }
|
|
|
|
|
set { this.m_ModbusRTUSelectFunction = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ModbusRTUSlaveIDCOM1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ModbusRTUSlaveIDCOM1; }
|
|
|
|
|
set { this.m_ModbusRTUSlaveIDCOM1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ModbusRTUSlaveIDCOM3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ModbusRTUSlaveIDCOM3; }
|
|
|
|
|
set { this.m_ModbusRTUSlaveIDCOM3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ModbusRTUSlaveIDCOM4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ModbusRTUSlaveIDCOM4; }
|
|
|
|
|
set { this.m_ModbusRTUSlaveIDCOM4 = value; }
|
|
|
|
|
}
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
public bool IsBypassDirectionPass
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsBypassDirectionPass; }
|
|
|
|
|
set { this.m_IsBypassDirectionPass = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsBypassOnce
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsBypassOnce; }
|
|
|
|
|
set { this.m_IsBypassOnce = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsCommunicationOption
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsCommunicationOption; }
|
|
|
|
|
set { this.m_IsCommunicationOption = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.CountingOutput1Mode = 0;
|
|
|
|
|
this.CountingOutput1Number = 0;
|
|
|
|
|
this.IsCountingOutput1Continuous = false;
|
|
|
|
|
this.IsCountingOutput1ConveyorStop = false;
|
|
|
|
|
this.IsCountingOutput1BuzzerOn = false;
|
|
|
|
|
this.IsCountingOutput1ExternalOutput = false;
|
|
|
|
|
|
|
|
|
|
this.CountingOutput2Mode = 0;
|
|
|
|
|
this.CountingOutput2Number = 0;
|
|
|
|
|
this.IsCountingOutput2Continuous = false;
|
|
|
|
|
this.IsCountingOutput2ConveyorStop = false;
|
|
|
|
|
this.IsCountingOutput2BuzzerOn = false;
|
|
|
|
|
this.IsCountingOutput2ExternalOutput = false;
|
|
|
|
|
|
|
|
|
|
this.HitachiRoomNumberCOM1 = 1;
|
|
|
|
|
this.MarkoprintLineNumberCOM1 = 0;
|
|
|
|
|
this.IsHitachiBlankToNoneCOM1 = false;
|
|
|
|
|
this.IsMarkoprintDatePrintCOM1 = false;
|
|
|
|
|
this.IsMarkoprintTodaytDatePrintCOM1 = false;
|
|
|
|
|
this.MarkoprintDateSettingCOM1 = "";
|
|
|
|
|
|
|
|
|
|
this.HitachiRoomNumberCOM3 = 1;
|
|
|
|
|
this.MarkoprintLineNumberCOM3 = 0;
|
|
|
|
|
this.IsHitachiBlankToNoneCOM3 = false;
|
|
|
|
|
this.IsMarkoprintDatePrintCOM3 = false;
|
|
|
|
|
this.IsMarkoprintTodaytDatePrintCOM3 = false;
|
|
|
|
|
this.MarkoprintDateSettingCOM3 = "";
|
|
|
|
|
|
|
|
|
|
this.HitachiRoomNumberCOM4 = 1;
|
|
|
|
|
this.MarkoprintLineNumberCOM4 = 0;
|
|
|
|
|
this.IsHitachiBlankToNoneCOM4 = false;
|
|
|
|
|
this.IsMarkoprintDatePrintCOM4 = false;
|
|
|
|
|
this.IsMarkoprintTodaytDatePrintCOM4 = false;
|
|
|
|
|
this.MarkoprintDateSettingCOM4 = "";
|
|
|
|
|
|
|
|
|
|
this.IsGroup1UsingRandomMode = false;
|
|
|
|
|
this.IsGroup2UsingRandomMode = false;
|
|
|
|
|
this.IsGroup3UsingRandomMode = false;
|
|
|
|
|
this.IsGroup4UsingRandomMode = false;
|
|
|
|
|
this.IsGroup5UsingRandomMode = false;
|
|
|
|
|
|
|
|
|
|
this.FileNameExtension = 0;
|
|
|
|
|
|
|
|
|
|
this.HitachiRoomNumberEthernet = 1;
|
|
|
|
|
this.MarkoprintLineNumberEthernet = 0;
|
|
|
|
|
this.IsMarkoprintDatePrintEthernet = false;
|
|
|
|
|
this.IsMarkoprintTodaytDatePrintEthernet = false;
|
|
|
|
|
this.MarkoprintDateSettingEthernet = "";
|
|
|
|
|
this.EthernetPort = 0;
|
|
|
|
|
this.EthernetCommMode = 0;
|
|
|
|
|
this.EthernetOperationMode = 0;
|
|
|
|
|
this.EthernetAddress = "0.0.0.0";
|
|
|
|
|
this.ConveyorLength = 450;
|
|
|
|
|
this.SortingPointLength = 250;
|
2021-03-19 04:21:59 +00:00
|
|
|
|
this.EthernetLocalPort = 0;
|
2021-05-18 06:37:14 +00:00
|
|
|
|
this.Barcode = 0;
|
|
|
|
|
|
|
|
|
|
this.ModbusRTUSelectFunction = 0;
|
|
|
|
|
this.ModbusRTUSlaveIDCOM1 = 1;
|
|
|
|
|
this.ModbusRTUSlaveIDCOM3 = 1;
|
|
|
|
|
this.ModbusRTUSlaveIDCOM4 = 1;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
this.IsBypassDirectionPass = true;
|
|
|
|
|
this.IsBypassOnce = true;
|
|
|
|
|
this.IsCommunicationOption = false;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region StructSystemConfigurationItem2
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructSystemConfigurationItem2
|
|
|
|
|
{
|
|
|
|
|
public bool IsAlarm1Continuous;
|
|
|
|
|
public bool IsAlarm1ConveyorStop;
|
|
|
|
|
public bool IsAlarm1BuzzerOn;
|
|
|
|
|
public bool IsAlarm1ExternalOutput;
|
|
|
|
|
public bool IsAlarm2Continuous;
|
|
|
|
|
public bool IsAlarm2ConveyorStop;
|
|
|
|
|
public bool IsAlarm2BuzzerOn;
|
|
|
|
|
public bool IsAlarm2ExternalOutput;
|
|
|
|
|
|
|
|
|
|
public bool DummyBool1;
|
|
|
|
|
public bool IsCommunicationOption;
|
|
|
|
|
public bool IsBypassOnce;
|
|
|
|
|
public bool IsBypassDirectionPass;
|
|
|
|
|
public bool IsHitachiBlankToNoneCOM4;
|
|
|
|
|
public bool IsHitachiBlankToNoneCOM3;
|
|
|
|
|
public bool IsHitachiBlankToNoneCOM1;
|
|
|
|
|
public bool IsMarkoprintTodaytDatePrintEthernet;
|
|
|
|
|
public bool IsMarkoprintDatePrintEthernet;
|
|
|
|
|
public bool IsGroup1UsingRandomMode;
|
|
|
|
|
public bool IsGroup2UsingRandomMode;
|
|
|
|
|
public bool IsGroup3UsingRandomMode;
|
|
|
|
|
public bool IsGroup4UsingRandomMode;
|
|
|
|
|
public bool IsGroup5UsingRandomMode;
|
|
|
|
|
public bool IsMarkoprintTodaytDatePrintCOM4;
|
|
|
|
|
public bool IsMarkoprintDatePrintCOM4;
|
|
|
|
|
public bool IsMarkoprintTodaytDatePrintCOM3;
|
|
|
|
|
public bool IsMarkoprintDatePrintCOM3;
|
|
|
|
|
public bool IsMarkoprintTodaytDatePrintCOM1;
|
|
|
|
|
public bool IsMarkoprintDatePrintCOM1;
|
|
|
|
|
|
|
|
|
|
public int Alarm1Mode;
|
|
|
|
|
public int Alarm1Number;
|
|
|
|
|
public int Alarm2Mode;
|
|
|
|
|
public int Alarm2Number;
|
|
|
|
|
|
|
|
|
|
public int DummyInt1;
|
|
|
|
|
public int DummyInt2;
|
|
|
|
|
public int DummyInt3;
|
|
|
|
|
public int DummyInt4;
|
|
|
|
|
public int DummyInt5;
|
|
|
|
|
public int DummyInt6;
|
|
|
|
|
public int DummyInt7;
|
|
|
|
|
public int DummyInt8;
|
|
|
|
|
public int DummyInt9;
|
|
|
|
|
public int DummyInt10;
|
2021-05-18 06:37:14 +00:00
|
|
|
|
public int ModbusRTUSelectFunction;
|
|
|
|
|
public int ModbusRTUSlaveIDCOM1;
|
|
|
|
|
public int ModbusRTUSlaveIDCOM3;
|
|
|
|
|
public int ModbusRTUSlaveIDCOM4;
|
|
|
|
|
public int Barcode;
|
2021-03-19 04:21:59 +00:00
|
|
|
|
public int EthernetLocalPort;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public int SortingPointLength;
|
|
|
|
|
public int ConveyorLength;
|
|
|
|
|
public int MarkoprintLineNumberEthernet;
|
|
|
|
|
public int HitachiRoomNumberEthernet;
|
|
|
|
|
public int EthernetPort;
|
|
|
|
|
public int EthernetCommMode;
|
|
|
|
|
public int EthernetOperationMode;
|
|
|
|
|
public int FileNameExtension;
|
|
|
|
|
public int MarkoprintLineNumberCOM4;
|
|
|
|
|
public int HitachiRoomNumberCOM4;
|
|
|
|
|
public int MarkoprintLineNumberCOM3;
|
|
|
|
|
public int HitachiRoomNumberCOM3;
|
|
|
|
|
public int MarkoprintLineNumberCOM1;
|
|
|
|
|
public int HitachiRoomNumberCOM1;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
|
|
|
|
|
public string DummyString1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
|
|
|
|
|
public string DummyString2;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString3;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString4;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString5;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString6;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString7;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString8;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString9;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString10;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string MarkoprintDateSettingEthernet;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string EthernetAddress;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string MarkoprintDateSettingCOM4;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string MarkoprintDateSettingCOM3;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string MarkoprintDateSettingCOM1;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region ProductItem
|
|
|
|
|
public class ProductItem
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private int m_Number;
|
|
|
|
|
|
|
|
|
|
private string m_Name;
|
|
|
|
|
private string m_LotNo;
|
|
|
|
|
private string m_UnderRange;
|
|
|
|
|
private string m_PassRange;
|
|
|
|
|
private string m_OverRange;
|
|
|
|
|
private string m_TareRange;
|
|
|
|
|
|
|
|
|
|
private int m_ProgressBarMaximum;
|
|
|
|
|
private int m_ProgressBarMinimum;
|
|
|
|
|
|
|
|
|
|
private Collection<int> m_CollectionNormalDistributionRange;
|
|
|
|
|
private Collection<int> m_CollectionNormalDistributionViewRange;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public ProductItem()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public int Number
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Number; }
|
|
|
|
|
set { this.m_Number = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Name; }
|
|
|
|
|
set { this.m_Name = value; }
|
|
|
|
|
}
|
|
|
|
|
public string LotNo
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_LotNo; }
|
|
|
|
|
set { this.m_LotNo = value; }
|
|
|
|
|
}
|
|
|
|
|
public string UnderRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_UnderRange; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.m_UnderRange = value;
|
|
|
|
|
|
|
|
|
|
this.ProgressBarLevelRescale();
|
|
|
|
|
this.NormalDistributionRangeCalculation();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public string PassRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PassRange; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.m_PassRange = value;
|
|
|
|
|
|
|
|
|
|
this.NormalDistributionRangeCalculation();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public string OverRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OverRange; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.m_OverRange = value;
|
|
|
|
|
|
|
|
|
|
this.ProgressBarLevelRescale();
|
|
|
|
|
this.NormalDistributionRangeCalculation();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public string TareRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_TareRange; }
|
|
|
|
|
set { this.m_TareRange = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int OverRangeDeviation
|
|
|
|
|
{
|
|
|
|
|
get { return this.OverRangeInt - this.PassRangeInt; }
|
|
|
|
|
//set
|
|
|
|
|
//{
|
|
|
|
|
// int iValue = 0;
|
|
|
|
|
|
|
|
|
|
// iValue = this.OverRangeInt - Math.Abs(value);
|
|
|
|
|
|
|
|
|
|
// this.m_OverRange = iValue.ToString();
|
|
|
|
|
// this.m_OverRangeDeviation = value;
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
public int UnderRangeDeviation
|
|
|
|
|
{
|
|
|
|
|
get { return this.UnderRangeInt - this.PassRangeInt; }
|
|
|
|
|
//set
|
|
|
|
|
//{
|
|
|
|
|
// int iValue = 0;
|
|
|
|
|
|
|
|
|
|
// iValue = this.UnderRangeInt - Math.Abs(value);
|
|
|
|
|
|
|
|
|
|
// this.m_UnderRange = iValue.ToString();
|
|
|
|
|
// this.m_UnderRangeDeviation = value;
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int UnderRangeInt
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.UnderRange == null)
|
|
|
|
|
return -1;
|
|
|
|
|
else
|
|
|
|
|
return int.Parse(this.UnderRange);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public int PassRangeInt
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.PassRange == null)
|
|
|
|
|
return -1;
|
|
|
|
|
else
|
|
|
|
|
return int.Parse(this.PassRange);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public int OverRangeInt
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.OverRange == null)
|
|
|
|
|
return -1;
|
|
|
|
|
else
|
|
|
|
|
return int.Parse(this.OverRange);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public int TareRangeInt
|
|
|
|
|
{
|
|
|
|
|
get { return int.Parse(this.TareRange); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int ProgressBarMaximum
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProgressBarMaximum; }
|
|
|
|
|
private set { this.m_ProgressBarMaximum = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ProgressBarMinimum
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProgressBarMinimum; }
|
|
|
|
|
private set { this.m_ProgressBarMinimum = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Collection<int> CollectionNormalDistributionRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CollectionNormalDistributionRange; }
|
|
|
|
|
private set { this.m_CollectionNormalDistributionRange = value; }
|
|
|
|
|
}
|
|
|
|
|
public Collection<int> CollectionNormalDistributionViewRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CollectionNormalDistributionViewRange; }
|
|
|
|
|
private set { this.m_CollectionNormalDistributionViewRange = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.CollectionNormalDistributionRange = new Collection<int>();
|
|
|
|
|
this.CollectionNormalDistributionRange.Clear();
|
|
|
|
|
for (int i = 0; i < 8; i++)
|
|
|
|
|
this.CollectionNormalDistributionRange.Add(0);
|
|
|
|
|
|
|
|
|
|
this.CollectionNormalDistributionViewRange = new Collection<int>();
|
|
|
|
|
this.CollectionNormalDistributionViewRange.Clear();
|
|
|
|
|
for (int i = 0; i < 9; i++)
|
|
|
|
|
this.CollectionNormalDistributionViewRange.Add(0);
|
|
|
|
|
|
|
|
|
|
this.Number = 1;
|
|
|
|
|
this.Name = "Product 1";
|
|
|
|
|
this.LotNo = "Lot 1";
|
|
|
|
|
this.PassRange = "2000";
|
|
|
|
|
this.UnderRange = "1000";
|
|
|
|
|
this.OverRange = "3000";
|
|
|
|
|
this.TareRange = "0";
|
|
|
|
|
|
|
|
|
|
this.ProgressBarMinimum = 0;
|
|
|
|
|
this.ProgressBarMaximum = 5000;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ProgressBarLevelRescale()
|
|
|
|
|
{
|
|
|
|
|
int minBar, maxBar, gap;
|
|
|
|
|
int OverRange, UnderRange;
|
|
|
|
|
|
|
|
|
|
if (this.OverRange == null || this.UnderRange == null)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
OverRange = int.Parse(this.OverRange);
|
|
|
|
|
UnderRange = int.Parse(this.UnderRange);
|
|
|
|
|
|
|
|
|
|
gap = OverRange - UnderRange;
|
|
|
|
|
|
|
|
|
|
minBar = UnderRange - gap;
|
|
|
|
|
maxBar = OverRange + gap;
|
|
|
|
|
|
|
|
|
|
this.ProgressBarMaximum = maxBar;
|
|
|
|
|
this.ProgressBarMinimum = minBar;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void NormalDistributionRangeCalculation()
|
|
|
|
|
{
|
|
|
|
|
int overGap = 0, underGap = 0, gap = 0, gap1 = 0;
|
|
|
|
|
|
|
|
|
|
if (this.OverRangeInt == -1 || this.PassRangeInt == -1 || this.UnderRangeInt == -1)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
overGap = this.OverRangeInt - this.PassRangeInt;
|
|
|
|
|
underGap = this.PassRangeInt - this.UnderRangeInt;
|
|
|
|
|
|
|
|
|
|
if (overGap > underGap)
|
|
|
|
|
gap = overGap;
|
|
|
|
|
else
|
|
|
|
|
gap = underGap;
|
|
|
|
|
|
|
|
|
|
gap1 = gap / 5;
|
|
|
|
|
|
|
|
|
|
if (gap1 == 0)
|
|
|
|
|
gap1 = gap;
|
|
|
|
|
|
|
|
|
|
this.CollectionNormalDistributionViewRange[0] = gap1 * 12;
|
|
|
|
|
this.CollectionNormalDistributionViewRange[1] = gap1 * 9;
|
|
|
|
|
this.CollectionNormalDistributionViewRange[2] = gap1 * 6;
|
|
|
|
|
this.CollectionNormalDistributionViewRange[3] = gap1 * 3;
|
|
|
|
|
this.CollectionNormalDistributionViewRange[4] = 0;
|
|
|
|
|
this.CollectionNormalDistributionViewRange[5] = gap1 * 3;
|
|
|
|
|
this.CollectionNormalDistributionViewRange[6] = gap1 * 6;
|
|
|
|
|
this.CollectionNormalDistributionViewRange[7] = gap1 * 9;
|
|
|
|
|
this.CollectionNormalDistributionViewRange[8] = gap1 * 12;
|
|
|
|
|
|
|
|
|
|
this.CollectionNormalDistributionRange[0] = this.PassRangeInt + (gap1 * 9) + 1;
|
|
|
|
|
this.CollectionNormalDistributionRange[1] = this.PassRangeInt + (gap1 * 6) + 1;
|
|
|
|
|
this.CollectionNormalDistributionRange[2] = this.PassRangeInt + (gap1 * 3) + 1;
|
|
|
|
|
this.CollectionNormalDistributionRange[3] = this.PassRangeInt + gap1 + 1;
|
|
|
|
|
this.CollectionNormalDistributionRange[4] = this.PassRangeInt - gap1 + 1;
|
|
|
|
|
this.CollectionNormalDistributionRange[5] = this.PassRangeInt - (gap1 * 3) + 1;
|
|
|
|
|
this.CollectionNormalDistributionRange[6] = this.PassRangeInt - (gap1 * 6) + 1;
|
|
|
|
|
this.CollectionNormalDistributionRange[7] = this.PassRangeInt - (gap1 * 9) + 1;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region StructProductItem
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructProductItem
|
|
|
|
|
{
|
|
|
|
|
public int Number;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
|
|
|
|
|
public string Name;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
|
|
|
|
|
public string LotNo;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
|
|
|
|
|
public string OverRange;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
|
|
|
|
|
public string UnderRange;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
|
|
|
|
|
public string PassRange;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
|
|
|
|
|
public string TareRange;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
|
|
|
|
|
public string DummyString1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
|
|
|
|
|
public string DummyString2;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
|
|
|
|
|
public string DummyString3;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
|
|
|
|
|
public string DummyString4;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region WeightData
|
|
|
|
|
public class WeightData
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private bool m_IsLoadCellError;
|
|
|
|
|
private bool m_IsEntrySensorError;
|
|
|
|
|
private bool m_IsInverterError;
|
|
|
|
|
private bool m_IsPressureSensingError;
|
|
|
|
|
private bool m_IsMetalError;
|
|
|
|
|
private bool m_IsEmergencyStop;
|
|
|
|
|
private bool m_IsDoorInterlock;
|
|
|
|
|
private bool m_IsSorterError;
|
|
|
|
|
private bool m_IsStackUpSensorError;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private DateTime m_StartTime;
|
|
|
|
|
private DateTime m_StopTime;
|
|
|
|
|
|
|
|
|
|
private int m_UnderCount;
|
|
|
|
|
private double m_UnderSumWeight;
|
|
|
|
|
|
|
|
|
|
private int m_PassCount;
|
|
|
|
|
private double m_PassSumWeight;
|
|
|
|
|
|
|
|
|
|
private int m_OverCount;
|
|
|
|
|
private double m_OverSumWeight;
|
|
|
|
|
|
|
|
|
|
private int m_ExNGCount;
|
|
|
|
|
private double m_Weight;
|
|
|
|
|
private DataStore.JudgmentStatus m_JudgmentStatus;
|
|
|
|
|
private DataStore.WeightStatus m_Status;
|
|
|
|
|
|
|
|
|
|
private string m_ADCValue;
|
|
|
|
|
private int m_ProductionSpeed;
|
|
|
|
|
|
|
|
|
|
private int PreviousTimeTickCount;
|
|
|
|
|
private bool m_IsStart;
|
|
|
|
|
|
|
|
|
|
private string m_WeightString;
|
|
|
|
|
|
|
|
|
|
private Collection<int> m_CollectionNormalDistributionCount;
|
|
|
|
|
|
|
|
|
|
private string m_ReceiveDataID;
|
|
|
|
|
private string m_ReceiveTransferCount;
|
|
|
|
|
|
|
|
|
|
private int m_BoardProductNumber;
|
|
|
|
|
private int m_BoardUnderCount;
|
|
|
|
|
private int m_BoardPassCount;
|
|
|
|
|
private int m_BoardOverCount;
|
|
|
|
|
private int m_BoardExNGCount;
|
|
|
|
|
private int m_BoardNGCount;
|
|
|
|
|
private int m_BoardTotalCount;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public WeightData()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public bool IsLoadCellError
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsLoadCellError; }
|
|
|
|
|
set { this.m_IsLoadCellError = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsEntrySensorError
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsEntrySensorError; }
|
|
|
|
|
set { this.m_IsEntrySensorError = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsInverterError
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsInverterError; }
|
|
|
|
|
set { this.m_IsInverterError = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsPressureSensingError
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsPressureSensingError; }
|
|
|
|
|
set { this.m_IsPressureSensingError = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsMetalError
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsMetalError; }
|
|
|
|
|
set { this.m_IsMetalError = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsEmergencyStop
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsEmergencyStop; }
|
|
|
|
|
set { this.m_IsEmergencyStop = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsDoorInterlock
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsDoorInterlock; }
|
|
|
|
|
set { this.m_IsDoorInterlock = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsSorterError
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsSorterError; }
|
|
|
|
|
set { this.m_IsSorterError = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsStackUpSensorError
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsStackUpSensorError; }
|
|
|
|
|
set { this.m_IsStackUpSensorError = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DateTime StartTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_StartTime; }
|
|
|
|
|
set { this.m_StartTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public DateTime StopTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_StopTime; }
|
|
|
|
|
set { this.m_StopTime = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int UnderCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_UnderCount; }
|
|
|
|
|
set { this.m_UnderCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public double UnderSumWeight
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_UnderSumWeight; }
|
|
|
|
|
set { this.m_UnderSumWeight = value; }
|
|
|
|
|
}
|
|
|
|
|
public string UnderRatio
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
string ret = "";
|
|
|
|
|
|
|
|
|
|
if (this.UnderCount == 0 || this.TotalCount == 0)
|
|
|
|
|
ret = "0.00";
|
|
|
|
|
else
|
|
|
|
|
ret = string.Format("{0:##0.00}", (float.Parse(this.UnderCount.ToString()) * 100.0F) / this.TotalCount);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public double UnderAverage
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
double ret = 0.0;
|
|
|
|
|
|
|
|
|
|
if (this.UnderCount == 0 || this.UnderSumWeight == 0.0)
|
|
|
|
|
ret = 0.0;
|
|
|
|
|
else
|
|
|
|
|
ret = this.UnderSumWeight / this.UnderCount;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public string UnderSumWeightKG
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
string temp = "", ret = "";
|
|
|
|
|
|
|
|
|
|
temp = string.Format("{0:f0}", this.UnderSumWeight);
|
|
|
|
|
ret = string.Format("{0}", int.Parse(temp) / 1000);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int PassCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PassCount; }
|
|
|
|
|
set { this.m_PassCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public double PassSumWeight
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PassSumWeight; }
|
|
|
|
|
set { this.m_PassSumWeight = value; }
|
|
|
|
|
}
|
|
|
|
|
public string PassRatio
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
string ret = "";
|
|
|
|
|
|
|
|
|
|
if (this.PassCount == 0 || this.TotalCount == 0)
|
|
|
|
|
ret = "0.00";
|
|
|
|
|
else
|
|
|
|
|
ret = string.Format("{0:##0.00}", (float.Parse(this.PassCount.ToString()) * 100.0F) / this.TotalCount);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public double PassAverage
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
double ret = 0.0;
|
|
|
|
|
|
|
|
|
|
if (this.PassCount == 0 || this.PassSumWeight == 0.0)
|
|
|
|
|
ret = 0.0;
|
|
|
|
|
else
|
|
|
|
|
ret = this.PassSumWeight / this.PassCount;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public string PassSumWeightKG
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
string temp = "", ret = "";
|
|
|
|
|
|
|
|
|
|
temp = string.Format("{0:f0}", this.PassSumWeight);
|
|
|
|
|
ret = string.Format("{0}", int.Parse(temp) / 1000);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int OverCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OverCount; }
|
|
|
|
|
set { this.m_OverCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public double OverSumWeight
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OverSumWeight; }
|
|
|
|
|
set { this.m_OverSumWeight = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OverRatio
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
string ret = "";
|
|
|
|
|
|
|
|
|
|
if (this.OverCount == 0 || this.TotalCount == 0)
|
|
|
|
|
ret = "0.00";
|
|
|
|
|
else
|
|
|
|
|
ret = string.Format("{0:##0.00}", (float.Parse(this.OverCount.ToString()) * 100.0F) / this.TotalCount);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public double OverAverage
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
double ret = 0.0;
|
|
|
|
|
|
|
|
|
|
if (this.OverCount == 0 || this.OverSumWeight == 0.0)
|
|
|
|
|
ret = 0.0;
|
|
|
|
|
else
|
|
|
|
|
ret = this.OverSumWeight / this.OverCount;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public string OverSumWeightKG
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
string temp = "", ret = "";
|
|
|
|
|
|
|
|
|
|
temp = string.Format("{0:f0}", this.OverSumWeight);
|
|
|
|
|
ret = string.Format("{0}", int.Parse(temp) / 1000);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int ExNGCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExNGCount; }
|
|
|
|
|
set { this.m_ExNGCount = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int TotalUnderOverCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.UnderCount + this.OverCount; }
|
|
|
|
|
}
|
|
|
|
|
public int TotalNGCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.UnderCount + this.OverCount + this.ExNGCount; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int TotalCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.UnderCount + this.PassCount + this.OverCount + this.ExNGCount; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public double Weight
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Weight; }
|
|
|
|
|
set { this.m_Weight = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string ADCValue
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ADCValue; }
|
|
|
|
|
set { this.m_ADCValue = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataStore.JudgmentStatus JudgmentStatus
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_JudgmentStatus; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.m_JudgmentStatus = value;
|
|
|
|
|
|
2020-09-22 01:11:23 +00:00
|
|
|
|
this.ProductionSpeedCalculation();
|
|
|
|
|
|
2020-08-31 02:13:02 +00:00
|
|
|
|
if (value == DataStore.JudgmentStatus.Under)
|
|
|
|
|
{
|
|
|
|
|
if (this.UnderCount < 10000000)
|
|
|
|
|
this.UnderCount++;
|
|
|
|
|
else
|
|
|
|
|
this.UnderCount = 0;
|
|
|
|
|
}
|
|
|
|
|
else if (value == DataStore.JudgmentStatus.Pass)
|
|
|
|
|
{
|
|
|
|
|
if (this.PassCount < 10000000)
|
|
|
|
|
this.PassCount++;
|
|
|
|
|
else
|
|
|
|
|
this.PassCount = 0;
|
|
|
|
|
}
|
|
|
|
|
else if (value == DataStore.JudgmentStatus.Over)
|
|
|
|
|
{
|
|
|
|
|
if (this.OverCount < 10000000)
|
|
|
|
|
this.OverCount++;
|
|
|
|
|
else
|
|
|
|
|
this.OverCount = 0;
|
|
|
|
|
}
|
|
|
|
|
else if (value == DataStore.JudgmentStatus.Double || value == DataStore.JudgmentStatus.Metal
|
|
|
|
|
|| value == DataStore.JudgmentStatus.ExNg || value == DataStore.JudgmentStatus.ExNg1 || value == DataStore.JudgmentStatus.ExNg2)
|
|
|
|
|
{
|
|
|
|
|
if (this.ExNGCount < 10000000)
|
|
|
|
|
this.ExNGCount++;
|
|
|
|
|
else
|
|
|
|
|
this.ExNGCount = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataStore.WeightStatus Status
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Status; }
|
|
|
|
|
set { this.m_Status = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int ProductionSpeed
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProductionSpeed; }
|
|
|
|
|
set { this.m_ProductionSpeed = value; }
|
|
|
|
|
}
|
|
|
|
|
// 미사용
|
|
|
|
|
public bool IsStart
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsStart; }
|
|
|
|
|
set { this.m_IsStart = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string WeightString
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_WeightString; }
|
|
|
|
|
set { this.m_WeightString = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Collection<int> CollectionNormalDistributionCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CollectionNormalDistributionCount; }
|
|
|
|
|
set { this.m_CollectionNormalDistributionCount = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string ReceiveDataID
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ReceiveDataID; }
|
|
|
|
|
private set { this.m_ReceiveDataID = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ReceiveTransferCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ReceiveTransferCount; }
|
|
|
|
|
private set { this.m_ReceiveTransferCount = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int BoardProductNumber
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_BoardProductNumber; }
|
|
|
|
|
set { this.m_BoardProductNumber = value; }
|
|
|
|
|
}
|
|
|
|
|
public int BoardUnderCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_BoardUnderCount; }
|
|
|
|
|
set { this.m_BoardUnderCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public int BoardPassCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_BoardPassCount; }
|
|
|
|
|
set { this.m_BoardPassCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public int BoardOverCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_BoardOverCount; }
|
|
|
|
|
set { this.m_BoardOverCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public int BoardExNGCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_BoardExNGCount; }
|
|
|
|
|
set { this.m_BoardExNGCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public int BoardNGCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.BoardUnderCount + this.BoardOverCount; }
|
|
|
|
|
}
|
|
|
|
|
public int BoardTotalCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.BoardUnderCount + this.BoardPassCount + this.BoardOverCount + this.BoardExNGCount; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Mehtod
|
|
|
|
|
public void ClearCount()
|
|
|
|
|
{
|
|
|
|
|
this.UnderCount = 0;
|
|
|
|
|
this.UnderSumWeight = 0.0;
|
|
|
|
|
this.PassCount = 0;
|
|
|
|
|
this.PassSumWeight = 0.0;
|
|
|
|
|
this.OverCount = 0;
|
|
|
|
|
this.OverSumWeight = 0.0;
|
|
|
|
|
this.ExNGCount = 0;
|
|
|
|
|
|
|
|
|
|
this.StartTime = new DateTime(1111, 11, 11, 11, 11, 11);
|
|
|
|
|
this.StopTime = new DateTime(1111, 11, 11, 11, 11, 11);
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < this.CollectionNormalDistributionCount.Count; i++)
|
|
|
|
|
this.CollectionNormalDistributionCount[i] = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.IsLoadCellError = false;
|
|
|
|
|
this.IsEntrySensorError = false;
|
|
|
|
|
this.IsInverterError = false;
|
|
|
|
|
this.IsPressureSensingError = false;
|
|
|
|
|
this.IsMetalError = false;
|
|
|
|
|
this.IsDoorInterlock = false;
|
|
|
|
|
this.IsSorterError = false;
|
|
|
|
|
this.IsStackUpSensorError = false;
|
|
|
|
|
|
|
|
|
|
this.StartTime = new DateTime(1111, 11, 11, 11, 11, 11);
|
|
|
|
|
this.StopTime = new DateTime(1111, 11, 11, 11, 11, 11);
|
|
|
|
|
this.UnderCount = 0;
|
|
|
|
|
this.UnderSumWeight = 0.0;
|
|
|
|
|
this.PassCount = 0;
|
|
|
|
|
this.PassSumWeight = 0.0;
|
|
|
|
|
this.OverCount = 0;
|
|
|
|
|
this.OverSumWeight = 0.0;
|
|
|
|
|
this.ExNGCount = 0;
|
|
|
|
|
this.Weight = 0.0;
|
|
|
|
|
this.ADCValue = "12345";
|
|
|
|
|
this.JudgmentStatus = DataStore.JudgmentStatus.Empty;
|
|
|
|
|
this.Status = DataStore.WeightStatus.Empty;
|
|
|
|
|
this.ProductionSpeed = 0;
|
|
|
|
|
this.WeightString = "0";
|
|
|
|
|
|
|
|
|
|
this.CollectionNormalDistributionCount = new Collection<int>();
|
|
|
|
|
this.CollectionNormalDistributionCount.Clear();
|
|
|
|
|
for (int i = 0; i < 10; i++)
|
|
|
|
|
this.CollectionNormalDistributionCount.Add(0);
|
|
|
|
|
|
|
|
|
|
this.ReceiveDataID = "0";
|
|
|
|
|
this.ReceiveTransferCount = "0";
|
|
|
|
|
|
|
|
|
|
this.BoardProductNumber = 1;
|
|
|
|
|
this.BoardOverCount = 0;
|
|
|
|
|
this.BoardPassCount = 0;
|
|
|
|
|
this.BoardUnderCount = 0;
|
|
|
|
|
this.BoardExNGCount = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ProductionSpeedCalculation()
|
|
|
|
|
{
|
|
|
|
|
int currentTimeTickCount = 0, gap = 0;
|
|
|
|
|
double millisecond = 0.0, speed = 0.0;
|
|
|
|
|
|
|
|
|
|
if (this.IsStart == false)
|
|
|
|
|
{
|
|
|
|
|
this.PreviousTimeTickCount = Environment.TickCount & Int32.MaxValue;
|
|
|
|
|
this.IsStart = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
currentTimeTickCount = Environment.TickCount & Int32.MaxValue;
|
|
|
|
|
gap = Math.Abs(currentTimeTickCount - this.PreviousTimeTickCount);
|
|
|
|
|
millisecond = gap / 1000.0;
|
|
|
|
|
speed = 60 / millisecond;
|
|
|
|
|
this.ProductionSpeed = int.Parse(string.Format("{0:f0}", speed));
|
|
|
|
|
|
|
|
|
|
this.PreviousTimeTickCount = Environment.TickCount;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void WeightSum(DataStore.JudgmentStatus status)
|
|
|
|
|
{
|
|
|
|
|
if (status == DataStore.JudgmentStatus.Over)
|
|
|
|
|
this.OverSumWeight += this.Weight;
|
|
|
|
|
else if (status == DataStore.JudgmentStatus.Pass)
|
|
|
|
|
this.PassSumWeight += this.Weight;
|
|
|
|
|
else if (status == DataStore.JudgmentStatus.Under)
|
|
|
|
|
{
|
|
|
|
|
if(this.Weight > 0.0)
|
|
|
|
|
this.UnderSumWeight += this.Weight;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetNormalDistribution(Collection<int> collectionRange, string weight)
|
|
|
|
|
{
|
|
|
|
|
int value = 0;
|
|
|
|
|
|
|
|
|
|
value = int.Parse(weight);
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < this.CollectionNormalDistributionCount.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if (i == collectionRange.Count)
|
|
|
|
|
{
|
|
|
|
|
this.CollectionNormalDistributionCount[i]++;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (collectionRange[i] < value)
|
|
|
|
|
{
|
|
|
|
|
this.CollectionNormalDistributionCount[i]++;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetDataIDTransferCount(string dataId, string transferCount)
|
|
|
|
|
{
|
|
|
|
|
this.ReceiveDataID = dataId;
|
|
|
|
|
this.ReceiveTransferCount = transferCount;
|
|
|
|
|
}
|
2020-09-22 01:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
2020-08-31 02:13:02 +00:00
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region StructCounter
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructCounterItem
|
|
|
|
|
{
|
|
|
|
|
public int OverCount;
|
|
|
|
|
public int PassCount;
|
|
|
|
|
public int UnderCount;
|
|
|
|
|
public int ExNGCount;
|
|
|
|
|
|
|
|
|
|
public int NormalDistribution1;
|
|
|
|
|
public int NormalDistribution2;
|
|
|
|
|
public int NormalDistribution3;
|
|
|
|
|
public int NormalDistribution4;
|
|
|
|
|
public int NormalDistribution5;
|
|
|
|
|
public int NormalDistribution6;
|
|
|
|
|
public int NormalDistribution7;
|
|
|
|
|
public int NormalDistribution8;
|
|
|
|
|
public int NormalDistribution9;
|
|
|
|
|
public int NormalDistribution10;
|
|
|
|
|
|
|
|
|
|
public double OverSumWeight;
|
|
|
|
|
public double PassSumWeight;
|
|
|
|
|
public double UnderSumWeight;
|
|
|
|
|
|
|
|
|
|
public DateTime StartTime;
|
|
|
|
|
public DateTime StopTime;
|
|
|
|
|
|
|
|
|
|
public int DummyInt1;
|
|
|
|
|
public int DummyInt2;
|
|
|
|
|
public int DummyInt3;
|
|
|
|
|
public int DummyInt4;
|
|
|
|
|
public int DummyInt5;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region JudgmentSetItem
|
|
|
|
|
public class JudgmentSetItem
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private int m_Filter;
|
|
|
|
|
private int m_JudgmentDelayTime;
|
|
|
|
|
private int m_DoubleDelayTime;
|
|
|
|
|
private int m_JudgmentCount;
|
|
|
|
|
private int m_FeedSpeed1;
|
|
|
|
|
private int m_FeedSpeed2;
|
|
|
|
|
private int m_FeedSpeed3;
|
|
|
|
|
private double m_DynamicCorrection;
|
2020-11-30 07:47:15 +00:00
|
|
|
|
private int m_MovingAverage;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
private int m_Sorter1Mode;
|
|
|
|
|
private int m_Sorter1DelayTime;
|
|
|
|
|
private int m_Sorter1RunTime;
|
|
|
|
|
private int m_Sorter2Mode;
|
|
|
|
|
private int m_Sorter2DelayTime;
|
|
|
|
|
private int m_Sorter2RunTime;
|
|
|
|
|
|
|
|
|
|
private int m_ProductLength;
|
|
|
|
|
private int m_AutoJudgmentTime;
|
|
|
|
|
private int m_AutoJudgment2;
|
|
|
|
|
private int m_AutoJudgment3;
|
|
|
|
|
|
|
|
|
|
private int m_AscendDelayTime;
|
|
|
|
|
private int m_DescendDelayTime;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public JudgmentSetItem()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public int Filter
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Filter; }
|
|
|
|
|
set { this.m_Filter = value; }
|
|
|
|
|
}
|
|
|
|
|
public int JudgmentDelayTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_JudgmentDelayTime; }
|
|
|
|
|
set { this.m_JudgmentDelayTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public int DoubleDelayTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DoubleDelayTime; }
|
|
|
|
|
set { this.m_DoubleDelayTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public int JudgmentCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_JudgmentCount; }
|
|
|
|
|
set { this.m_JudgmentCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public int FeedSpeed1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_FeedSpeed1; }
|
|
|
|
|
set { this.m_FeedSpeed1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int FeedSpeed2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_FeedSpeed2; }
|
|
|
|
|
set { this.m_FeedSpeed2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int FeedSpeed3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_FeedSpeed3; }
|
|
|
|
|
set { this.m_FeedSpeed3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public double DynamicCorrection
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DynamicCorrection; }
|
|
|
|
|
set { this.m_DynamicCorrection = value; }
|
|
|
|
|
}
|
2020-09-03 07:45:21 +00:00
|
|
|
|
public int MovingAverage
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MovingAverage; }
|
|
|
|
|
set { this.m_MovingAverage = value; }
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public int DescendDelayTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DescendDelayTime; }
|
|
|
|
|
set { this.m_DescendDelayTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public int AscendDelayTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AscendDelayTime; }
|
|
|
|
|
set { this.m_AscendDelayTime = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int Sorter1Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Sorter1Mode; }
|
|
|
|
|
set { this.m_Sorter1Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public int Sorter1DelayTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Sorter1DelayTime; }
|
|
|
|
|
set { this.m_Sorter1DelayTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public int Sorter1RunTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Sorter1RunTime; }
|
|
|
|
|
set { this.m_Sorter1RunTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public int Sorter2Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Sorter2Mode; }
|
|
|
|
|
set { this.m_Sorter2Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public int Sorter2DelayTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Sorter2DelayTime; }
|
|
|
|
|
set { this.m_Sorter2DelayTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public int Sorter2RunTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Sorter2RunTime; }
|
|
|
|
|
set { this.m_Sorter2RunTime = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int ProductLength
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProductLength; }
|
|
|
|
|
set { this.m_ProductLength = value; }
|
|
|
|
|
}
|
|
|
|
|
public int AutoJudgment1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoJudgmentTime; }
|
|
|
|
|
set { this.m_AutoJudgmentTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public int AutoJudgment2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoJudgment2; }
|
|
|
|
|
set { this.m_AutoJudgment2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int AutoJudgment3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoJudgment3; }
|
|
|
|
|
set { this.m_AutoJudgment3 = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.Filter = 8;
|
|
|
|
|
this.JudgmentDelayTime = 1000;
|
|
|
|
|
this.DoubleDelayTime = 900;
|
|
|
|
|
this.JudgmentCount = 10;
|
|
|
|
|
this.FeedSpeed1 = 60;
|
|
|
|
|
this.FeedSpeed2 = 60;
|
|
|
|
|
this.FeedSpeed3 = 60;
|
|
|
|
|
this.DynamicCorrection = 1.000000;
|
2020-09-22 01:11:23 +00:00
|
|
|
|
this.MovingAverage = 100;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
this.AscendDelayTime = 1000;
|
|
|
|
|
this.DescendDelayTime = 1000;
|
|
|
|
|
|
|
|
|
|
this.Sorter1Mode = 0;
|
|
|
|
|
this.Sorter1DelayTime = 1;
|
|
|
|
|
this.Sorter1RunTime = 1000;
|
|
|
|
|
this.Sorter2Mode = 0;
|
|
|
|
|
this.Sorter2DelayTime = 1;
|
|
|
|
|
this.Sorter2RunTime = 1000;
|
|
|
|
|
|
|
|
|
|
this.ProductLength = 100;
|
|
|
|
|
this.AutoJudgment1 = 100;
|
|
|
|
|
this.AutoJudgment2 = 100;
|
|
|
|
|
this.AutoJudgment3 = 100;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region Struct JudgmentSetItem
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructJudgmentSetItem
|
|
|
|
|
{
|
|
|
|
|
public int Filter;
|
|
|
|
|
public int JudgmentDelayTime;
|
|
|
|
|
public int DoubleDelayTime;
|
|
|
|
|
public int JudgmentCount;
|
|
|
|
|
public int FeedSpeed1;
|
|
|
|
|
public int FeedSpeed2;
|
|
|
|
|
public int FeedSpeed3;
|
|
|
|
|
public double DynamicCorrection;
|
|
|
|
|
|
|
|
|
|
public int Sorter1Mode;
|
|
|
|
|
public int Sorter1DelayTime;
|
|
|
|
|
public int Sorter1RunTime;
|
|
|
|
|
public int Sorter2Mode;
|
|
|
|
|
public int Sorter2DelayTime;
|
|
|
|
|
public int Sorter2RunTime;
|
|
|
|
|
|
|
|
|
|
public int ProductLength;
|
|
|
|
|
public int AutoJudgment1;
|
|
|
|
|
public int AutoJudgment2;
|
|
|
|
|
public int AutoJudgment3;
|
|
|
|
|
|
|
|
|
|
public int DescendDelayTime;
|
|
|
|
|
public int AscendDelayTime;
|
2020-09-03 07:45:21 +00:00
|
|
|
|
public int MovingAverage;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
public int DummyInt1;
|
|
|
|
|
public int DummyInt2;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString2;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString3;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString4;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string DummyString5;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region CalibrationItem
|
|
|
|
|
public class CalibrationItem
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private string m_BalanceWeight;
|
|
|
|
|
private string m_MaxWeight;
|
|
|
|
|
private string m_Digit;
|
|
|
|
|
private string m_Constant;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public CalibrationItem()
|
|
|
|
|
{
|
|
|
|
|
this.BalanceWeight = "5000";
|
|
|
|
|
this.MaxWeight = "9999";
|
|
|
|
|
this.Digit = "1";
|
|
|
|
|
this.Constant = "1000000";
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public string BalanceWeight
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_BalanceWeight; }
|
|
|
|
|
set { this.m_BalanceWeight = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string MaxWeight
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MaxWeight; }
|
|
|
|
|
set { this.m_MaxWeight = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OverloadWeightString
|
|
|
|
|
{
|
|
|
|
|
get { return string.Format("{0, 5}", Math.Floor(double.Parse(this.MaxWeight) * 1.1)); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Digit
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Digit; }
|
|
|
|
|
set { this.m_Digit = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Constant
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Constant; }
|
|
|
|
|
set { this.m_Constant = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region FeedbackItem
|
|
|
|
|
public class FeedbackItem
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private bool m_IsUsingFeedback;
|
|
|
|
|
|
|
|
|
|
private string m_SampleCount;
|
|
|
|
|
private string m_DelayCount;
|
|
|
|
|
private string m_Sign;
|
|
|
|
|
private string m_FeedbackWeight;
|
|
|
|
|
|
|
|
|
|
private string m_UnderRangeDeviation;
|
|
|
|
|
private string m_OverRangeDeviation;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public FeedbackItem()
|
|
|
|
|
{
|
|
|
|
|
this.IsUsingFeedback = false;
|
|
|
|
|
|
|
|
|
|
this.SampleCount = "0";
|
|
|
|
|
this.DelayCount = "0";
|
|
|
|
|
this.Sign = "+";
|
|
|
|
|
this.FeedbackWeight = "0";
|
|
|
|
|
|
|
|
|
|
this.UnderRangeDeviation = "0";
|
|
|
|
|
this.OverRangeDeviation = "0";
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public bool IsUsingFeedback
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsUsingFeedback; }
|
|
|
|
|
set { this.m_IsUsingFeedback = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string SampleCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SampleCount; }
|
|
|
|
|
set { this.m_SampleCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public string DelayCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DelayCount; }
|
|
|
|
|
set { this.m_DelayCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Sign
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Sign; }
|
|
|
|
|
set { this.m_Sign = value; }
|
|
|
|
|
}
|
|
|
|
|
public string FeedbackWeight
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_FeedbackWeight; }
|
|
|
|
|
set { this.m_FeedbackWeight = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string UnderRangeDeviation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_UnderRangeDeviation; }
|
|
|
|
|
set { this.m_UnderRangeDeviation = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OverRangeDeviation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OverRangeDeviation; }
|
|
|
|
|
set { this.m_OverRangeDeviation = value; }
|
|
|
|
|
}
|
|
|
|
|
public int OverRangeDeviationInt
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.OverRangeDeviation == null)
|
|
|
|
|
return -1;
|
|
|
|
|
else
|
|
|
|
|
return int.Parse(this.OverRangeDeviation);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public int UnderRangeDeviationInt
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.UnderRangeDeviation == null)
|
|
|
|
|
return -1;
|
|
|
|
|
else
|
|
|
|
|
return int.Parse(this.UnderRangeDeviation);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region SystemParameter1
|
|
|
|
|
public class SystemParameter1
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
|
|
|
|
|
private string m_BuzzerOnTime;
|
|
|
|
|
private string m_RelayOnTime;
|
|
|
|
|
private string m_SorterDoubleEntry;
|
|
|
|
|
private string m_Chattering;
|
|
|
|
|
private string m_SorterExternalNgInput;
|
|
|
|
|
private string m_SorterEtcNg;
|
|
|
|
|
private string m_StopWeighing;
|
|
|
|
|
private string m_OptionBoard;
|
|
|
|
|
private string m_InitialDrive;
|
|
|
|
|
|
|
|
|
|
private int m_PI2;
|
|
|
|
|
private int m_PI3;
|
|
|
|
|
private int m_PI4;
|
|
|
|
|
private int m_PI5;
|
|
|
|
|
private int m_PI6;
|
|
|
|
|
private int m_PI7;
|
|
|
|
|
private int m_PI8;
|
|
|
|
|
|
|
|
|
|
private string m_Dummy1;
|
|
|
|
|
private string m_Dummy2;
|
|
|
|
|
private string m_Dummy3;
|
|
|
|
|
private string m_EquipmentType;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public SystemParameter1()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public string BuzzerOnTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_BuzzerOnTime; }
|
|
|
|
|
set { this.m_BuzzerOnTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public string RelayOnTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_RelayOnTime; }
|
|
|
|
|
set { this.m_RelayOnTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public string SorterDoubleEntry
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SorterDoubleEntry; }
|
|
|
|
|
set { this.m_SorterDoubleEntry = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Chattering
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Chattering; }
|
|
|
|
|
set { this.m_Chattering = value; }
|
|
|
|
|
}
|
|
|
|
|
public string SorterExternalNgInput
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SorterExternalNgInput; }
|
|
|
|
|
set { this.m_SorterExternalNgInput = value; }
|
|
|
|
|
}
|
|
|
|
|
public string SorterEtcNg
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SorterEtcNg; }
|
|
|
|
|
set { this.m_SorterEtcNg = value; }
|
|
|
|
|
}
|
|
|
|
|
public string StopWeighing
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_StopWeighing; }
|
|
|
|
|
set { this.m_StopWeighing = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OptionBoard
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OptionBoard; }
|
|
|
|
|
set { this.m_OptionBoard = value; }
|
|
|
|
|
}
|
|
|
|
|
public string InitialDrive
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_InitialDrive; }
|
|
|
|
|
set { this.m_InitialDrive = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int PI2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI2; }
|
|
|
|
|
set { this.m_PI2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int PI3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI3; }
|
|
|
|
|
set { this.m_PI3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int PI4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI4; }
|
|
|
|
|
set { this.m_PI4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int PI5
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI5; }
|
|
|
|
|
set { this.m_PI5 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int PI6
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI6; }
|
|
|
|
|
set { this.m_PI6 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int PI7
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI7; }
|
|
|
|
|
set { this.m_PI7 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int PI8
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI8; }
|
|
|
|
|
set { this.m_PI8 = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string EquipmentType
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_EquipmentType; }
|
|
|
|
|
set { this.m_EquipmentType = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Dummy1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy1; }
|
|
|
|
|
set { this.m_Dummy1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy2; }
|
|
|
|
|
set { this.m_Dummy2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy3; }
|
|
|
|
|
set { this.m_Dummy3 = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.BuzzerOnTime = "1000";
|
|
|
|
|
this.RelayOnTime = "1000";
|
|
|
|
|
this.Chattering = "100";
|
|
|
|
|
this.SorterDoubleEntry = "0";
|
|
|
|
|
this.SorterExternalNgInput = "0";
|
|
|
|
|
this.SorterEtcNg = "0";
|
|
|
|
|
this.StopWeighing = "0";
|
|
|
|
|
this.OptionBoard = "0";
|
|
|
|
|
this.InitialDrive = "0";
|
|
|
|
|
|
2020-09-22 01:11:23 +00:00
|
|
|
|
this.PI2 = 1;
|
2020-12-09 08:29:14 +00:00
|
|
|
|
this.PI3 = 3;
|
|
|
|
|
this.PI4 = 2;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
this.PI5 = 0;
|
|
|
|
|
this.PI6 = 0;
|
|
|
|
|
this.PI7 = 0;
|
2020-09-22 01:11:23 +00:00
|
|
|
|
this.PI8 = 0;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
this.EquipmentType = "0";
|
|
|
|
|
|
|
|
|
|
this.Dummy1 = "0";
|
|
|
|
|
this.Dummy2 = "0";
|
|
|
|
|
this.Dummy3 = "0";
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region StructSystemParameter1
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructSystemParameter1
|
|
|
|
|
{
|
|
|
|
|
public int PI2;
|
|
|
|
|
public int PI3;
|
|
|
|
|
public int PI4;
|
|
|
|
|
public int PI5;
|
|
|
|
|
public int PI6;
|
|
|
|
|
public int PI7;
|
|
|
|
|
public int PI8;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string BuzzerOnTime;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string RelayOnTime;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string SorterDoubleEntry;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Chattering;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string SorterExternalNgInput;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string SorterEtcNgInput;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string StopWeighing;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OptionBoard;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string InitialDrive;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string EquipmentType;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy2;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy3;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region SystemParameter2
|
|
|
|
|
public class SystemParameter2
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private string m_OPT1SamplingCount;
|
|
|
|
|
private string m_OPT1DelayCount;
|
|
|
|
|
private string m_OPT1PulseWidth;
|
|
|
|
|
private string m_OPT1IsWeightSetting;
|
|
|
|
|
private string m_OPT1OverRange;
|
|
|
|
|
private string m_OPT1UnderRange;
|
|
|
|
|
private string m_OPT1Port;
|
|
|
|
|
|
|
|
|
|
private string m_OPT2Port;
|
|
|
|
|
private string m_OPT2DelayTime1;
|
|
|
|
|
private string m_OPT2DelayTime2;
|
|
|
|
|
|
|
|
|
|
private string m_Dummy1;
|
|
|
|
|
private string m_Dummy2;
|
|
|
|
|
private string m_Dummy3;
|
|
|
|
|
private string m_Dummy4;
|
|
|
|
|
private string m_Dummy5;
|
|
|
|
|
private string m_Dummy6;
|
|
|
|
|
private string m_Dummy7;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public SystemParameter2()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public string OPT1SamplingCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1SamplingCount; }
|
|
|
|
|
set { this.m_OPT1SamplingCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1DelayCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1DelayCount; }
|
|
|
|
|
set { this.m_OPT1DelayCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1PulseWidth
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1PulseWidth; }
|
|
|
|
|
set { this.m_OPT1PulseWidth = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1IsWeightSetting
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1IsWeightSetting; }
|
|
|
|
|
set { this.m_OPT1IsWeightSetting = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1OverRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1OverRange; }
|
|
|
|
|
set { this.m_OPT1OverRange = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1UnderRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1UnderRange; }
|
|
|
|
|
set { this.m_OPT1UnderRange = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1Port
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1Port; }
|
|
|
|
|
set { this.m_OPT1Port = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int OPT1OverRangeInt
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.OPT1OverRange == null)
|
|
|
|
|
return -1;
|
|
|
|
|
else
|
|
|
|
|
return int.Parse(this.OPT1OverRange);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public int OPT1UnderRangeInt
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.OPT1UnderRange == null)
|
|
|
|
|
return -1;
|
|
|
|
|
else
|
|
|
|
|
return int.Parse(this.OPT1UnderRange);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string OPT2Port
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT2Port; }
|
|
|
|
|
set { this.m_OPT2Port = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT2DelayTime1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT2DelayTime1; }
|
|
|
|
|
set { this.m_OPT2DelayTime1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT2DelayTime2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT2DelayTime2; }
|
|
|
|
|
set { this.m_OPT2DelayTime2 = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Dummy1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy1; }
|
|
|
|
|
set { this.m_Dummy1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy2; }
|
|
|
|
|
set { this.m_Dummy2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy3; }
|
|
|
|
|
set { this.m_Dummy3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy4; }
|
|
|
|
|
set { this.m_Dummy4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy5
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy5; }
|
|
|
|
|
set { this.m_Dummy5 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy6
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy6; }
|
|
|
|
|
set { this.m_Dummy6 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy7
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy7; }
|
|
|
|
|
set { this.m_Dummy7 = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.OPT1SamplingCount = "0";
|
|
|
|
|
this.OPT1DelayCount = "0";
|
|
|
|
|
this.OPT1PulseWidth = "0";
|
|
|
|
|
this.OPT1IsWeightSetting = "0";
|
|
|
|
|
this.OPT1OverRange = "0";
|
|
|
|
|
this.OPT1UnderRange = "0";
|
|
|
|
|
this.OPT1Port = "0";
|
|
|
|
|
|
|
|
|
|
this.OPT2Port = "0";
|
|
|
|
|
this.OPT2DelayTime1 = "0";
|
|
|
|
|
this.OPT2DelayTime2 = "0";
|
|
|
|
|
|
|
|
|
|
this.Dummy1 = "0";
|
|
|
|
|
this.Dummy2 = "0";
|
|
|
|
|
this.Dummy3 = "0";
|
|
|
|
|
this.Dummy4 = "0";
|
|
|
|
|
this.Dummy5 = "0";
|
|
|
|
|
this.Dummy6 = "0";
|
|
|
|
|
this.Dummy7 = "0";
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region StructSystemParameter2
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructSystemParameter2
|
|
|
|
|
{
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OPT1SamplingCount;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OPT1DelayCount;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OPT1PulseWidth;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OPT1IsWeightSetting;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OPT1OverRange;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OPT1UnderRange;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OPT1Port;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OPT2Port;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OPT2DelayTime1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string OPT2DelayTime2;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy2;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy3;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy4;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy5;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy6;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy7;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region SystemParameter3
|
|
|
|
|
public class SystemParameter3
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private string m_ExternalOut1Mode;
|
|
|
|
|
private string m_ExternalOut1DelayTime;
|
|
|
|
|
private string m_ExternalOut1RunTime;
|
|
|
|
|
|
|
|
|
|
private string m_ExternalOut2Mode;
|
|
|
|
|
private string m_ExternalOut2DelayTime;
|
|
|
|
|
private string m_ExternalOut2RunTime;
|
|
|
|
|
|
|
|
|
|
private string m_ExternalOut3Mode;
|
|
|
|
|
private string m_ExternalOut3DelayTime;
|
|
|
|
|
private string m_ExternalOut3RunTime;
|
|
|
|
|
|
|
|
|
|
private string m_ExternalOut4Mode;
|
|
|
|
|
private string m_ExternalOut4DelayTime;
|
|
|
|
|
private string m_ExternalOut4RunTime;
|
|
|
|
|
|
2020-09-01 05:16:55 +00:00
|
|
|
|
private string m_ExternalOut5Mode;
|
|
|
|
|
private string m_ExternalOut5DelayTime;
|
|
|
|
|
private string m_ExternalOut5RunTime;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
2020-09-01 05:16:55 +00:00
|
|
|
|
private string m_ExternalOut6Mode;
|
|
|
|
|
private string m_ExternalOut6DelayTime;
|
|
|
|
|
private string m_ExternalOut6RunTime;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
private string m_Dummy1;
|
|
|
|
|
private string m_Dummy2;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public SystemParameter3()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public string ExternalOut1Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut1Mode; }
|
|
|
|
|
set { this.m_ExternalOut1Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOut1DelayTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut1DelayTime; }
|
|
|
|
|
set { this.m_ExternalOut1DelayTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOut1RunTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut1RunTime; }
|
|
|
|
|
set { this.m_ExternalOut1RunTime = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string ExternalOut2Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut2Mode; }
|
|
|
|
|
set { this.m_ExternalOut2Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOut2DelayTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut2DelayTime; }
|
|
|
|
|
set { this.m_ExternalOut2DelayTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOut2RunTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut2RunTime; }
|
|
|
|
|
set { this.m_ExternalOut2RunTime = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string ExternalOut3Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut3Mode; }
|
|
|
|
|
set { this.m_ExternalOut3Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOut3DelayTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut3DelayTime; }
|
|
|
|
|
set { this.m_ExternalOut3DelayTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOut3RunTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut3RunTime; }
|
|
|
|
|
set { this.m_ExternalOut3RunTime = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string ExternalOut4Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut4Mode; }
|
|
|
|
|
set { this.m_ExternalOut4Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOut4DelayTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut4DelayTime; }
|
|
|
|
|
set { this.m_ExternalOut4DelayTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOut4RunTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOut4RunTime; }
|
|
|
|
|
set { this.m_ExternalOut4RunTime = value; }
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-01 05:16:55 +00:00
|
|
|
|
public string ExternalOut5Mode
|
2020-08-31 02:13:02 +00:00
|
|
|
|
{
|
2020-09-01 05:16:55 +00:00
|
|
|
|
get { return this.m_ExternalOut5Mode; }
|
|
|
|
|
set { this.m_ExternalOut5Mode = value; }
|
2020-08-31 02:13:02 +00:00
|
|
|
|
}
|
2020-09-01 05:16:55 +00:00
|
|
|
|
public string ExternalOut5DelayTime
|
2020-08-31 02:13:02 +00:00
|
|
|
|
{
|
2020-09-01 05:16:55 +00:00
|
|
|
|
get { return this.m_ExternalOut5DelayTime; }
|
|
|
|
|
set { this.m_ExternalOut5DelayTime = value; }
|
2020-08-31 02:13:02 +00:00
|
|
|
|
}
|
2020-09-01 05:16:55 +00:00
|
|
|
|
public string ExternalOut5RunTime
|
2020-08-31 02:13:02 +00:00
|
|
|
|
{
|
2020-09-01 05:16:55 +00:00
|
|
|
|
get { return this.m_ExternalOut5RunTime; }
|
|
|
|
|
set { this.m_ExternalOut5RunTime = value; }
|
2020-08-31 02:13:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-09-01 05:16:55 +00:00
|
|
|
|
public string ExternalOut6Mode
|
2020-08-31 02:13:02 +00:00
|
|
|
|
{
|
2020-09-01 05:16:55 +00:00
|
|
|
|
get { return this.m_ExternalOut6Mode; }
|
|
|
|
|
set { this.m_ExternalOut6Mode = value; }
|
2020-08-31 02:13:02 +00:00
|
|
|
|
}
|
2020-09-01 05:16:55 +00:00
|
|
|
|
public string ExternalOut6DelayTime
|
2020-08-31 02:13:02 +00:00
|
|
|
|
{
|
2020-09-01 05:16:55 +00:00
|
|
|
|
get { return this.m_ExternalOut6DelayTime; }
|
|
|
|
|
set { this.m_ExternalOut6DelayTime = value; }
|
2020-08-31 02:13:02 +00:00
|
|
|
|
}
|
2020-09-01 05:16:55 +00:00
|
|
|
|
public string ExternalOut6RunTime
|
2020-08-31 02:13:02 +00:00
|
|
|
|
{
|
2020-09-01 05:16:55 +00:00
|
|
|
|
get { return this.m_ExternalOut6RunTime; }
|
|
|
|
|
set { this.m_ExternalOut6RunTime = value; }
|
2020-08-31 02:13:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Dummy1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy1; }
|
|
|
|
|
set { this.m_Dummy1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy2; }
|
|
|
|
|
set { this.m_Dummy2 = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
2020-09-22 01:11:23 +00:00
|
|
|
|
this.ExternalOut1Mode = "5";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
this.ExternalOut1DelayTime = "500";
|
|
|
|
|
this.ExternalOut1RunTime = "1000";
|
|
|
|
|
|
2020-09-22 01:11:23 +00:00
|
|
|
|
this.ExternalOut2Mode = "4";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
this.ExternalOut2DelayTime = "500";
|
|
|
|
|
this.ExternalOut2RunTime = "1000";
|
|
|
|
|
|
2020-09-22 01:11:23 +00:00
|
|
|
|
this.ExternalOut3Mode = "3";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
this.ExternalOut3DelayTime = "500";
|
|
|
|
|
this.ExternalOut3RunTime = "1000";
|
|
|
|
|
|
2020-09-22 01:11:23 +00:00
|
|
|
|
this.ExternalOut4Mode = "6";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
this.ExternalOut4DelayTime = "500";
|
|
|
|
|
this.ExternalOut4RunTime = "1000";
|
|
|
|
|
|
2020-09-01 05:16:55 +00:00
|
|
|
|
this.ExternalOut5Mode = "0";
|
|
|
|
|
this.ExternalOut5DelayTime = "500";
|
|
|
|
|
this.ExternalOut5RunTime = "1000";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
2020-09-01 05:16:55 +00:00
|
|
|
|
this.ExternalOut6Mode = "0";
|
|
|
|
|
this.ExternalOut6DelayTime = "500";
|
|
|
|
|
this.ExternalOut6RunTime = "1000";
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
this.Dummy1 = "0";
|
|
|
|
|
this.Dummy2 = "0";
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region StructSystemParameter3
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructSystemParameter3
|
|
|
|
|
{
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut1Mode;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut1DelayTime;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut1RunTime;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut2Mode;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut2DelayTime;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut2RunTime;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut3Mode;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut3DelayTime;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut3RunTime;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut4Mode;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut4DelayTime;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string ExternalOut4RunTime;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
2020-09-03 04:50:47 +00:00
|
|
|
|
public string ExternalOut5Mode;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
2020-09-03 04:50:47 +00:00
|
|
|
|
public string ExternalOut5DelayTime;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
2020-09-03 04:50:47 +00:00
|
|
|
|
public string ExternalOut5RunTime;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
2020-09-03 04:50:47 +00:00
|
|
|
|
public string ExternalOut6Mode;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
2020-09-03 04:50:47 +00:00
|
|
|
|
public string ExternalOut6DelayTime;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
2020-09-03 04:50:47 +00:00
|
|
|
|
public string ExternalOut6RunTime;
|
2020-08-31 02:13:02 +00:00
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy2;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region SystemParameter4
|
|
|
|
|
public class SystemParameter4
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
// 메인보드 저장값
|
|
|
|
|
private string m_MainAutoZero1Range;
|
|
|
|
|
private string m_MainAutoZero1Time;
|
|
|
|
|
private string m_MainAutoZero1Variate;
|
|
|
|
|
private string m_MainAutoZero1Mode;
|
|
|
|
|
private string m_MainAutoZero2Mode;
|
|
|
|
|
private string m_MainAutoZero2Range;
|
|
|
|
|
private string m_MainAutoZero2Time;
|
|
|
|
|
private string m_MainAutoZero2Variate;
|
|
|
|
|
|
|
|
|
|
// LCD 저장값
|
|
|
|
|
private string m_LCDAutoZero1Range;
|
|
|
|
|
private string m_LCDAutoZero1Time;
|
|
|
|
|
private string m_LCDAutoZero1Variate;
|
|
|
|
|
private string m_LCDAutoZero1Mode;
|
|
|
|
|
private string m_LCDAutoZero2Mode;
|
|
|
|
|
private string m_LCDAutoZero2Range;
|
|
|
|
|
private string m_LCDAutoZero2Time;
|
|
|
|
|
private string m_LCDAutoZero2Variate;
|
|
|
|
|
|
|
|
|
|
private string m_Dummy1;
|
|
|
|
|
private string m_Dummy2;
|
|
|
|
|
private string m_Dummy3;
|
|
|
|
|
private string m_Dummy4;
|
|
|
|
|
private string m_Dummy5;
|
|
|
|
|
private string m_Dummy6;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public SystemParameter4()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public string MainAutoZero1Range
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MainAutoZero1Range; }
|
|
|
|
|
set { this.m_MainAutoZero1Range = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MainAutoZero1Time
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MainAutoZero1Time; }
|
|
|
|
|
set { this.m_MainAutoZero1Time = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MainAutoZero1Variate
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MainAutoZero1Variate; }
|
|
|
|
|
set { this.m_MainAutoZero1Variate = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MainAutoZero1Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MainAutoZero1Mode; }
|
|
|
|
|
set { this.m_MainAutoZero1Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MainAutoZero2Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MainAutoZero2Mode; }
|
|
|
|
|
set { this.m_MainAutoZero2Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MainAutoZero2Range
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MainAutoZero2Range; }
|
|
|
|
|
set { this.m_MainAutoZero2Range = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MainAutoZero2Time
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MainAutoZero2Time; }
|
|
|
|
|
set { this.m_MainAutoZero2Time = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MainAutoZero2Variate
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MainAutoZero2Variate; }
|
|
|
|
|
set { this.m_MainAutoZero2Variate = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string LCDAutoZero1Range
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_LCDAutoZero1Range; }
|
|
|
|
|
set { this.m_LCDAutoZero1Range = value; }
|
|
|
|
|
}
|
|
|
|
|
public string LCDAutoZero1Time
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_LCDAutoZero1Time; }
|
|
|
|
|
set { this.m_LCDAutoZero1Time = value; }
|
|
|
|
|
}
|
|
|
|
|
public string LCDAutoZero1Variate
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_LCDAutoZero1Variate; }
|
|
|
|
|
set { this.m_LCDAutoZero1Variate = value; }
|
|
|
|
|
}
|
|
|
|
|
public string LCDAutoZero1Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_LCDAutoZero1Mode; }
|
|
|
|
|
set { this.m_LCDAutoZero1Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string LCDAutoZero2Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_LCDAutoZero2Mode; }
|
|
|
|
|
set { this.m_LCDAutoZero2Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string LCDAutoZero2Range
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_LCDAutoZero2Range; }
|
|
|
|
|
set { this.m_LCDAutoZero2Range = value; }
|
|
|
|
|
}
|
|
|
|
|
public string LCDAutoZero2Time
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_LCDAutoZero2Time; }
|
|
|
|
|
set { this.m_LCDAutoZero2Time = value; }
|
|
|
|
|
}
|
|
|
|
|
public string LCDAutoZero2Variate
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_LCDAutoZero2Variate; }
|
|
|
|
|
set { this.m_LCDAutoZero2Variate = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Dummy1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy1; }
|
|
|
|
|
set { this.m_Dummy1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy2; }
|
|
|
|
|
set { this.m_Dummy2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy3; }
|
|
|
|
|
set { this.m_Dummy3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy4; }
|
|
|
|
|
set { this.m_Dummy4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy5
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy5; }
|
|
|
|
|
set { this.m_Dummy5 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dummy6
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dummy6; }
|
|
|
|
|
set { this.m_Dummy6 = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.MainAutoZero1Time = "100";
|
|
|
|
|
this.MainAutoZero1Range = "17";
|
|
|
|
|
this.MainAutoZero1Variate = "1";
|
|
|
|
|
this.MainAutoZero1Mode = "2";
|
|
|
|
|
|
|
|
|
|
this.MainAutoZero2Mode = "0";
|
|
|
|
|
this.MainAutoZero2Time = "5";
|
|
|
|
|
this.MainAutoZero2Range = "10";
|
|
|
|
|
this.MainAutoZero2Variate = "1";
|
|
|
|
|
|
|
|
|
|
this.LCDAutoZero1Mode = "2";
|
|
|
|
|
this.LCDAutoZero1Time = "100";
|
|
|
|
|
this.LCDAutoZero1Range = "17";
|
|
|
|
|
this.LCDAutoZero1Variate = "1";
|
|
|
|
|
|
|
|
|
|
this.LCDAutoZero2Mode = "0";
|
|
|
|
|
this.LCDAutoZero2Time = "5";
|
|
|
|
|
this.LCDAutoZero2Range = "10";
|
|
|
|
|
this.LCDAutoZero2Variate = "1";
|
|
|
|
|
|
|
|
|
|
this.Dummy1 = "0";
|
|
|
|
|
this.Dummy2 = "0";
|
|
|
|
|
this.Dummy3 = "0";
|
|
|
|
|
this.Dummy4 = "0";
|
|
|
|
|
this.Dummy5 = "0";
|
|
|
|
|
this.Dummy6 = "0";
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region StructSystemParameter4
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructSystemParameter4
|
|
|
|
|
{
|
|
|
|
|
// 각 모드별 시간/범위/변량 저장값은 UserSetting 값만
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string AutoZero1UserSettingRange;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string AutoZero1UserSettingTime;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string AutoZero1UserSettingVariate;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string AutoZero1Mode;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string AutoZero2UserSettingRange;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string AutoZero2UserSettingTime;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string AutoZero2UserSettingVariate;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string AutoZero2Mode;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy2;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy3;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy4;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy5;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
|
|
|
|
|
public string Dummy6;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region SystemStatus
|
|
|
|
|
public class SystemStatus
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private DataStore.EquipmentStatus m_Equipment;
|
|
|
|
|
private DataStore.DisplayStore m_CurrentDisplay;
|
|
|
|
|
private DataStore.DisplayMode m_CurrentMode;
|
|
|
|
|
private DataStore.WeightInputMode m_CurrentWeightInputMode;
|
|
|
|
|
|
|
|
|
|
private UserPasswordType m_CurrentUserPasswordType;
|
|
|
|
|
private UserItem m_CurrentUser;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public SystemStatus()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public DataStore.EquipmentStatus Equipment
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Equipment; }
|
|
|
|
|
set { this.m_Equipment = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.DisplayStore CurrentDisplay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CurrentDisplay; }
|
|
|
|
|
set { this.m_CurrentDisplay = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.DisplayMode CurrentMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CurrentMode; }
|
|
|
|
|
set { this.m_CurrentMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.WeightInputMode CurrentWeightInputMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CurrentWeightInputMode; }
|
|
|
|
|
set { this.m_CurrentWeightInputMode = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UserPasswordType CurrentUserPasswordType
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CurrentUserPasswordType; }
|
|
|
|
|
set { this.m_CurrentUserPasswordType = value; }
|
|
|
|
|
}
|
|
|
|
|
public UserItem CurrentUser
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CurrentUser; }
|
|
|
|
|
set { this.m_CurrentUser = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.Equipment = DataStore.EquipmentStatus.Stop;
|
|
|
|
|
this.CurrentDisplay = DataStore.DisplayStore.MainDisplay;
|
|
|
|
|
this.CurrentMode = DataStore.DisplayMode.Normal;
|
|
|
|
|
this.CurrentWeightInputMode = DataStore.WeightInputMode.Weight;
|
|
|
|
|
this.CurrentUserPasswordType = new UserPasswordType();
|
|
|
|
|
|
|
|
|
|
this.CurrentUser = new UserItem();
|
|
|
|
|
this.CurrentUser.ID = "";
|
|
|
|
|
this.CurrentUser.Password = "";
|
|
|
|
|
this.CurrentUser.Group = DataStore.UserGroup.LogOut;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region SystemInformation2
|
|
|
|
|
public class SystemInformation2
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private string m_MaxWeight;
|
|
|
|
|
private string m_BalanceWeight;
|
|
|
|
|
private string m_Digit;
|
|
|
|
|
private string m_Calc;
|
|
|
|
|
|
|
|
|
|
private string m_Filter;
|
|
|
|
|
private string m_JudgmentDelay;
|
|
|
|
|
private string m_DoubleDelay;
|
|
|
|
|
private string m_JudgmentNumber;
|
|
|
|
|
private string m_Speed;
|
|
|
|
|
private string m_Dynamic;
|
|
|
|
|
|
|
|
|
|
private string m_SorterAMode;
|
|
|
|
|
private string m_SorterADelay;
|
|
|
|
|
private string m_SorterAOperation;
|
|
|
|
|
private string m_SorterBMode;
|
|
|
|
|
private string m_SorterBDelay;
|
|
|
|
|
private string m_SorterBOperation;
|
|
|
|
|
private string m_DoubleEntry;
|
|
|
|
|
private string m_ExternalInput;
|
|
|
|
|
private string m_ETCNG;
|
|
|
|
|
|
|
|
|
|
private string m_AutoZero1Time;
|
|
|
|
|
private string m_AutoZero1Range;
|
|
|
|
|
private string m_AutoZero1Variate;
|
|
|
|
|
private string m_AutoZero1Mode;
|
|
|
|
|
private string m_AutoZero2Time;
|
|
|
|
|
private string m_AutoZero2Range;
|
|
|
|
|
private string m_AutoZero2Variate;
|
|
|
|
|
private string m_AutoZero2Mode;
|
|
|
|
|
|
|
|
|
|
private string m_UnderRange;
|
|
|
|
|
private string m_PassRange;
|
|
|
|
|
private string m_OverRange;
|
|
|
|
|
private string m_TareRange;
|
|
|
|
|
|
|
|
|
|
private string m_ExternalOutput1Mode;
|
|
|
|
|
private string m_ExternalOutput1Delay;
|
|
|
|
|
private string m_ExternalOutput1Operation;
|
|
|
|
|
private string m_ExternalOutput2Mode;
|
|
|
|
|
private string m_ExternalOutput2Delay;
|
|
|
|
|
private string m_ExternalOutput2Operation;
|
|
|
|
|
private string m_ExternalOutput3Mode;
|
|
|
|
|
private string m_ExternalOutput3Delay;
|
|
|
|
|
private string m_ExternalOutput3Operation;
|
|
|
|
|
private string m_ExternalOutput4Mode;
|
|
|
|
|
private string m_ExternalOutput4Delay;
|
|
|
|
|
private string m_ExternalOutput4Operation;
|
|
|
|
|
private string m_ExternalOutput9Mode;
|
|
|
|
|
private string m_ExternalOutput9Delay;
|
|
|
|
|
private string m_ExternalOutput9Operation;
|
|
|
|
|
private string m_ExternalOutput10Mode;
|
|
|
|
|
private string m_ExternalOutput10Delay;
|
|
|
|
|
private string m_ExternalOutput10Operation;
|
|
|
|
|
|
|
|
|
|
private string m_AscendDelay;
|
|
|
|
|
private string m_DescendDelay;
|
|
|
|
|
|
|
|
|
|
private string m_dummy1;
|
|
|
|
|
private string m_dummy2;
|
|
|
|
|
private string m_dummy3;
|
|
|
|
|
private string m_dummy4;
|
|
|
|
|
private string m_dummy5;
|
|
|
|
|
private string m_dummy6;
|
|
|
|
|
private string m_dummy7;
|
|
|
|
|
private string m_dummy8;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public SystemInformation2()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public string MaxWeight
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_MaxWeight; }
|
|
|
|
|
set { this.m_MaxWeight = value; }
|
|
|
|
|
}
|
|
|
|
|
public string BalanceWeight
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_BalanceWeight; }
|
|
|
|
|
set { this.m_BalanceWeight = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Digit
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Digit; }
|
|
|
|
|
set { this.m_Digit = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Calc
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Calc; }
|
|
|
|
|
set { this.m_Calc = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Filter
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Filter; }
|
|
|
|
|
set { this.m_Filter = value; }
|
|
|
|
|
}
|
|
|
|
|
public string JudgmentDelay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_JudgmentDelay; }
|
|
|
|
|
set { this.m_JudgmentDelay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string DoubleDelay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DoubleDelay; }
|
|
|
|
|
set { this.m_DoubleDelay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string JudgmentNumber
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_JudgmentNumber; }
|
|
|
|
|
set { this.m_JudgmentNumber = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Speed
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Speed; }
|
|
|
|
|
set { this.m_Speed = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Dynamic
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Dynamic; }
|
|
|
|
|
set { this.m_Dynamic = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string SorterAMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SorterAMode; }
|
|
|
|
|
set { this.m_SorterAMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string SorterADelay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SorterADelay; }
|
|
|
|
|
set { this.m_SorterADelay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string SorterAOperation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SorterAOperation; }
|
|
|
|
|
set { this.m_SorterAOperation = value; }
|
|
|
|
|
}
|
|
|
|
|
public string SorterBMode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SorterBMode; }
|
|
|
|
|
set { this.m_SorterBMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string SorterBDelay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SorterBDelay; }
|
|
|
|
|
set { this.m_SorterBDelay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string SorterBOperation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SorterBOperation; }
|
|
|
|
|
set { this.m_SorterBOperation = value; }
|
|
|
|
|
}
|
|
|
|
|
public string DoubleEntry
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DoubleEntry; }
|
|
|
|
|
set { this.m_DoubleEntry = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalInput
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalInput; }
|
|
|
|
|
set { this.m_ExternalInput = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ETCNG
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ETCNG; }
|
|
|
|
|
set { this.m_ETCNG = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string AutoZero1Time
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoZero1Time; }
|
|
|
|
|
set { this.m_AutoZero1Time = value; }
|
|
|
|
|
}
|
|
|
|
|
public string AutoZero1Range
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoZero1Range; }
|
|
|
|
|
set { this.m_AutoZero1Range = value; }
|
|
|
|
|
}
|
|
|
|
|
public string AutoZero1Variate
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoZero1Variate; }
|
|
|
|
|
set { this.m_AutoZero1Variate = value; }
|
|
|
|
|
}
|
|
|
|
|
public string AutoZero1Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoZero1Mode; }
|
|
|
|
|
set { this.m_AutoZero1Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string AutoZero2Time
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoZero2Time; }
|
|
|
|
|
set { this.m_AutoZero2Time = value; }
|
|
|
|
|
}
|
|
|
|
|
public string AutoZero2Range
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoZero2Range; }
|
|
|
|
|
set { this.m_AutoZero2Range = value; }
|
|
|
|
|
}
|
|
|
|
|
public string AutoZero2Variate
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoZero2Variate; }
|
|
|
|
|
set { this.m_AutoZero2Variate = value; }
|
|
|
|
|
}
|
|
|
|
|
public string AutoZero2Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AutoZero2Mode; }
|
|
|
|
|
set { this.m_AutoZero2Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UnderRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_UnderRange; }
|
|
|
|
|
set { this.m_UnderRange = value; }
|
|
|
|
|
}
|
|
|
|
|
public string PassRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PassRange; }
|
|
|
|
|
set { this.m_PassRange = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OverRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OverRange; }
|
|
|
|
|
set { this.m_OverRange = value; }
|
|
|
|
|
}
|
|
|
|
|
public string TareRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_TareRange; }
|
|
|
|
|
set { this.m_TareRange = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string ExternalOutput1Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput1Mode; }
|
|
|
|
|
set { this.m_ExternalOutput1Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput1Delay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput1Delay; }
|
|
|
|
|
set { this.m_ExternalOutput1Delay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput1Operation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput1Operation; }
|
|
|
|
|
set { this.m_ExternalOutput1Operation = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput2Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput2Mode; }
|
|
|
|
|
set { this.m_ExternalOutput2Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput2Delay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput2Delay; }
|
|
|
|
|
set { this.m_ExternalOutput2Delay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput2Operation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput2Operation; }
|
|
|
|
|
set { this.m_ExternalOutput2Operation = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput3Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput3Mode; }
|
|
|
|
|
set { this.m_ExternalOutput3Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput3Delay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput3Delay; }
|
|
|
|
|
set { this.m_ExternalOutput3Delay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput3Operation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput3Operation; }
|
|
|
|
|
set { this.m_ExternalOutput3Operation = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput4Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput4Mode; }
|
|
|
|
|
set { this.m_ExternalOutput4Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput4Delay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput4Delay; }
|
|
|
|
|
set { this.m_ExternalOutput4Delay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput4Operation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput4Operation; }
|
|
|
|
|
set { this.m_ExternalOutput4Operation = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput9Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput9Mode; }
|
|
|
|
|
set { this.m_ExternalOutput9Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput9Delay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput9Delay; }
|
|
|
|
|
set { this.m_ExternalOutput9Delay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput9Operation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput9Operation; }
|
|
|
|
|
set { this.m_ExternalOutput9Operation = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput10Mode
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput10Mode; }
|
|
|
|
|
set { this.m_ExternalOutput10Mode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput10Delay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput10Delay; }
|
|
|
|
|
set { this.m_ExternalOutput10Delay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ExternalOutput10Operation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ExternalOutput10Operation; }
|
|
|
|
|
set { this.m_ExternalOutput10Operation = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string AscendDelay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_AscendDelay; }
|
|
|
|
|
set { this.m_AscendDelay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string DescendDelay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DescendDelay; }
|
|
|
|
|
set { this.m_DescendDelay = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string dummy1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy1; }
|
|
|
|
|
set { this.m_dummy1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy2; }
|
|
|
|
|
set { this.m_dummy2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy3; }
|
|
|
|
|
set { this.m_dummy3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy4; }
|
|
|
|
|
set { this.m_dummy4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy5
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy5; }
|
|
|
|
|
set { this.m_dummy5 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy6
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy6; }
|
|
|
|
|
set { this.m_dummy6 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy7
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy7; }
|
|
|
|
|
set { this.m_dummy7 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy8
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy8; }
|
|
|
|
|
set { this.m_dummy8 = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.MaxWeight = "0";
|
|
|
|
|
this.BalanceWeight = "0";
|
|
|
|
|
this.Digit = "0";
|
|
|
|
|
this.Calc = "0";
|
|
|
|
|
|
|
|
|
|
this.Filter = "8";
|
|
|
|
|
this.JudgmentDelay = "1000";
|
|
|
|
|
this.DoubleDelay = "900";
|
|
|
|
|
this.JudgmentNumber = "10";
|
|
|
|
|
this.Speed = "60";
|
|
|
|
|
this.Dynamic = "1000000";
|
|
|
|
|
|
|
|
|
|
this.SorterAMode = "0";
|
|
|
|
|
this.SorterADelay = "1";
|
|
|
|
|
this.SorterAOperation = "1000";
|
|
|
|
|
this.SorterBMode = "0";
|
|
|
|
|
this.SorterBDelay = "1";
|
|
|
|
|
this.SorterBOperation = "1000";
|
|
|
|
|
this.DoubleEntry = "0";
|
|
|
|
|
this.ExternalInput = "0";
|
|
|
|
|
this.ETCNG = "0";
|
|
|
|
|
|
|
|
|
|
this.AutoZero1Mode = "2";
|
|
|
|
|
this.AutoZero1Range = "17";
|
|
|
|
|
this.AutoZero1Time = "100";
|
|
|
|
|
this.AutoZero1Variate = "1";
|
|
|
|
|
this.AutoZero2Mode = "0";
|
|
|
|
|
this.AutoZero2Range = "10";
|
|
|
|
|
this.AutoZero2Time = "5";
|
|
|
|
|
this.AutoZero2Variate = "1";
|
|
|
|
|
|
|
|
|
|
this.UnderRange = "0";
|
|
|
|
|
this.PassRange = "0";
|
|
|
|
|
this.OverRange = "0";
|
|
|
|
|
this.TareRange = "0";
|
|
|
|
|
|
|
|
|
|
this.ExternalOutput1Mode = "0";
|
|
|
|
|
this.ExternalOutput1Delay = "500";
|
|
|
|
|
this.ExternalOutput1Operation = "1000";
|
|
|
|
|
this.ExternalOutput2Mode = "0";
|
|
|
|
|
this.ExternalOutput2Delay = "500";
|
|
|
|
|
this.ExternalOutput2Operation = "1000";
|
|
|
|
|
this.ExternalOutput3Mode = "0";
|
|
|
|
|
this.ExternalOutput3Delay = "500";
|
|
|
|
|
this.ExternalOutput3Operation = "1000";
|
|
|
|
|
this.ExternalOutput4Mode = "0";
|
|
|
|
|
this.ExternalOutput4Delay = "500";
|
|
|
|
|
this.ExternalOutput4Operation = "1000";
|
|
|
|
|
this.ExternalOutput9Mode = "0";
|
|
|
|
|
this.ExternalOutput9Delay = "500";
|
|
|
|
|
this.ExternalOutput9Operation = "1000";
|
|
|
|
|
this.ExternalOutput10Mode = "0";
|
|
|
|
|
this.ExternalOutput10Delay = "500";
|
|
|
|
|
this.ExternalOutput10Operation = "1000";
|
|
|
|
|
|
|
|
|
|
this.AscendDelay = "1000";
|
|
|
|
|
this.DescendDelay = "1000";
|
|
|
|
|
|
|
|
|
|
this.dummy1 = "0";
|
|
|
|
|
this.dummy2 = "0";
|
|
|
|
|
this.dummy3 = "0";
|
|
|
|
|
this.dummy4 = "0";
|
|
|
|
|
this.dummy5 = "0";
|
|
|
|
|
this.dummy6 = "0";
|
|
|
|
|
this.dummy7 = "0";
|
|
|
|
|
this.dummy8 = "0";
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region SystemInformation3
|
|
|
|
|
public class SystemInformation3
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private string m_Random1Number;
|
|
|
|
|
private string m_Random1Using;
|
|
|
|
|
private string m_Random1Under;
|
|
|
|
|
private string m_Random1Over;
|
|
|
|
|
private string m_Random1Tare;
|
|
|
|
|
|
|
|
|
|
private string m_Random2Number;
|
|
|
|
|
private string m_Random2Using;
|
|
|
|
|
private string m_Random2Under;
|
|
|
|
|
private string m_Random2Over;
|
|
|
|
|
private string m_Random2Tare;
|
|
|
|
|
|
|
|
|
|
private string m_Random3Number;
|
|
|
|
|
private string m_Random3Using;
|
|
|
|
|
private string m_Random3Under;
|
|
|
|
|
private string m_Random3Over;
|
|
|
|
|
private string m_Random3Tare;
|
|
|
|
|
|
|
|
|
|
private string m_Random4Number;
|
|
|
|
|
private string m_Random4Using;
|
|
|
|
|
private string m_Random4Under;
|
|
|
|
|
private string m_Random4Over;
|
|
|
|
|
private string m_Random4Tare;
|
|
|
|
|
|
|
|
|
|
private string m_Random5Number;
|
|
|
|
|
private string m_Random5Using;
|
|
|
|
|
private string m_Random5Under;
|
|
|
|
|
private string m_Random5Over;
|
|
|
|
|
private string m_Random5Tare;
|
|
|
|
|
|
|
|
|
|
private string m_OPT1SampleNumber;
|
|
|
|
|
private string m_OPT1DelayNumber;
|
|
|
|
|
private string m_OPT1PulseWidth;
|
|
|
|
|
private string m_OPT1Using;
|
|
|
|
|
private string m_OPT1OverRange;
|
|
|
|
|
private string m_OPT1UnderRange;
|
|
|
|
|
|
|
|
|
|
private string m_OPT2Port;
|
|
|
|
|
private string m_OPT2Delay1;
|
|
|
|
|
private string m_OPT2Delay2;
|
|
|
|
|
|
|
|
|
|
private string m_PI8;
|
|
|
|
|
private string m_PI7;
|
|
|
|
|
private string m_PI6;
|
|
|
|
|
private string m_PI5;
|
|
|
|
|
private string m_PI4;
|
|
|
|
|
private string m_PI3;
|
|
|
|
|
private string m_PhotoB;
|
|
|
|
|
|
|
|
|
|
private string m_EquipmentType;
|
|
|
|
|
private string m_OptionBoard;
|
|
|
|
|
private string m_Relay;
|
|
|
|
|
private string m_Chattering;
|
|
|
|
|
private string m_BuzzerONTime;
|
|
|
|
|
|
|
|
|
|
private string m_dummy1;
|
|
|
|
|
private string m_dummy2;
|
|
|
|
|
private string m_dummy3;
|
|
|
|
|
private string m_dummy4;
|
|
|
|
|
private string m_dummy5;
|
|
|
|
|
private string m_dummy6;
|
|
|
|
|
private string m_dummy7;
|
|
|
|
|
private string m_dummy8;
|
|
|
|
|
private string m_dummy9;
|
|
|
|
|
private string m_dummy10;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public SystemInformation3()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public string Random1Number
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random1Number; }
|
|
|
|
|
set { this.m_Random1Number = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random1Using
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random1Using; }
|
|
|
|
|
set { this.m_Random1Using = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random1Under
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random1Under; }
|
|
|
|
|
set { this.m_Random1Under = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random1Over
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random1Over; }
|
|
|
|
|
set { this.m_Random1Over = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random1Tare
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random1Tare; }
|
|
|
|
|
set { this.m_Random1Tare = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Random2Number
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random2Number; }
|
|
|
|
|
set { this.m_Random2Number = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random2Using
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random2Using; }
|
|
|
|
|
set { this.m_Random2Using = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random2Under
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random2Under; }
|
|
|
|
|
set { this.m_Random2Under = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random2Over
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random2Over; }
|
|
|
|
|
set { this.m_Random2Over = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random2Tare
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random2Tare; }
|
|
|
|
|
set { this.m_Random2Tare = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Random3Number
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random3Number; }
|
|
|
|
|
set { this.m_Random3Number = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random3Using
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random3Using; }
|
|
|
|
|
set { this.m_Random3Using = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random3Under
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random3Under; }
|
|
|
|
|
set { this.m_Random3Under = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random3Over
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random3Over; }
|
|
|
|
|
set { this.m_Random3Over = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random3Tare
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random3Tare; }
|
|
|
|
|
set { this.m_Random3Tare = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Random4Number
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random4Number; }
|
|
|
|
|
set { this.m_Random4Number = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random4Using
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random4Using; }
|
|
|
|
|
set { this.m_Random4Using = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random4Under
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random4Under; }
|
|
|
|
|
set { this.m_Random4Under = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random4Over
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random4Over; }
|
|
|
|
|
set { this.m_Random4Over = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random4Tare
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random4Tare; }
|
|
|
|
|
set { this.m_Random4Tare = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Random5Number
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random5Number; }
|
|
|
|
|
set { this.m_Random5Number = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random5Using
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random5Using; }
|
|
|
|
|
set { this.m_Random5Using = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random5Under
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random5Under; }
|
|
|
|
|
set { this.m_Random5Under = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random5Over
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random5Over; }
|
|
|
|
|
set { this.m_Random5Over = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Random5Tare
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Random5Tare; }
|
|
|
|
|
set { this.m_Random5Tare = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string OPT1SampleNumber
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1SampleNumber; }
|
|
|
|
|
set { this.m_OPT1SampleNumber = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1DelayNumber
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1DelayNumber; }
|
|
|
|
|
set { this.m_OPT1DelayNumber = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1PulseWidth
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1PulseWidth; }
|
|
|
|
|
set { this.m_OPT1PulseWidth = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1Using
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1Using; }
|
|
|
|
|
set { this.m_OPT1Using = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1OverRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1OverRange; }
|
|
|
|
|
set { this.m_OPT1OverRange = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT1UnderRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT1UnderRange; }
|
|
|
|
|
set { this.m_OPT1UnderRange = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string OPT2Port
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT2Port; }
|
|
|
|
|
set { this.m_OPT2Port = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT2Delay1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT2Delay1; }
|
|
|
|
|
set { this.m_OPT2Delay1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OPT2Delay2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OPT2Delay2; }
|
|
|
|
|
set { this.m_OPT2Delay2 = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string BuzzerONTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_BuzzerONTime; }
|
|
|
|
|
set { this.m_BuzzerONTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Chattering
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Chattering; }
|
|
|
|
|
set { this.m_Chattering = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Relay
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Relay; }
|
|
|
|
|
set { this.m_Relay = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OptionBoard
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OptionBoard; }
|
|
|
|
|
set { this.m_OptionBoard = value; }
|
|
|
|
|
}
|
|
|
|
|
public string EquipmentType
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_EquipmentType; }
|
|
|
|
|
set { this.m_EquipmentType = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string PhotoB
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PhotoB; }
|
|
|
|
|
set { this.m_PhotoB = value; }
|
|
|
|
|
}
|
|
|
|
|
public string PI3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI3; }
|
|
|
|
|
set { this.m_PI3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string PI4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI4; }
|
|
|
|
|
set { this.m_PI4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string PI5
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI5; }
|
|
|
|
|
set { this.m_PI5 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string PI6
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI6; }
|
|
|
|
|
set { this.m_PI6 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string PI7
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI7; }
|
|
|
|
|
set { this.m_PI7 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string PI8
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PI8; }
|
|
|
|
|
set { this.m_PI8 = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string dummy1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy1; }
|
|
|
|
|
set { this.m_dummy1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy2; }
|
|
|
|
|
set { this.m_dummy2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy3; }
|
|
|
|
|
set { this.m_dummy3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy4; }
|
|
|
|
|
set { this.m_dummy4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy5
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy5; }
|
|
|
|
|
set { this.m_dummy5 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy6
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy6; }
|
|
|
|
|
set { this.m_dummy6 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy7
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy7; }
|
|
|
|
|
set { this.m_dummy7 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy8
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy8; }
|
|
|
|
|
set { this.m_dummy8 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy9
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy9; }
|
|
|
|
|
set { this.m_dummy9 = value; }
|
|
|
|
|
}
|
|
|
|
|
public string dummy10
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_dummy10; }
|
|
|
|
|
set { this.m_dummy10 = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.Random1Number = "996";
|
|
|
|
|
this.Random1Using = "0";
|
|
|
|
|
this.Random1Under = "0";
|
|
|
|
|
this.Random1Over = "0";
|
|
|
|
|
this.Random1Tare = "0";
|
|
|
|
|
|
|
|
|
|
this.Random2Number = "997";
|
|
|
|
|
this.Random2Using = "0";
|
|
|
|
|
this.Random2Under = "0";
|
|
|
|
|
this.Random2Over = "0";
|
|
|
|
|
this.Random2Tare = "0";
|
|
|
|
|
|
|
|
|
|
this.Random3Number = "998";
|
|
|
|
|
this.Random3Using = "0";
|
|
|
|
|
this.Random3Under = "0";
|
|
|
|
|
this.Random3Over = "0";
|
|
|
|
|
this.Random3Tare = "0";
|
|
|
|
|
|
|
|
|
|
this.Random4Number = "999";
|
|
|
|
|
this.Random4Using = "0";
|
|
|
|
|
this.Random4Under = "0";
|
|
|
|
|
this.Random4Over = "0";
|
|
|
|
|
this.Random4Tare = "0";
|
|
|
|
|
|
|
|
|
|
this.Random5Number = "1000";
|
|
|
|
|
this.Random5Using = "0";
|
|
|
|
|
this.Random5Under = "0";
|
|
|
|
|
this.Random5Over = "0";
|
|
|
|
|
this.Random5Tare = "0";
|
|
|
|
|
|
|
|
|
|
this.OPT1SampleNumber = "0";
|
|
|
|
|
this.OPT1DelayNumber = "0";
|
|
|
|
|
this.OPT1PulseWidth = "0";
|
|
|
|
|
this.OPT1Using = "0";
|
|
|
|
|
this.OPT1OverRange = "0";
|
|
|
|
|
this.OPT1UnderRange = "0";
|
|
|
|
|
|
|
|
|
|
this.OPT2Port = "0";
|
|
|
|
|
this.OPT2Delay1 = "0";
|
|
|
|
|
this.OPT2Delay2 = "0";
|
|
|
|
|
|
|
|
|
|
this.BuzzerONTime = "1000";
|
|
|
|
|
this.Chattering = "100";
|
|
|
|
|
this.Relay = "1000";
|
|
|
|
|
this.OptionBoard = "0";
|
|
|
|
|
this.EquipmentType = "0";
|
|
|
|
|
|
|
|
|
|
this.PhotoB = "0";
|
|
|
|
|
this.PI3 = "1";
|
|
|
|
|
this.PI4 = "2";
|
|
|
|
|
this.PI5 = "0";
|
|
|
|
|
this.PI6 = "0";
|
|
|
|
|
this.PI7 = "0";
|
|
|
|
|
this.PI8 = "2";
|
|
|
|
|
|
|
|
|
|
this.dummy1 = "0";
|
|
|
|
|
this.dummy2 = "0";
|
|
|
|
|
this.dummy3 = "0";
|
|
|
|
|
this.dummy4 = "0";
|
|
|
|
|
this.dummy5 = "0";
|
|
|
|
|
this.dummy6 = "0";
|
|
|
|
|
this.dummy7 = "0";
|
|
|
|
|
this.dummy8 = "0";
|
|
|
|
|
this.dummy9 = "0";
|
|
|
|
|
this.dummy10 = "0";
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region UserPasswordType
|
|
|
|
|
public class UserPasswordType
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private string m_Level1Password;
|
|
|
|
|
private string m_Level2Password;
|
|
|
|
|
private string m_Level3Password;
|
|
|
|
|
private string m_Level4Password;
|
|
|
|
|
|
|
|
|
|
private DataStore.UserGroup m_Group;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public UserPasswordType()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public string Level1Password
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Level1Password; }
|
|
|
|
|
set { this.m_Level1Password = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Level2Password
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Level2Password; }
|
|
|
|
|
set { this.m_Level2Password = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Level3Password
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Level3Password; }
|
|
|
|
|
set { this.m_Level3Password = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Level4Password
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Level4Password; }
|
|
|
|
|
set { this.m_Level4Password = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataStore.UserGroup Group
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Group; }
|
|
|
|
|
set { this.m_Group = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.Level1Password = "1000";
|
|
|
|
|
this.Level2Password = "2000";
|
|
|
|
|
this.Level3Password = "3000";
|
|
|
|
|
this.Level4Password = "0714";
|
|
|
|
|
|
|
|
|
|
this.Group = DataStore.UserGroup.None;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region DataBackup OPT1
|
|
|
|
|
public class DataBackupOPT1
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private string m_DataID;
|
|
|
|
|
private string m_Name;
|
|
|
|
|
private string m_Lot;
|
|
|
|
|
private string m_OverRange;
|
|
|
|
|
private string m_UnderRange;
|
|
|
|
|
private string m_Weight;
|
|
|
|
|
private string m_Date;
|
|
|
|
|
private string m_Time;
|
|
|
|
|
private string m_PassCount;
|
|
|
|
|
private string m_Grade;
|
|
|
|
|
private string m_Status;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public DataBackupOPT1()
|
|
|
|
|
{
|
|
|
|
|
this.Initialize();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public string DataID
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DataID; }
|
|
|
|
|
set { this.m_DataID = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Name; }
|
|
|
|
|
private set { this.m_Name = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Lot
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Lot; }
|
|
|
|
|
private set { this.m_Lot = value; }
|
|
|
|
|
}
|
|
|
|
|
public string OverRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_OverRange; }
|
|
|
|
|
private set { this.m_OverRange = value; }
|
|
|
|
|
}
|
|
|
|
|
public string UnderRange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_UnderRange; }
|
|
|
|
|
private set { this.m_UnderRange = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Weight
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Weight; }
|
|
|
|
|
private set { this.m_Weight = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Date
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Date; }
|
|
|
|
|
private set { this.m_Date = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Time
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Time; }
|
|
|
|
|
private set { this.m_Time = value; }
|
|
|
|
|
}
|
|
|
|
|
public string PassCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PassCount; }
|
|
|
|
|
private set { this.m_PassCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Grade
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Grade; }
|
|
|
|
|
private set { this.m_Grade = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Status
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Status; }
|
|
|
|
|
set { this.m_Status = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
private void Initialize()
|
|
|
|
|
{
|
|
|
|
|
this.DataID = "";
|
|
|
|
|
this.Name = "";
|
|
|
|
|
this.Lot = "";
|
|
|
|
|
this.OverRange = "";
|
|
|
|
|
this.UnderRange = "";
|
|
|
|
|
this.Weight = "";
|
|
|
|
|
this.Date = "";
|
|
|
|
|
this.Time = "";
|
|
|
|
|
this.PassCount = "";
|
|
|
|
|
this.Grade = "";
|
|
|
|
|
this.Status = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetData(ProductItem item, WeightData data, SystemConfigurationItem1 system, DateTime time)
|
|
|
|
|
{
|
|
|
|
|
this.DataID = data.ReceiveDataID;
|
|
|
|
|
this.Name = item.Name;
|
|
|
|
|
this.Lot = item.LotNo;
|
|
|
|
|
this.OverRange = Helper.StringToDecimalPlaces(item.OverRange, system.DecimalPlaces);
|
|
|
|
|
this.UnderRange = Helper.StringToDecimalPlaces(item.UnderRange, system.DecimalPlaces);
|
|
|
|
|
this.Weight = Helper.DoubleToString(data.Weight, system.DecimalPlaces);
|
|
|
|
|
this.Date = string.Format("{0:yyyy-MM-dd}", time);
|
|
|
|
|
this.Time = string.Format("{0:HH:mm:ss}", time);
|
|
|
|
|
this.PassCount = data.PassCount.ToString();
|
|
|
|
|
this.Grade = data.JudgmentStatus.ToString();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region JudgmentResult
|
|
|
|
|
public class JudgmentResult
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment1;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment2;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment3;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment4;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment5;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment6;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment7;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment8;
|
|
|
|
|
private DataStore.JudgmentResult m_PreviousRejectData;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment10;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment11;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment12;
|
|
|
|
|
private DataStore.JudgmentResult m_CurrentRejectData;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment14;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment15;
|
|
|
|
|
private DataStore.JudgmentResult m_Judgment16;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public JudgmentResult()
|
|
|
|
|
{
|
|
|
|
|
this.Initialize();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public DataStore.JudgmentResult Judgment1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment1; }
|
|
|
|
|
set { this.m_Judgment1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment2; }
|
|
|
|
|
set { this.m_Judgment2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment3; }
|
|
|
|
|
set { this.m_Judgment3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment4; }
|
|
|
|
|
set { this.m_Judgment4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment5
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment5; }
|
|
|
|
|
set { this.m_Judgment5 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment6
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment6; }
|
|
|
|
|
set { this.m_Judgment6 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment7
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment7; }
|
|
|
|
|
set { this.m_Judgment7 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment8
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment8; }
|
|
|
|
|
set { this.m_Judgment8 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult PreviousRejectData
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_PreviousRejectData; }
|
|
|
|
|
set { this.m_PreviousRejectData = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment10
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment10; }
|
|
|
|
|
set { this.m_Judgment10 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment11
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment11; }
|
|
|
|
|
set { this.m_Judgment11 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment12
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment12; }
|
|
|
|
|
set { this.m_Judgment12 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult CurrentRejectData
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_CurrentRejectData; }
|
|
|
|
|
set { this.m_CurrentRejectData = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment14
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment14; }
|
|
|
|
|
set { this.m_Judgment14 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment15
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment15; }
|
|
|
|
|
set { this.m_Judgment15 = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.JudgmentResult Judgment16
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Judgment16; }
|
|
|
|
|
set { this.m_Judgment16 = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialize()
|
|
|
|
|
{
|
|
|
|
|
this.Judgment1 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment2 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment3 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment4 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment5 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment6 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment7 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment8 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.PreviousRejectData = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment10 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment11 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment12 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.CurrentRejectData = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment14 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment15 = DataStore.JudgmentResult.None;
|
|
|
|
|
this.Judgment16 = DataStore.JudgmentResult.None;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Serial Com - OPT2(나우시스템즈)
|
|
|
|
|
public class SerialOPT2
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private bool m_IsReceivedData;
|
|
|
|
|
private bool m_IsErrorReceivedData;
|
|
|
|
|
private bool m_IsErrorSettingStatus;
|
|
|
|
|
private bool m_IsFailProductChange;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public SerialOPT2()
|
|
|
|
|
{
|
|
|
|
|
this.Initialization();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public bool IsReceivedData
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsReceivedData; }
|
|
|
|
|
set { this.m_IsReceivedData = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsErrorReceivedData
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsErrorReceivedData; }
|
|
|
|
|
set { this.m_IsErrorReceivedData = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsErrorSettingStatus
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsErrorSettingStatus; }
|
|
|
|
|
set { this.m_IsErrorSettingStatus = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsFailProductChange
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsFailProductChange; }
|
|
|
|
|
set { this.m_IsFailProductChange = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialization()
|
|
|
|
|
{
|
|
|
|
|
this.IsReceivedData = false;
|
|
|
|
|
this.IsErrorReceivedData = false;
|
|
|
|
|
this.IsErrorSettingStatus = false;
|
|
|
|
|
this.IsFailProductChange = false;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region User
|
|
|
|
|
public class User
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private Collection<UserItem> m_Level1Users;
|
|
|
|
|
private Collection<UserItem> m_Level2Users;
|
|
|
|
|
private Collection<UserItem> m_Level3Users;
|
|
|
|
|
|
|
|
|
|
private UserItem m_DeveloperUser;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public User()
|
|
|
|
|
{
|
|
|
|
|
this.Initialize();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public Collection<UserItem> Level1Users
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Level1Users; }
|
|
|
|
|
set { this.m_Level1Users = value; }
|
|
|
|
|
}
|
|
|
|
|
public Collection<UserItem> Level2Users
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Level2Users; }
|
|
|
|
|
set { this.m_Level2Users = value; }
|
|
|
|
|
}
|
|
|
|
|
public Collection<UserItem> Level3Users
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Level3Users; }
|
|
|
|
|
set { this.m_Level3Users = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UserItem DeveloperUser
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_DeveloperUser; }
|
|
|
|
|
private set { this.m_DeveloperUser = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
private void Initialize()
|
|
|
|
|
{
|
|
|
|
|
this.Level1Users = new Collection<UserItem>();
|
|
|
|
|
this.Level2Users = new Collection<UserItem>();
|
|
|
|
|
this.Level3Users = new Collection<UserItem>();
|
|
|
|
|
|
|
|
|
|
this.Level1Users.Clear();
|
|
|
|
|
this.Level2Users.Clear();
|
|
|
|
|
this.Level3Users.Clear();
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 5; i++)
|
|
|
|
|
{
|
|
|
|
|
this.Level1Users.Add(new UserItem());
|
|
|
|
|
this.Level2Users.Add(new UserItem());
|
|
|
|
|
this.Level3Users.Add(new UserItem());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.DeveloperUser = new UserItem();
|
|
|
|
|
this.DeveloperUser.ID = "Intech";
|
|
|
|
|
this.DeveloperUser.Password = "20090810";
|
|
|
|
|
this.DeveloperUser.Group = DataStore.UserGroup.Level4Developer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UserItem FindUser(string id)
|
|
|
|
|
{
|
|
|
|
|
UserItem user = null;
|
|
|
|
|
|
|
|
|
|
// 개발자 유저 검색
|
|
|
|
|
if (id == this.DeveloperUser.ID)
|
|
|
|
|
{
|
|
|
|
|
user = new UserItem();
|
|
|
|
|
user.ID = this.DeveloperUser.ID;
|
|
|
|
|
user.Password = this.DeveloperUser.Password;
|
|
|
|
|
user.Group = this.DeveloperUser.Group;
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 일반 유저 검색
|
|
|
|
|
for (int i = 0; i < this.Level1Users.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level1Users[i].Group != DataStore.UserGroup.None)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level1Users[i].ID.Trim() == id.Trim())
|
|
|
|
|
{
|
|
|
|
|
user = new UserItem();
|
|
|
|
|
user.ID = this.Level1Users[i].ID.Trim();
|
|
|
|
|
user.Password = this.Level1Users[i].Password;
|
|
|
|
|
user.Group = this.Level1Users[i].Group;
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.Level2Users[i].Group != DataStore.UserGroup.None)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level2Users[i].ID.Trim() == id.Trim())
|
|
|
|
|
{
|
|
|
|
|
user = new UserItem();
|
|
|
|
|
user.ID = this.Level2Users[i].ID.Trim();
|
|
|
|
|
user.Password = this.Level2Users[i].Password;
|
|
|
|
|
user.Group = this.Level2Users[i].Group;
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.Level3Users[i].Group != DataStore.UserGroup.None)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level3Users[i].ID.Trim() == id.Trim())
|
|
|
|
|
{
|
|
|
|
|
user = new UserItem();
|
|
|
|
|
user.ID = this.Level3Users[i].ID.Trim();
|
|
|
|
|
user.Password = this.Level3Users[i].Password;
|
|
|
|
|
user.Group = this.Level3Users[i].Group;
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
public UserItem FindDeveloperUser(string id)
|
|
|
|
|
{
|
|
|
|
|
UserItem user = null;
|
|
|
|
|
|
|
|
|
|
// 개발자 유저 검색
|
|
|
|
|
if (id == this.DeveloperUser.ID)
|
|
|
|
|
{
|
|
|
|
|
user = new UserItem();
|
|
|
|
|
user.ID = this.DeveloperUser.ID;
|
|
|
|
|
user.Password = this.DeveloperUser.Password;
|
|
|
|
|
user.Group = this.DeveloperUser.Group;
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool SearchID(string id)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < this.Level1Users.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level1Users[i].ID.Trim() == id.Trim())
|
|
|
|
|
return ret = true;
|
|
|
|
|
}
|
|
|
|
|
for (int i = 0; i < this.Level2Users.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level2Users[i].ID.Trim() == id.Trim())
|
|
|
|
|
return ret = true;
|
|
|
|
|
}
|
|
|
|
|
for (int i = 0; i < this.Level3Users.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level3Users[i].ID.Trim() == id.Trim())
|
|
|
|
|
return ret = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Level1
|
|
|
|
|
public UserItem Level1FindUser(string id)
|
|
|
|
|
{
|
|
|
|
|
UserItem user = null;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < this.Level1Users.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level1Users[i].ID.Trim() == id.Trim())
|
|
|
|
|
{
|
|
|
|
|
user = new UserItem();
|
|
|
|
|
user.ID = this.Level1Users[i].ID.Trim();
|
|
|
|
|
user.Password = this.Level1Users[i].Password;
|
|
|
|
|
user.Group = this.Level1Users[i].Group;
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
public bool Level1SearchID(string id)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < this.Level1Users.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level1Users[i].ID.Trim() == id.Trim())
|
|
|
|
|
return ret = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
public bool Level1DeleteLevel1User(UserItem user)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
public bool Level1AddUser(UserItem user)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
public bool Level1ModifyUser(UserItem user)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region Level2
|
|
|
|
|
public UserItem Level2FindUser(string id)
|
|
|
|
|
{
|
|
|
|
|
UserItem user = null;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < this.Level2Users.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level2Users[i].ID.Trim() == id.Trim())
|
|
|
|
|
{
|
|
|
|
|
user = new UserItem();
|
|
|
|
|
user.ID = this.Level2Users[i].ID.Trim();
|
|
|
|
|
user.Password = this.Level2Users[i].Password;
|
|
|
|
|
user.Group = this.Level2Users[i].Group;
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
public bool Level2DeleteLevel1User(UserItem user)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
public bool Level2AddUser(UserItem user)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
public bool Level2ModifyUser(UserItem user)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region Level3
|
|
|
|
|
public UserItem Level3FindUser(string id)
|
|
|
|
|
{
|
|
|
|
|
UserItem user = null;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < this.Level3Users.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if (this.Level3Users[i].ID.Trim() == id.Trim())
|
|
|
|
|
{
|
|
|
|
|
user = new UserItem();
|
|
|
|
|
user.ID = this.Level3Users[i].ID.Trim();
|
|
|
|
|
user.Password = this.Level3Users[i].Password;
|
|
|
|
|
user.Group = this.Level3Users[i].Group;
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
public bool Level3DeleteLevel1User(UserItem user)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
public bool Level3AddUser(UserItem user)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
public bool Level3ModifyUser(UserItem user)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region UserItem
|
|
|
|
|
public class UserItem
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private string m_ID;
|
|
|
|
|
private string m_Password;
|
|
|
|
|
private DataStore.UserGroup m_Group;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public UserItem()
|
|
|
|
|
{
|
|
|
|
|
this.Initialize();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public string ID
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ID; }
|
|
|
|
|
set { this.m_ID = value; }
|
|
|
|
|
}
|
|
|
|
|
public string Password
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Password; }
|
|
|
|
|
set { this.m_Password = value; }
|
|
|
|
|
}
|
|
|
|
|
public DataStore.UserGroup Group
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Group; }
|
|
|
|
|
set { this.m_Group = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
private void Initialize()
|
|
|
|
|
{
|
|
|
|
|
this.ID = "-";
|
|
|
|
|
this.Password = "-";
|
|
|
|
|
this.Group = DataStore.UserGroup.None;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region StructUserItem
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructUserItem
|
|
|
|
|
{
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string ID;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string Password;
|
|
|
|
|
|
|
|
|
|
public DataStore.UserGroup Group;
|
|
|
|
|
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string Dummy1;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string Dummy2;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string Dummy3;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string Dummy4;
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|
|
|
|
public string Dummy5;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region UserGroup
|
|
|
|
|
public class UserGroup
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private UserGroupItem m_Level1;
|
|
|
|
|
private UserGroupItem m_Level2;
|
|
|
|
|
private UserGroupItem m_Level3;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public UserGroup()
|
|
|
|
|
{
|
|
|
|
|
this.Initialize();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public UserGroupItem Level1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Level1; }
|
|
|
|
|
set { this.m_Level1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public UserGroupItem Level2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Level2; }
|
|
|
|
|
set { this.m_Level2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public UserGroupItem Level3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Level3; }
|
|
|
|
|
set { this.m_Level3 = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
private void Initialize()
|
|
|
|
|
{
|
|
|
|
|
this.Level1 = new UserGroupItem();
|
|
|
|
|
this.Level2 = new UserGroupItem();
|
|
|
|
|
this.Level3 = new UserGroupItem();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool GetLevel1AccessRight(DataStore.DisplayStore display)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
public bool GetLevel2AccessRight(DataStore.DisplayStore display)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
public bool GetLevel3AccessRight(DataStore.DisplayStore display)
|
|
|
|
|
{
|
|
|
|
|
bool ret = false;
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region UserGroupItem
|
|
|
|
|
public class UserGroupItem
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private bool m_IsBasic;
|
|
|
|
|
private bool m_IsConfiguration;
|
|
|
|
|
private bool m_IsSystem;
|
|
|
|
|
private bool m_IsEquipment;
|
|
|
|
|
private bool m_IsInformation;
|
|
|
|
|
|
|
|
|
|
private bool m_IsBasicTime;
|
|
|
|
|
private bool m_IsBasicProduct;
|
|
|
|
|
private bool m_IsBasicDataBackup;
|
|
|
|
|
private bool m_IsBasicDataStatistics;
|
|
|
|
|
|
|
|
|
|
private bool m_IsConfiCommunication;
|
|
|
|
|
private bool m_IsConfiOption;
|
|
|
|
|
|
|
|
|
|
private bool m_IsSystemCalibration;
|
|
|
|
|
private bool m_IsSystemJudgmentSetting;
|
|
|
|
|
private bool m_IsSystemSorterSetting;
|
|
|
|
|
private bool m_IsSystemAutoZero;
|
|
|
|
|
private bool m_IsSystemIOTest;
|
|
|
|
|
private bool m_IsSystemExternalOutput;
|
|
|
|
|
|
|
|
|
|
private bool m_IsEquipUpdate;
|
|
|
|
|
private bool m_IsEquipInitialize;
|
|
|
|
|
private bool m_IsEquipFunctionSetting;
|
|
|
|
|
private bool m_IsEquipUser;
|
|
|
|
|
|
|
|
|
|
private bool m_IsInforSystem;
|
|
|
|
|
private bool m_IsInforAS;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public UserGroupItem()
|
|
|
|
|
{
|
|
|
|
|
this.Initialize();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public bool IsBasic
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsBasic; }
|
|
|
|
|
set { this.m_IsBasic = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsConfiguration
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsConfiguration; }
|
|
|
|
|
set { this.m_IsConfiguration = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsSystem
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsSystem; }
|
|
|
|
|
set { this.m_IsSystem = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsEquipment
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsEquipment; }
|
|
|
|
|
set { this.m_IsEquipment = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsInformation
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsInformation; }
|
|
|
|
|
set { this.m_IsInformation = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsBasicTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsBasicTime; }
|
|
|
|
|
set { this.m_IsBasicTime = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsBasicProduct
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsBasicProduct; }
|
|
|
|
|
set { this.m_IsBasicProduct = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsBasicDataBackup
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsBasicDataBackup; }
|
|
|
|
|
set { this.m_IsBasicDataBackup = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsBasicDataStatistics
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsBasicDataStatistics; }
|
|
|
|
|
set { this.m_IsBasicDataStatistics = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsConfiCommunication
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsConfiCommunication; }
|
|
|
|
|
set { this.m_IsConfiCommunication = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsConfiOption
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsConfiOption; }
|
|
|
|
|
set { this.m_IsConfiOption = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsSystemCalibration
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsSystemCalibration; }
|
|
|
|
|
set { this.m_IsSystemCalibration = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsSystemJudgmentSetting
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsSystemJudgmentSetting; }
|
|
|
|
|
set { this.m_IsSystemJudgmentSetting = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsSystemSorterSetting
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsSystemSorterSetting; }
|
|
|
|
|
set { this.m_IsSystemSorterSetting = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsSystemAutoZero
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsSystemAutoZero; }
|
|
|
|
|
set { this.m_IsSystemAutoZero = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsSystemIOTest
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsSystemIOTest; }
|
|
|
|
|
set { this.m_IsSystemIOTest = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsSystemExternalOutput
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsSystemExternalOutput; }
|
|
|
|
|
set { this.m_IsSystemExternalOutput = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsEquipUpdate
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsEquipUpdate; }
|
|
|
|
|
set { this.m_IsEquipUpdate = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsEquipInitialize
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsEquipInitialize; }
|
|
|
|
|
set { this.m_IsEquipInitialize = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsEquipFunctionSetting
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsEquipFunctionSetting; }
|
|
|
|
|
set { this.m_IsEquipFunctionSetting = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsEquipUser
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsEquipUser; }
|
|
|
|
|
set { this.m_IsEquipUser = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsInforSystem
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsInforSystem; }
|
|
|
|
|
set { this.m_IsInforSystem = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsInforAS
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsInforAS; }
|
|
|
|
|
set { this.m_IsInforAS = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
private void Initialize()
|
|
|
|
|
{
|
|
|
|
|
this.IsBasic = false;
|
|
|
|
|
this.IsConfiguration = false;
|
|
|
|
|
this.IsSystem = false;
|
|
|
|
|
this.IsEquipment = false;
|
|
|
|
|
this.IsInformation = false;
|
|
|
|
|
|
|
|
|
|
this.IsBasicTime = false;
|
|
|
|
|
this.IsBasicProduct = false;
|
|
|
|
|
this.IsBasicDataBackup = false;
|
|
|
|
|
this.IsBasicDataStatistics = false;
|
|
|
|
|
|
|
|
|
|
this.IsConfiCommunication = false;
|
|
|
|
|
this.IsConfiOption = false;
|
|
|
|
|
|
|
|
|
|
this.IsSystemCalibration = false;
|
|
|
|
|
this.IsSystemJudgmentSetting = false;
|
|
|
|
|
this.IsSystemSorterSetting = false;
|
|
|
|
|
this.IsSystemAutoZero = false;
|
|
|
|
|
this.IsSystemIOTest = false;
|
|
|
|
|
this.IsSystemExternalOutput = false;
|
|
|
|
|
|
|
|
|
|
this.IsEquipUpdate = false;
|
|
|
|
|
this.IsEquipInitialize = false;
|
|
|
|
|
this.IsEquipFunctionSetting = false;
|
|
|
|
|
this.IsEquipUser = false;
|
|
|
|
|
|
|
|
|
|
this.IsInforSystem = false;
|
|
|
|
|
this.IsInforAS = false;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region StructUserGroupItem
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct StructUserGroupItem
|
|
|
|
|
{
|
|
|
|
|
public bool IsBasic;
|
|
|
|
|
public bool IsConfiguration;
|
|
|
|
|
public bool IsSystem;
|
|
|
|
|
public bool IsEquipment;
|
|
|
|
|
public bool IsInformation;
|
|
|
|
|
|
|
|
|
|
public bool IsBasicTime;
|
|
|
|
|
public bool IsBasicProduct;
|
|
|
|
|
public bool IsBasicDataBackup;
|
|
|
|
|
public bool IsBasicDataStatistics;
|
|
|
|
|
|
|
|
|
|
public bool IsConfiCommunication;
|
|
|
|
|
public bool IsConfiOption;
|
|
|
|
|
|
|
|
|
|
public bool IsSystemCalibration;
|
|
|
|
|
public bool IsSystemJudgmentSetting;
|
|
|
|
|
public bool IsSystemSorterSetting;
|
|
|
|
|
public bool IsSystemAutoZero;
|
|
|
|
|
public bool IsSystemIOTest;
|
|
|
|
|
public bool IsSystemExternalOutput;
|
|
|
|
|
|
|
|
|
|
public bool IsEquipUpdate;
|
|
|
|
|
public bool IsEquipInitialize;
|
|
|
|
|
public bool IsEquipFunctionSetting;
|
|
|
|
|
public bool IsEquipUser;
|
|
|
|
|
|
|
|
|
|
public bool IsInforSystem;
|
|
|
|
|
public bool IsInforAS;
|
|
|
|
|
|
|
|
|
|
public bool Dummy1;
|
|
|
|
|
public bool Dummy2;
|
|
|
|
|
public bool Dummy3;
|
|
|
|
|
public bool Dummy4;
|
|
|
|
|
public bool Dummy5;
|
|
|
|
|
public bool Dummy6;
|
|
|
|
|
public bool Dummy7;
|
|
|
|
|
public bool Dummy8;
|
|
|
|
|
public bool Dummy9;
|
|
|
|
|
public bool Dummy10;
|
|
|
|
|
public bool Dummy11;
|
|
|
|
|
public bool Dummy12;
|
|
|
|
|
public bool Dummy13;
|
|
|
|
|
public bool Dummy14;
|
|
|
|
|
public bool Dummy15;
|
|
|
|
|
public bool Dummy16;
|
|
|
|
|
public bool Dummy17;
|
|
|
|
|
public bool Dummy18;
|
|
|
|
|
public bool Dummy19;
|
|
|
|
|
public bool Dummy20;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
2020-09-22 01:11:23 +00:00
|
|
|
|
|
|
|
|
|
#region UpdateForMainBoard
|
|
|
|
|
public class UpdateForMainBoard
|
|
|
|
|
{
|
|
|
|
|
#region Field
|
|
|
|
|
private bool m_IsUpdateFinish;
|
|
|
|
|
private bool m_IsAckResponse;
|
|
|
|
|
private bool m_IsLastData;
|
|
|
|
|
private byte[] m_ByteData;
|
|
|
|
|
private byte[] m_SendData;
|
|
|
|
|
private int m_Index;
|
|
|
|
|
private int m_RetryCount;
|
|
|
|
|
private int m_SendDataCount;
|
|
|
|
|
private int m_ProgressBar1;
|
|
|
|
|
private int m_ProgressBar2;
|
|
|
|
|
private int m_ProgressBar3;
|
|
|
|
|
private int m_ProgressBar4;
|
|
|
|
|
private int m_ProgressBar5;
|
|
|
|
|
private int m_ProgressBar6;
|
|
|
|
|
private int m_ProgressBar7;
|
|
|
|
|
private int m_ProgressBar8;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
|
public UpdateForMainBoard()
|
|
|
|
|
{
|
|
|
|
|
this.Initialize();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Property
|
|
|
|
|
public bool IsUpdateFinish
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsUpdateFinish; }
|
|
|
|
|
set { this.m_IsUpdateFinish = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsAckResponse
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsAckResponse; }
|
|
|
|
|
set { this.m_IsAckResponse = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool IsLastData
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_IsLastData; }
|
|
|
|
|
set { this.m_IsLastData = value; }
|
|
|
|
|
}
|
|
|
|
|
public byte[] ByteData
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ByteData; }
|
|
|
|
|
set { this.m_ByteData = value; }
|
|
|
|
|
}
|
|
|
|
|
public byte[] SendData
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SendData; }
|
|
|
|
|
set { this.m_SendData = value; }
|
|
|
|
|
}
|
|
|
|
|
public int Index
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_Index; }
|
|
|
|
|
set { this.m_Index = value; }
|
|
|
|
|
}
|
|
|
|
|
public int RetryCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_RetryCount; }
|
|
|
|
|
set { this.m_RetryCount = value; }
|
|
|
|
|
}
|
|
|
|
|
public int SendDataCount
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_SendDataCount; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
int iValue = 0;
|
|
|
|
|
|
|
|
|
|
this.m_SendDataCount = value;
|
|
|
|
|
|
|
|
|
|
iValue = value / 8;
|
|
|
|
|
|
|
|
|
|
this.ProgressBar1 = iValue;
|
|
|
|
|
this.ProgressBar2 = iValue * 2;
|
|
|
|
|
this.ProgressBar3 = iValue * 3;
|
|
|
|
|
this.ProgressBar4 = iValue * 4;
|
|
|
|
|
this.ProgressBar5 = iValue * 5;
|
|
|
|
|
this.ProgressBar6 = iValue * 6;
|
|
|
|
|
this.ProgressBar7 = iValue * 7;
|
|
|
|
|
this.ProgressBar8 = iValue * 8;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int ProgressBar1
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProgressBar1; }
|
|
|
|
|
private set { this.m_ProgressBar1 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ProgressBar2
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProgressBar2; }
|
|
|
|
|
private set { this.m_ProgressBar2 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ProgressBar3
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProgressBar3; }
|
|
|
|
|
private set { this.m_ProgressBar3 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ProgressBar4
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProgressBar4; }
|
|
|
|
|
private set { this.m_ProgressBar4 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ProgressBar5
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProgressBar5; }
|
|
|
|
|
private set { this.m_ProgressBar5 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ProgressBar6
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProgressBar6; }
|
|
|
|
|
private set { this.m_ProgressBar6 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ProgressBar7
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProgressBar7; }
|
|
|
|
|
private set { this.m_ProgressBar7 = value; }
|
|
|
|
|
}
|
|
|
|
|
public int ProgressBar8
|
|
|
|
|
{
|
|
|
|
|
get { return this.m_ProgressBar8; }
|
|
|
|
|
private set { this.m_ProgressBar8 = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Method
|
|
|
|
|
public void Initialize()
|
|
|
|
|
{
|
|
|
|
|
this.IsUpdateFinish = false;
|
|
|
|
|
this.IsAckResponse = false;
|
|
|
|
|
this.IsLastData = false;
|
|
|
|
|
this.ByteData = new byte[100];
|
|
|
|
|
this.SendData = new byte[100];
|
|
|
|
|
this.Index = 1;
|
|
|
|
|
this.RetryCount = 0;
|
|
|
|
|
this.SendDataCount = 0;
|
|
|
|
|
this.ProgressBar1 = 0;
|
|
|
|
|
this.ProgressBar2 = 0;
|
|
|
|
|
this.ProgressBar3 = 0;
|
|
|
|
|
this.ProgressBar4 = 0;
|
|
|
|
|
this.ProgressBar5 = 0;
|
|
|
|
|
this.ProgressBar6 = 0;
|
|
|
|
|
this.ProgressBar7 = 0;
|
|
|
|
|
this.ProgressBar8 = 0;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
2020-08-31 02:13:02 +00:00
|
|
|
|
}
|