In the same configuration we have been working in, PowerVision Essentials Training
Click on the Connections Tab
Under the Module Setup pane, Select Digital Input 1
Click the Auto Create box.
By clicking auto create, you are creating a variable within PowerVision for Digital Input 1. It should have generated a variable name similar to: IO.Digital Input 1 and is located in the Input Output Port Manager folder in the Programming Tab.
Now let’s create a Text Gauge and a Smart Text Widget and use the toggle switch on the display stand to test the Digital Input.
Click on the Page Designer Tab
Select the I/O Animations Page you created previously
From the Toolbox, drag a Text Gauge onto the design canvas
Name this Text Gauge: TG DigIn 1
In the Text Gauge Properties pane, assign it to the variable you created for the Digital Input 1 above (i.e. IO.Digital Input 1)
Using Supplemental 4.3.1, change the Text Gauge Properties
From the Toolbox, drag a Smart Text Widget onto the design canvas
Name this Text Gauge: STW DigIn 1
Using Supplemental 4.3.2, change the Smart Text Widget Properties
Supplemental 4.3.1
Supplemental 4.3.2
Under Advanced Features > Smart Text Items,
Click Edit Smart Labels…
The Smart Text Editor window will appear.
For the Selector Variable, choose IO.Digital Input 1 (this is the variable we created for the digital input in the previous steps)
Click the +
Under Description change Enumeration0 to: DigIn Off
Under DisplayValue change Enumeration0 to: OFF
Click the + again
Under Description change Enumeration1 to: DigIn On
q Under DisplayValue change Enumeration1 to: ON
Click OK
Create and Load your configuration to test.
When you toggle the switch in the up position you should see:
• the Digital Input 1 gauge display a 1
• the STW DigIn 1 will display ON
When you toggle the switch in the middle position you should see:
• the Digital Input 1 gauge display a 0
• the STW DigIn 1 will display OFF