public void startAutoInBound() { // 发送堆垛机命令 DateTime now = DateTime.Now; InBoundService.PreUpdateInOut(spfirst, null); DateTime end = DateTime.Now; TimeSpan span = end.Subtract(now); }
public void startAutoBuHuo() { //Type svrComponenttyp; //Guid iidRequiredInterface = typeof(IOPCItemMgt).GUID; //svrComponenttyp = Type.GetTypeFromProgID(SERVER_NAME); //pIOPCServer = (IOPCServer)Activator.CreateInstance(svrComponenttyp); //FJCount = new PlcGroup(pIOPCServer, 1, "group", 1, LOCALE_ID);//组号由这里定义 //FJCount.addItem(PlcItemCollection.GetTaskCountItem()); while (isRunBuHuo) { InBoundService.PreUpdateInOut(isSanpan, null); Thread.Sleep(scanTime * 1000); } }
public void StartReplishement() { InBoundService.PreUpdateInOut(true, null); }