DellSuperman
Member
Hi all,
I am quite new to PLC programming, so pardon my noob-ness.
First, I have counters & timers in my program that I use to calculate total units/pass. But these functions are counted in BCD & when I need to multiply them, I tend to get weird things...
My current ladder program is something like that.
Counter for total Pass (D2000) --> value of total pass X 100 (D2001) --> D2001 / Total tested --> Yield (in percentage)
When I set them at the default setting (all in BCD), the calculation for the multiply & division will go wrong.
When I set them as Integer, the initial calculation for the counters will go wrong because they count from 1-9, 16-25...
The test box on my UI reads integers.
Someone please help me..!
Thank you in advance.
I am quite new to PLC programming, so pardon my noob-ness.
First, I have counters & timers in my program that I use to calculate total units/pass. But these functions are counted in BCD & when I need to multiply them, I tend to get weird things...
My current ladder program is something like that.
Counter for total Pass (D2000) --> value of total pass X 100 (D2001) --> D2001 / Total tested --> Yield (in percentage)
When I set them at the default setting (all in BCD), the calculation for the multiply & division will go wrong.
When I set them as Integer, the initial calculation for the counters will go wrong because they count from 1-9, 16-25...
The test box on my UI reads integers.
Someone please help me..!
Thank you in advance.