Formatting Data

You can format a datalink to show the data you want to see. How you format a datalink or depends on the type of data displayed. You can choose from one of the following types of data:

NOTE: The VariableLink has the same configurable format options.

Numeric Data

To format numeric data, enter an integer from 0 to 7 to represent:

Digits – the number of digits displayed before the decimal point.

Decimals – the number of digits displayed after the decimal point. This value is rounded off to fit into the number of digits specified for the datalink.

The following table shows some examples of how formatted numbers affect the way the datalink displays in the run-time environment.

Digits

Decimals

Actual Value

Display at Run Time

2

4

12.1234567

12.1234

1

6

1.1234567

1.123456

6

1

123456.1234567

123456.1

0

7

0.1234567

.1234567

7

0

1234567.0

1234567

7

7

1234567.1234567

1234567.1234567

1

2

12.34

12.34

In the last example, the number of digits specified is 1 but the actual value before the decimal point is a two-digit number. Displaying only one digit in this situation would show bad data. Rather than do that, Proficy Portal overrides the configured setting and shows the correct value.

Alphanumeric Data

To format alphanumeric (or text) data, select the Alphanumeric button and enter in the appropriate fields the number of lines and the number of characters per line you want to display in the datalink. These options can also be configured from the Datalink Properties window (right-click the datalink in run-time and select Properties). You can also justify the data to the left, right, or center, by making the appropriate selection from the Justification field.