Applies To: |
|
Summary: |
I need to display "ºC" or Ohms as my engineering units. How do I generate the degree (or any other) symbol in Citect to use as an engineering unit? |
Solution: |
Solution 1 Open the Character Map tool. To view the Windows Character Map
use: Find the True Type font called 'Symbol'. Select and copy the desired symbol to the Windows clipboard. Now simply paste this into the Eng Units field of your variable tag record. Solution 2
Character Map, mentioned in Solution 1 above, tells us that we can generate the degree symbol by typing the keystrokes 'Alt+0176' (this means hold down the Alt key, then type 0176). Citect uses the hexadecimal form of this. If you open up the Windows calculator in decimal scientific mode and type in 0176, then select hex, the calculator will display b0 - the hexadecimal equivalent of 0176. In the Eng Units field of the variable tag definition, type ^0xb0 - this will give us the degree symbol - then type a capital C. The field will look like ^0xb0C and display as ºC in runtime. Remember to add EU at then end of the format field to get it displayed at runtime. For example, ###EU would display up to three characters followed by the engineering units. You can make multiple pastes of the symbol from the clipboard as you define your degree tags. Alternatively, use the first definition form to define new tags and you don't need to copy in the symbol each time. You can use these methods to generate any symbol. NOTE: Citect will only allow the first 255
characters (i.e. 0xFF) of a font's character set to be used as
the Engineering Units for a Variable tag. Any characters which have
a code greater than 0xFF will not be represented correctly. |
Keywords: |
Characters, Engineering Units, Eng Units |
Related Links
Attachments