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 |
- 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
- Place a text object on the attrentry screen to the right of CPU Serial #.
- Open the text object's Properties dialog box.
- Select Text.
-
Do the following.
A Multiline Clear the check box. B Font (Optional) Configure the font. C String Enter ENTER HERE. D Expression - Create a new text virtual point.
- Name the point CPUSerial.
E Setpoint action Check the check box. - Place the text object to the right of CPU Serial #.
-
Surround ENTER HERE with a box that is configured with No fill.
- Configure a Toggle Action for a Base Platform Button
-
Place a button on the CimEdit screen to the right of Base Platform.
- Open the button's Properties dialog box.
- Select Text Button in the Properties dialog box left-pane.
-
Do the following.
Feature Action Multiline checkbox Clear String field Enter BASE. Button color Select Black. - Select Colors in the Properties dialog box left-pane.
- Select White in the Fill Color field.
- Select Events in the Properties dialog box left-pane.
-
Create a
Mouse Up
event. -
Create a new procedure for the
Mouse Up
event. -
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. - Click the Popup Menu button to the right of the Point ID field; select New.
- Create a new point that is:
- Named BASEPLATFORM.
- Virtual
- Boolean
-
Click OK.
Result: The Procedure Information dialog box closes.
- Create an Animated Expression for the Base Platform Button
- Select Color Animation in the open Base Platform box's Properties dialog box.
-
Click Edit.
An Expression List Attribute Animation dialog box opens.
-
Enter the following two expressions.
A Expression Enter BASEPLATFORM EQ 1
1 Fill - Check the Fill checkbox.
- Select Solid in the drop down menu.
- Select Green.
2 Text/Font - Enter YES.
- Select a font/type/size.
- @Arial Unicode MS.
- Bold
- 10
New Click New. B Expression Enter BASEPLATFORM EQ 0
1 Fill - Check the Fill checkbox.
- Select Solid in the drop down menu.
- Select Red.
2 Text/Font - Enter NO.
- Select a font/type/size.
- @Arial Unicode MS.
- Bold
- 10
- Check the Fill checkbox.
- Select Solid in the drop down menu.
-
Select Green.
The expression/configuration are listed in the Expression box.
- Enter YES.
-
Select a font/type/size.
Example
- @Arial Unicode MS.
- Bold
- 10
- Check the Fill checkbox.
- Select Solid in the drop down menu.
-
Select Red.
The expression/configuration are listed in the Expression box.
- Enter NO.
-
Select a font/type/size.
Example
- @Arial Unicode MS.
- Bold
- 10
- Close the dialog boxes.
Results
The attrentry.cim screen should look similar to this.