/// <summary> /// MelsecNet Driver Scan Start Method /// </summary> public void MelsecNetScanStart() { CLogManager.Instance.Log(new CMelsecLogFormat(Catagory.Debug, "MELSEC SCAN START INIT", "", true)); if (_melsecConnect == enumMelsecConnect.CONNECT) { if (_scanConnect == enumScanMelsecConnect.DISCONNECT) { if (_mainEMPCore != null) { _scanAttribute = _mainEMPCore.SCANCONTEROLS; } else if (_mainMainCore != null) { _scanAttribute = _mainMainCore.SCANCONTEROLS; } MelsecNetScanStarting(); _scanConnect = enumScanMelsecConnect.CONNECT; CLogManager.Instance.Log(new CMelsecLogFormat(Catagory.Debug, "MELSEC SCAN START COMPLETED", "", true)); } else { CLogManager.Instance.Log(new CMelsecLogFormat(Catagory.Debug, "MELSEC SCAN START ERROR", "이미 연결 된 상태입니다. 해당 로그 외에 프로그램 처리 로직이 없습니다!", true)); } } else { CLogManager.Instance.Log(new CMelsecLogFormat(Catagory.Debug, "MELSEC SCAN START ERROR", "MELSEC DISCONNECT 상태입니다. 드라이버 연결 상태 및 MELSEC CARD 상태를 확인 하십시오! MelscNetScanStarting()을 시작하지 못했습니다.", true)); } }
public YangSysCommDrv(string controlName, CIControlAttributeCollection controlAttributes, CScanControlPropertiesCollections scanControls) { _controlName = controlName; _SCANCONTROLS = scanControls; _CONTROLATTRIUBTES = controlAttributes; //이건 설정에서 로딩해야할듯. _connectionString = "DriverName=YANGSYS.CommDrv, Mode=Client, RemoteIP=127.0.0.1, RemotePort=5000, LocalIP=127.0.0.1, LocalPort=6000"; }
/// <summary> /// Scan 할 모든 Attribute Set Method /// </summary> /// <param name="scanAttribute"></param> public void SetScanAttribute(CScanControlPropertiesCollections scanAttribute) { _scanAttribute = scanAttribute; }