Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set/diplay a BCD number from LookoutDirect?

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.

0 Kudos
Message 1 of 3
(5,820 Views)

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!

0 Kudos
Message 2 of 3
(5,818 Views)

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.

0 Kudos
Message 3 of 3
(5,814 Views)