Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Exercise: Changing the screen shown by a PageLink object

a)     Create  Create an analog tag named ‘SCREEN’ and specify its initial value as 1. Set the minimum and maximum values to 1 and 3, respectively.

...

b)     Create  Create three popup pages and reduce their sizes so that they can fit inside of the main page.

...

c)     In  In popup page 1, you can view temperatures and elapsed fire time for each floor. Alarms are displayed in the alarm summary object.

...

d)     In  In popup page 2, you can monitor fire and sprinkler status.

...

e)     In  In popup page 3, temperatures of each floor will be shown in the trend graph. You may also check the alarm history in the alarm summary object.

...

f)     Click  Click [Draw] – [Pagelink] to configure a page link object in on the main screen. Select ‘Specify by Tag Values’ for the page control option, then choose ‘Popup Page’ as the page type. Choose ‘SCREEN’ as the page select tag.

...

g)      Create  Create left and right touch objects which change the value of the ‘SCREEN’ tag. Assign command expressions as shown in the table below.

Function

Touch

Action

Command expression

Command

SCREEN = SCREEN – 1;

Function

Touch

Action

Command expression

Command

SCREEN = SCREEN + 1;

h)     Launch  Launch the project in Xpanel or the simulator. When you click the left and right touch buttons, the page link screen should switch between pages.

...