11-16-2010 06:52 PM
Is there a simple way to display BCD numbers?
I can display it with the format 0x****, but how to take the 0x out?
I read somewhere that I can use "****:D" or "****:B" or something like this
in Lookout, but I havn't found in the manual about its explanation. How does the suffix work?
for example, how can I input 3.00 and it becomes 0x300 in the PLC, and it will display 3.00 on my screen?
Thanks.
11-17-2010 07:27 AM
I believe there is a big difference in 0X300 and 3.00. The string with X is hexadecimal numbering but "3.00" is a Real Number with a integer and fraction. This in programming language is defined as a Floating number and is defined by IEEE standard. There is a even higher precision number variable known as DOUBLE.
So if you review FLOAT or DOUBLE definition as variable you should I believe understand the mechanism. If not send me more details on what you are planning to achieve,
Good Luck!
11-17-2010 10:52 AM
Thank you Khadim.
I may not explain it clearly. What the PLC value 0x300 is a BCD number which means 3 seconds for the delay because it is a 0.01s timer. On my C-more HMI it is quite easy because I can choose BCD fromat and scale it to 1:100.
Probably I can use a script in LookoutDirect, but I haven't got a clue yet.