Exemple #1
0
        /// <summary>
        /// 启动验钞
        /// </summary>
        /// <returns></returns>
        public int enablebilltype()
        {
            getstatus();
            int[] D3 = new int[3] {
                14745599, 0, 0
            };                                        //设置识别面额  FBFFFF  P3=11100000
            int[] D4 = new int[3] {
                0, 0, 0
            };
            byte rs = DMoney.SetSecurity(3, D4);

            return(DMoney.CmdBillType(3, D3, D4));
        }
Exemple #2
0
        /// <summary>
        /// 停止接收纸币
        /// </summary>
        /// <returns></returns>
        public bool CloseInit()
        {
            int[] D3 = new int[3] {
                0, 0, 0
            };
            int[] D4 = new int[3] {
                0, 0, 0
            };
            DMoney.CmdBillType(3, D3, D4);
            int rs = DMoney.ClosePort();

            if (rs != 0)
            {
                return(false);
            }
            return(true);
        }