8.1.2. Configure CPU Serial # Entry/Base Platform Button

About this task

A Configure the CPU Serial # Entry Field
B Configure a Toggle Action for a Base Platform Button
C Create an Animated Expression for the Base Platform Button
  1. Configure the CPU Serial # Entry Field

The CPU Serial # field will enable a user to enter the serial number for the item the attributes will be assigned to.

Procedure

  1. Place a text object on the attrentry screen to the right of CPU Serial #.
  2. Open the text object's Properties dialog box.
  3. Select Text.
  4. Do the following.
    A  Multiline Clear the check box.
    B Font (Optional) Configure the font.
    C String  Enter ENTER HERE.
    D Expression
    1. Create a new text virtual point.
    Hint. Select New Point on the Popup menu.
    1. Name the point CPUSerial.
    No initialization is required.
    E Setpoint action Check the check box.
  5. Place the text object to the right of CPU Serial #.
  6. Surround ENTER HERE with a box that is configured with No fill.
    1. Configure a Toggle Action for a Base Platform Button
  7. Place a button on the CimEdit screen to the right of Base Platform.
  8. Open the button's Properties dialog box.
  9. Select Text Button in the Properties dialog box left-pane.
  10. Do the following.
    Feature Action
    Multiline checkbox Clear
    String field Enter BASE.
    Button color Select Black.
  11. Select Colors in the Properties dialog box left-pane.
  12. Select White in the Fill Color field.
  13. Select Events in the Properties dialog box left-pane.
  14. Create a Mouse Up event.
  15. Create a new procedure for the Mouse Up event.
  16. Do the following in the Procedure Information dialog box.
    A Procedure name Enter BASEPLATFORM.
    B New Click New.
    V Action type Select Toggle setpoint.
    D Point ID Create a new point.
    1. Click the Popup Menu button to the right of the Point ID field; select New.
    2. Create a new point that is:
    • Named BASEPLATFORM.
    • Virtual
    • Boolean
    Note: No initialization is required.
  17. Click OK.

    Result: The Procedure Information dialog box closes.

    1. Create an Animated Expression for the Base Platform Button
  18. Select Color Animation in the open Base Platform box's Properties dialog box.
  19. Click Edit.

    An Expression List Attribute Animation dialog box opens.

  20. Enter the following two expressions.
    A Expression Enter BASEPLATFORM EQ 1
    1 Fill
    1. Check the Fill checkbox.
    2. Select Solid in the drop down menu.
    3. Select Green.
    The expression/configuration are listed in the Expression box.
    2 Text/Font
    1. Enter YES.
    2. Select a font/type/size.
    Example
    • @Arial Unicode MS.
    • Bold
    • 10
    New Click New.
    B Expression Enter BASEPLATFORM EQ 0
    1 Fill
    1. Check the Fill checkbox.
    2. Select Solid in the drop down menu.
    3. Select Red.
    The expression/configuration are listed in the Expression box.
    2 Text/Font
    1. Enter NO.
    2. Select a font/type/size.
    Example
    • @Arial Unicode MS.
    • Bold
    • 10
  21. Check the Fill checkbox.
  22. Select Solid in the drop down menu.
  23. Select Green.
    The expression/configuration are listed in the Expression box.
  24. Enter YES.
  25. Select a font/type/size.
    Example
    • @Arial Unicode MS.
    • Bold
    • 10
  26. Check the Fill checkbox.
  27. Select Solid in the drop down menu.
  28. Select Red.
    The expression/configuration are listed in the Expression box.
  29. Enter NO.
  30. Select a font/type/size.
    Example
    • @Arial Unicode MS.
    • Bold
    • 10
  31. Close the dialog boxes.

Results

The attrentry.cim screen should look similar to this.