public void enableBillTypes()
    {
        if (isFirstBill){
            isFirstBill=false;
            reset();
            ack();
            d.readToPort();
            try {Thread.sleep(900L);} catch (InterruptedException e) {e.printStackTrace();}
            d.writeToPort("02030C34FFFFFF000000B5C1");
            try {
                TimeUnit.MILLISECONDS.sleep(30);
            }
            catch (Exception e){

            }
            d.readToPort();
            d.readToPort();
            poll(true);
            d.readToPort();
            ack();
            d.readToPort();
        }
        for (int i=1;i<30000;i++)
        {
            try {Thread.sleep(100L);} catch (InterruptedException e) {e.printStackTrace();}
            d.writeToPort("02030600C282");
            d.writeToPort("02030633DA81");
            d.readToPort();
            if (!isBillGetMoney)
            {
                i=30000;
            }
        }

    }