예제 #1
0
        /// <summary>
        /// 设定原料输入请求完成
        /// </summary>
        /// <param name="raw_in_fin">true:请求完成</param>
        /// <returns>true:读取正常; false:读取异常</returns>
        public bool SetRawInFin(bool raw_in_fin)
        {
            var ret = m_FanucRobotDevice.Write(m_RawInFinConfig, raw_in_fin.ToString());

            if (ret.IsSuccess == false)
            {
                return(false);
            }

            return(true);
        }
예제 #2
0
        /// <summary>
        /// 设定订单数量
        /// </summary>
        /// <param name="quantity">订单数量</param>
        /// <returns>true:设定正常; false:设定异常</returns>
        public bool SetQuantity(int quantity)
        {
            var ret = m_FanucRobotDevice.Write(m_Quantity, quantity.ToString());

            if (ret.IsSuccess == false)
            {
                return(false);
            }

            return(true);
        }
예제 #3
0
        public void writerSingnal(string ip, string adr, string value)
        {
            var m_FanucRobotDevice = new FanucRobotModbus(ip);
            var ret = m_FanucRobotDevice.Write(new FanucRobotDataConfig()
            {
                DataType = FanucRobotDataTypeEnum.DI, DataAdr = adr
            }, value);

            Clients.Client(Context.ConnectionId).getSignalrRes(ret);
        }