Example 3

Example 3

This example demonstrates a WML menu structure with two menus.
Fixed text and SGD commands are used to display the current printer settings for the Baud rate and ESSID settings on menu one and the Firmware version and ZBI State on menu two. Through use of the ‘timer’ setting, the menu will automatically return to a defined WML card if no buttons are pressed after a set time period. The menu is configured to allow printer alerts (such as HEAD OPEN) to be displayed.
1→
2→
3→
4→
5→
6→
7→
8→
9→
10→
11→
12→
13→
14→
15→
16→
17→
18→
19→
20→
21→
<wml>
<display>
  <card id="main" title="" ontimer="#main" alerts="on">
  <timer value="50"></timer>
   <p>Baud: $(comm.baud)</p>
   <br/>
   <p>AP: $(wlan.essid)</p>
   <p> </p><br/>
   <p> </p><br/>
  <p> <a href="#system">Firmware</a></p>
  </card>
   <card id="system" title="" ontimer="#main" alerts="on">
   <timer value="50"></timer>
   <p>Firmware:</p><br/>
   <p>$(appl.name)</p><br/>
   <p>ZBI State:</p><br/>
   <p>$(zbi.key)</p><br/>
   <p> <a href="#main">Main</a></p>
   </card>
</display>
</wml>
3
<card id="main" – defines the card’s id – "main".title="" – defines the title (not displayed on screen).ontimer="#main" – defines the WML card to display when the timer runs out.alerts="on"> – enables the alerts display feature.
4
<timer value="50"></timer> – sets the timer to 50 (in 10th of a second increments).
10
<p> <a href="#system">Firmware</a></p> – defines a link to the “system” card.
12
<card id="system" – defines the card’s id – "system".title="" – defines the title (not displayed on screen).ontimer="#main" – defines the WML card to display when the timer runs out.alerts="on"> – enables the alerts display feature.
13
<timer value="50"></timer> – sets the timer to 50 (in 10th of a second increments).
18
<p> <a href="#main">Main</a></p> – defines a link to the “main” card.
In use, these two WML menus look similar to this:
GX series printers can display four lines of text. If you are using a GX series printer, remove one line of text from each “card” to use this example.