Hapablap (Customer) asked a question.

I am using a EA3 non-touch HMI. I enter cycle counts by using increment value buttons that enter the counts in Unsigned Decimal values. The HMI is connected to a CLICK PLC. The values are entered into a counter, which always shows these as HEX!

For instance, if I enter 100 cycles on the HMI, this is interpreted at 256 by value DS1


  • ADC Community_02 (Automationdirect.com)

    Where are you seeing the HEX value? Data view, Copy instruction, etc.

     

    I would verify in the Tag Database that your tag is set up for Unsigned Int 16 that is assigned to your Inc/dec object. When you create this object by default data type is BCD int 16 not Unsigned Int 16.

    inc

     

    If needed provide additional details and screenshots.

    Expand Post
  • Hapablap (Customer)

    Thanks. I did verify that the data for the increment is in unsigned decimal form. However I was saving the result directly into DS1 for my counter value in the CLICK. Instead I save it to Y1 and copy to DS1.

    If I enter '10' on the HMI, the value is now Ah in DS1.

     

     

    • kewakl (Customer)

      What are you saving to Y1?

  • ADC Community_02 (Automationdirect.com)

    I would download a blank project into your Click and a single object C-micro project with just the inc/dec object (using address DS1) and then look at your address in data view from the inc/dec object. You should see the value increment or decrement.

     

    inc1

     

    If you are still having an issue then please zip them up and attach to this thread.

    Expand Post
  • Todd Dice (Customer)

    Hapablap, based on my experience, it's best to make your objects in Click, export the tags, and import tags into Cmore. This helps avoid datatype mismatches and odd results.

     

    And I'm with kewakl, why are you writing to Y1? That's an output bit.