To define Internal representation, choose the representation type you want to use from the Select Representation Type drop-down list box. The representation types were discussed earlier.
Bar
If you use bar representation type, the text shown in Figure 37 appears.
1 Define the general values of the diagram which are basic, minimum and maximum value. Click the General tab. In the Basic Value text box enter the basic value of the graph. It is the value where the x-axis, the horizontal axis, is drawn. Those val- ues that are lower than the basic value will be shown as bars heading downwards. The default value is 0.0.
2 Enter the minimum value in the second text box. The minimum value is the lowest value to be shown in the diagram. Values lower than the minimum value are shown as the minimum value. The default value is 0.0.
3 In the third text box enter the maximum value, which is the greatest value that is shown in the diagram. Values greater than or equal to the maximum value are shown as bars of maximum height. The maximum value cannot be below the basic value. The default value is 0.0.
Figure 37. Enter the basic, minimum and maximum values for the bar in the text boxes
4 Define the size of the diagram. It is defined using four attributes, which are width, height, bars and spaces. Use the spinners to select the correct numbers or type them. Click Size tab. Enter the Width, which is the width of one bar, the number of semigraphic character positions. The default value is 1. See Figure 38.
SYS 500
4 WindowsPicture Editing
Configuration Manual
1MRS751255-MEN ABB Automation 465 Enter the Height, which is the distance from the horizontal axis to the highest point of the graph. If all bars head downwards, the height is the distance between the horizontal axis and the minimum value. The default value is 1.
6 Enter the number of Bars you want to have in the window. The default value is 1. 7 Enter Spaces, which is the distance between the right side of the first bar and the
left side of the second bar. The default value is 0.
Figure 38. Enter the Width, Height, the number of Bars and Spaces
8 The last step to define the bar diagram is to enter limits to the figure. Select the Limits tab. Colors must be defined starting in the last row and proceeding upward. Click the first box in the beginning of the bottom row. See Figure 39.
Figure 39. Define limits of the bars. When the value exceeds the limit, the color of the bar will change.
The Color Chooser appears. Choose one of the eight colors in the semigraphic color group in the Color Selector drop-down list box. The selected color is shown in the upper left corner of the dialog box. Click OK. The chosen color appears in the color box.
The bottom row defines the color of the bar at the start point. The next row defines the look of the bar when its value exceeds the first limit. After selecting a color, you can choose to change the color of the whole bar or to make the diagram blink.
To change the color of the whole bar when the limit value is exceeded, click the next check box. Otherwise the bar is filled with different colors, changing the color in the limit point.
To make the diagram blink, click the third box in the row. The Limit Expression is a statement written with SCIL, which determines the limit. For more information on SCIL, see the Programming Language SCIL manual. Note that the limit must be given as a numerical data type, for example, integer, real or vector with numerical elements. If the limit is a vector, each element in the window expression is compared to the cor- responding element in the limit. You cannot leave empty limit rows.
Enter the second limit in the third row and continue like this. To add a row later, se- lect its position by clicking the limit row below the place you want to add the new row. Click Insert. To remove a row, select it and then click Delete. After you have entered all the limits, click OK.
SYS 500
4 WindowsPicture Editing
Configuration Manual
1MRS751255-MEN ABB Automation 48Curve
If you use Curve representation, the notebook shown in Figure 40 appears in the Win- dow Editor.
1 Select the General tab to define general values of the diagram, which are basic, minimum and maximum values. Select the numbers using the spinners or type them. In the first text box enter the basic value of the graph. The basic value is the value where the x-axis, the horizontal axis, is drawn. Those values that are lower than the basic value will be shown under the x-axis. The default value is 0.0. 2 Enter the minimum value in the second text box. The minimum value is the lowest
value to be shown in the diagram. Values lower than the minimum value are shown as the minimum value. The default value is 0.0.
3 In the third text box enter the maximum value, which is the greatest value that is shown in the diagram. Values greater than or equal to the maximum value are shown as curves of maximum height. The maximum value cannot be below the ba- sic value. The default value is 0.0.
Figure 40. Enter the basic, minimum and maximum values in the text boxes
4 Select the Size tab to define the size of the diagram. It is defined using three attrib- utes, which are Width, Height and Points. Enter the Width, which is the width of one curve element indicated in semigraphic character positions. The default value is 1.
5 Enter the Height, which is the distance from the horizontal axis to the highest point of the graph. It is also measured in semigraphic character positions. Enter the Points, which is the maximum number of points to be displayed in the curve. The default value is 0.
6 The last step to define the curve diagram is to enter limits to the figure. Select the Limits tab. Start to define the colors in the last row. Click the first gray box at the beginning of the last row.
The Color Chooser appears. Choose one of the eight colors in the semigraphic color group in the Color Selector drop-down list box. The selected color is shown in the upper left corner of the dialog box. Click OK. The chosen color appears in the color box.
The bottom row defines the color of the curve at the start point. The next row defines the look of the curve when its value exceeds the first limit. After selecting a color, you can choose to change the color of the whole curve or to make the diagram blink. To change the color of the whole curve when the limit value is exceeded, click the next check box. Otherwise the curve is filled with different colors, changing the color in the limit point. To make the diagram blink, click the third box in the row. The Limit Expression is a statement written with SCIL, which determines the limit. For more information on SCIL, see the Programming Language SCIL manual. Note that the limit must be given as a numerical data type, for example, integer, real or vector with numerical elements. If the limit is a vector, each element in the window expres- sion is compared to the corresponding element in the limit. You cannot leave empty limit rows.
Enter the second limit in the third row and continue like this. To add a row later, se- lect its position by clicking the limit row below the place you want to add the new row. Click Insert. To remove a row, select it and then click Delete. After you have entered all the limits, click OK.
Field
The field representation is a one-dimensional, horizontal field, whose length can be from 1 to 80 characters. It is used for displaying and entering data.
If you use Field as the representation type, the notebook shown in Figure 41 appears. 1 Click the General tab. There are three choices of value type, which are Integer,
Real and String. You can use string to enter text or time type expressions. Select the type you want to use from the Value Type drop-down list box. If the variable value is read from the field, the correct value type is selected automatically. The default value is integer.
2 There are three alignment choices, Left, Center and Right. Left means that the data shown in the field starts from the left side of the field. Center means that the characters are placed in the center of the field. If the input entered into the field is shorter than the character spaces available, the empty spaces will remain before the characters. Right alignment means that the characters are shown to the right of the field. In this case there may also be empty spaces before the characters. Alignment You cannot print curves automatically, or you cannot make the curve to blink in other monitors than microworkstation.
SYS 500
4 WindowsPicture Editing
Configuration Manual
1MRS751255-MEN ABB Automation 50has no meaning for data entries, which are always left aligned. Select the type of alignment you want to use from the Alignment drop-down list box. The default alignment is right.
Figure 41. Define the value type and alignment for the field in the text boxes
3 Select the Size tab. Enter the number of spaces for semigraphic characters you want to have in the field. Type the number in the Field Length text box or change the number using the spinners. See Figure 42. The default value is 6.
Figure 42. Define the field length and number of decimals for a field
4 If you selected real value type, in the next text box type the number of decimals or change the number using spinners. The default value is 0.
5 Select the Colors&Fonts tab. Define the colors for foreground and background. First click FG Color. Color Chooser appears. The default color is white. For more information on how to choose a color from the Color Chooser, see Chapter 3. Next click BG Color. The Color Chooser appears again. Define the color you want to use. The default color is black.
6 To choose the font you want to use, click Font. The Font Chooser appears. For more information on how to use the Font Chooser see Chapter 3.
7 To make the field blink while it is on screen, select the Blink option. The default is no blink. Click OK. Base system supports the blinking of the representation type of the field if its color and font are both semigraphic.
Multifield
If you use Multifield as a representation type, the notebook shown in Figure 43 ap- pears.
Figure 43. Define the direction, alignment and number of fields for the multifield
1 Select the General tab. Type the number of fields in the Field text box or change the number using spinners. The default value is 1.
2 There are three alignment choices, Left, Center or Right. Left means that the data shown in the field starts from the left side of the field. Center means that the char- acters are placed in the center of the field. If the input entered into the field is shorter than the character spaces available, the empty spaces will remain before the characters. Right alignment means that the characters are shown to the right of the field. In this case there may also be empty spaces before the characters. Alignment has no meaning for data entries, which are always left aligned. Select the type of alignment you want to use from the Alignment drop-down list box. The default alignment is right.
SYS 500
4 WindowsPicture Editing
Configuration Manual
1MRS751255-MEN ABB Automation 523 There are two options for direction, Horizontal and Vertical. Select the direction you want to use from the Direction drop-down list box. The default direction is vertical.
4 Select the Size tab. Type the field length you want in the Field Length text box or change the number using the spinners. All fields at multifield must have the same length. See Figure 44. The default value is 6.
5 In the Decimals text box enter the number of decimal places you want to have in the field either by typing them or using the spinners. All numerical data is shown with the same number of decimals. The default value is 0.
6 In the Spaces text box enter the number of spaces you want to have between the fields in semigraphic coordinates. The default value is 1.
Figure 44. Enter the field length, number of decimals and spaces for the multifield
7 Next define foreground and background colors. Select the Colors tab and then click FG Color. The Color Chooser appears. Choose one of the semigraphic col- ors. For more information on how to use the Color Chooser, see Chapter 3. 8 Next click BG Color. The Color Chooser appears again. Choose the color in the
same way as you chose the foreground color. The default color is black. 9 To choose the font you want to use, click Font. The Font Chooser appears. For
more information on how to use the Font Chooser see Chapter 3. To make the multifield to blink select Blink option.
10 Every element in a vector has a status code. When a multifield is displayed, the suspicious status codes 1 and 2, 10 (not sampled) and codes larger than 10 (log- ging error) can be expressed by text, color, blinking or other features.
Select the tab (1,2). Then from the Action drop-down list box choose the action you want to use from the four available alternatives: Nothing, Text, Indication and Rep- resentation. See Figure 45.
Nothing Nothing means that you do not want to show anything on screen. This is the default choice.
Text Text represents a text that will be placed in the actual field or to the right of it. The position of the text can be selected from the Placement drop-down list box. In the Element text box type the element text. You can also choose the fore- ground and background colors and whether you want the text to blink or not. To choose the color, click FG Color at the bottom of the editor and the Color Chooser appears. To get more information on choosing a color, see Chapter 3. To make the text blink on screen, select the Blink option. Indication Indication can be a color, which may also be blinking. The
procedure of choosing a color is described in Chapter 3. To make the color to blink, select Blink option.
The representation Representation is the library representation that can be of type figure, field or selector. The representation is displayed in a window that is automatically generated and placed in the actual field. The rest of the fields in the multifield re- main visible when the window is shown. The expression that will be shown in the window is determined by the ac- tual vector element of the multifield. This means, that if the representation is a selector, the conditions are related to this status code. To choose the representation you want to show in the window, click Select and browse the files.
Figure 45. Define the status codes for a multifield
11 Select the (10) tab and repeat the procedure described in the previous step. Select the (>10) tab and repeat the same procedure.
12 Different values or intervals can be marked in various ways using Programmable Exceptions. The programmable exceptions are specified by conditions related to the expression of the window. Refer to the window expression with empty brack-
SYS 500
4 WindowsPicture Editing
Configuration Manual
1MRS751255-MEN ABB Automation 54ets (), which can be used as operands in the condition. You can also build a condi- tion so that it starts with a relational operator. Then the window expression is the left operator. Any logical operator in the condition can be followed by a relational operator.
Remember that text data cannot be compared with numerical values. Hence, if the ex- pression of a multifield includes both text and numerical data, the conditions will pro- duce error messages.
You can define up to three exceptions. To define the first exception, select the PE1 tab, for the second exeption select PE2 tab and for the third one select PE3 tab. See Figure 46. Enter a condition and select how the exception should be displayed. The procedure is the same as for the other status codes. This was described in more detail in Step 10.
Figure 46. You can define three exceptions to show different values or intervals
Enter the condition in the Condition text box. From the Type drop-down list box you can choose one of the four alternatives, Nothing, Text, Indication and Representa- tion. These alternatives and how to define them were already discussed in Step 10. To insert an exception between two exceptions that have already been defined, click In- sert. Then enter the condition and proceed normally. To delete an exception, click Delete. Accept the choices you have made by clicking OK.
Selector
If you use selector as a representation type, the text shown in Figure 47 appears. A selector can contain several representation alternatives, which can be of type picture, field or figure. Each altenative is connected with a condition. When a window is re- quested for display, the alternatives are checked until the required condition is full-
filled. Then that representation is shown in the window. The remaining alternatives will not be checked.
Figure 47. Enter the condition for every alternative in a selector
1 Enter a condition in the Condition text box. See Figure 47. The representation is shown, if the condition is fulfilled and no other condition has been fullfilled before it. The condition must follow the rules for SCIL conditional expressions, with op- erands (object notations, variables, constants, function calls) and operators. Note that the object notation and variables are only evaluated the first time the window is shown. A new evaluation requires that the window is erased before it is shown again.
Another way to type a condition is to start it with a relational operator. The window expression is then the left operand in the relation. Likewise, possible logical operators in the condition can be followed by relational operators.
2 Click Add and the Selector Editor shown in Figure 48 appears. The alternative type can be Internal, Library or Picture. Select the type you want to use from the