
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
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.
If needed provide additional details and screenshots.
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.
What are you saving to Y1?
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.
If you are still having an issue then please zip them up and attach to this thread.
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.
Sorry, I meant YD1, not Y1