Exemplo n.º 1
0
        /// <summary>
        ///     设置扩展数字 I/O 的输出信号
        /// </summary>
        /// <param name="nCardNum"></param>
        /// <param name="address">第几个扩展IO板</param>
        /// <param name="doIndex">IO索引</param>
        /// <param name="value">结果</param>
        /// <returns></returns>
        public override short SetExtendDoBit(short nCardNum, short address, short doIndex, short value)
        {
            short nRtn = 0;
            var   val  = Convert.ToUInt16(value);

            nRtn |= CMc.GT_SetExtIoValue(nCardNum, doIndex, val);

            return(nRtn);
        }