/// <summary>
        /// 채널별 I/O 입력을 읽어온다.
        /// </summary>
        /// <param name="Ch"></param>
        /// <returns></returns>
        public byte inportbdata(short Ch)
        {
#if PROGRAM_RUNNING
            byte Data;
            uint DIVal = 0;

            wInitialCode = UniDAQ.Ixud_ReadDI(P32C32.In[Ch / 4], (ushort)(Ch % 4), ref DIVal);

            Data = (byte)~DIVal;
            return Data;
#else
            return (byte)0x00;
#endif
        }
        /// <summary>
        /// 지정 포트가 동작 되었는지 읽어 온다.
        /// </summary>
        /// <param name="Pos"></param>
        /// <returns></returns>
        public bool inportb(short Pos)
        {
            __IOData__ Value = IOCheck(Pos);

#if PROGRAM_RUNNING         
            bool Data;
            uint DIVal = 0;

            wInitialCode = UniDAQ.Ixud_ReadDI(P32C32.In[Value.Card], (ushort)Value.Pos, ref DIVal);

            Data = false;
            if (((byte)~DIVal & Value.Data) == Value.Data) Data = true;
            return Data;
#else
            return false;
#endif
        }