public static void CloseHardWork() { CameraMgr.GetInstance().Close(); TcpMgr.GetInstance().CloseAllEth(); MotionMgr.GetInstace().Close(); IOMgr.GetInstace().Close(); }
public StationLeftRobot(string strName) : base(strName) { io_in = new string[] { }; io_out = new string[] { }; bPositiveMove = new bool[] { true, true, true, true }; strAxisName = new string[] { "X轴", "Y轴", "Z轴", "U轴" }; m_tcpRobotCtl = TcpMgr.GetInstance().GetTcpLink(0); }
private APP() { MotionMgr = MotionMgr.GetInstace(); IOMgr = IOMgr.GetInstace(); AlarmMgr = AlarmMgr.GetIntance(); ConfigToolMgr = ConfigToolMgr.GetInstance(); StationMgr = StationMgr.GetInstance(); ParamSetMgr = ParamSetMgr.GetInstance(); ComMgr = ComMgr.GetInstance(); TcpMgr = TcpMgr.GetInstance(); SocketSeverMgr = SocketSeverMgr.GetInstace(); }
// Update is called once per frame void Update() { //lock(TcpMgr.GetMsgQueue()) //{ UniverseMsg msg = TcpMgr.PopQueueMsg(); if (msg == null) { return; } UniverseMsgMgr.RecvServerMsg(msg); //} }
public static void CloseHardWork() { //for (int i = 0; i < 6; i++) // LightControl.GetInstance().CloseLight(i); ResetIO(); AlarmMgr.GetIntance().StopAlarmBeet(); CameraMgr.GetInstance().Close(); TcpMgr.GetInstance().CloseAllEth(); MotionMgr.GetInstace().Close(); IOMgr.GetInstace().Close(); if (ParamSetMgr.GetInstance().GetBoolParam("是否选择程控电源")) { OtherDevices.ckPower.SetVoltage(1, 0); OtherDevices.ckPower.SetVoltage(2, 0); } // LightControl.GetInstance().Close(); // Weighing.GetInstance().Close(); }
// Use this for initialization void Start() { /* * int connectRet = TcpMgr.Init("118.89.165.176", 6788); * //尝试和服务器建立连接,连接成功后打开登录界面 * if (connectRet == 0) * { * Debug.Log("connect success"); * } * else * { * Debug.Log("连接服务器失败"); * } * * //WCC_TODO:创建线程,接受数据,然后Update()函数里读取这些数据进行处理 * Thread th = new Thread(TcpMgr.RecvDataFromSocket); * th.Start(); */ TcpMgr.Init("118.89.165.176", 6788); }