omron — Using the Formatting Parameters

Using the Formatting Parameters Examples The FormatString parameter can be used for custom string formatting of the data (such as number of sig- nificant digits, special formatting, hexadecimal display, etc.). For example: l If you create a Text Box tool with numeric data, specify FormatString: E03, and the data is 2, it will l If you create a Text Box tool with numeric data, specify FormatString: plus 000;minus 000. If the be displayed as: 2,000E+000 . data is 2, it will be displayed as: plus 002; if the data is -2, it will be displayed as: minus 002. l For more information on string formatting, see the information on the Microsoft website:

l http://msdn.microsoft.com/en-us/library/az4se3k1.aspx l http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx l http://msdn.microsoft.com/en-us/library/txafckwd.aspx The ValueWhenPressed / ValueWhenUnpressed and ValueWhenChecked / ValueWhenUnchecked para- meters are used for specifying a value that will be written to the linked data item (for details on linking a data item, see Linking the Object to a Data Item on page 1039). For example: ACE User's Guide, 3.6.x, 18316-000 Rev A Page 1041 Parameter Description The FormatString parameter uses standard Microsoft string formatting, which is described at the following links:

http://msdn.microsoft.com/en-us/library/az4se3k1.aspx http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx http://msdn.microsoft.com/en-us/library/txafckwd.aspx ImageList (Picture Box tool only) Specifies an ImageList that displays images on the tool. The ImageList tool must be added to the UI form before it can be selected. For an example of using this, see Creat- ing an Image List on page 1058. ValueWhenChecked ValueWhenUnchecked ValueWhenPressed ValueWhenUnpressed Specifies the value that will be written to the linked data item when the object is in the specified state (for example, a button is pressed or not, a radio button is selected or not, a checkbox is checked or not).

Type the desired value into the field. The default value for false (unpressed, unchecked) is 0; the default value for true (pressed, checked) is -1. However, these can be changed: Use the opposite conditions (False instead of True; True l instead of False), or If the data item is a string, you can write a string, such as l “Pressed” (or "Not Pressed"), "Pushed" (or "Not Pushed"), or "Enabled" (or "Not Enabled"), to the data item. Simply type the desired string into the field.