An example tag is "%a02". This tag will be replaced by a '1' or '0' character representing the current value of Port A2. If this tag is placed on a Dynamic Web page, it will be shown on a Web Browser requesting that page as a '1' or '0'.
For details, see Dynamic Web Pages
| Variable Group | Description |
| a | Port A |
| b | Port B |
| c | Port C |
| d | Port D |
| e | Port E |
| f | Port F |
| g | Port G |
| h | Reserved for furture use |
| j | Reserved for furture use |
The following variable values(in hex) are defined:
| Variable Value | String returned by HTTP Server - displayed on web page |
00 - 07 | '1' or '0' returned depending on PORT state |
10 - 17 | "on" or "off" returned depending on PORT state |
20 - 27 | "<!--" returned if port is configured as input |
28 - 2f | "-->" returned if port is configured as input |
30 - 37 | "<!--" returned if port is configured as output |
38 - 3f | "-->" returned if port is configured as output |
40 - 47 | "checked" returned if port is configured as output |
48 - 4f | "checked" returned if port is configured as input |
50 - 57 | "0" returned if port is configured as output. "1" returned if port is configured as input. |
Examples:
| Example | Description |
%a02 | Variable group = a, Variable value = 0x02. This example will display the value of port A2 as '1' or '0'. So, if port A2 is set, a '1' will be displayed on the web page in stead of '%a02' |
%c17 | Variable group = c, Variable value = 0x17. This example will display the value of port C7 as 'on' or 'off'. So, if port C7 is clear for example, 'off' will be displayed on the web page in stead of '%c17' |
%f22 | Variable group = f, Variable value = 0x22. Variable values
20 to 2F can be used to place HTML comments around HTML code if a port is configured as an input. For example,
to only display an image if a Port pin RF1 is configured as an output, you could write: %f21<img src="picture.jpg">%f29 |
%g52 | Variable group = g, Variable value = 0x52. This example will display '1' if port G2 is configured as an input, and '0' if port G2 is configured as an output. |
%b45 | Variable group = b, Variable value = 0x45. This example will display 'checked' if port B5 is configured as an output. |
%c4c | Variable group = c, Variable value = 0x4c. This example will display 'checked' if port C5 is configured as an intput. |
The following variable values(in hex) are defined:
| Variable Value | String returned by HTTP Server - displayed on web page |
00 - 0A | 2 or 3 digit uppercase hex value |
10 - 1A | Decimal value 0 - 255 or 0 - 1023 |
20 - 2A | Decimale value, 2 decimal places for 5V reference |
30 - 3A | "<!--" returned if the channels is configured for ADC |
40 - 4A | "-->" returned if the channels is configured for ADC |
50 - 5A | "<!--" returned if the channels is NOT configured for ADC |
60 - 6A | "-->" returned if the channels is NOT configured for ADC |
Examples:
| Example | Description |
%n02 | Variable group = n, Variable value = 0x02. This example will display the value of Analog Input 2 in uppercase hex. For example, "A8" will be displayed on the web page in stead of '%n02' if Analog Input 2 has the value 0xA8. |
%n1A | Variable group = n, Variable value = 0xaA. This example will display the value of Analog input 10 in decimal. For example, "210" will be displayed on the web page in stead of '%n1A' if Analog Input 10 has the value 210. |
%n32 | Variable group = n, Variable value = 0x32. Variable values
30-3A and 40-4A can be used to place HTML comments around HTML code if a Port pin is configured as an Analog Input.
For example, to only display an image if a Analog Input 2 is configured as an Analog Input, you could write: %n32<img src="picture.jpg">%n42 |
The following variable values(in hex) are defined.
| Variable Value | String returned by HTTP Server - displayed on web page |
00 |
Deprecated - use the Username command in the Secure Tags group! Displays the Username of the current user. For example "Guest" or "Admin". The current user will be "Guest" if the user has not logged in. This is a Secure Tag, and requires Authentication to be displayed! |
01 |
Displays the TCP/IP stack version. For example "V2.04". |
02 |
Displays the Application version. For example "V3.00". |
03 |
Returns '1' if Authentication has been provided, else '0'. |
04 |
Displays 'Yes' if the board has a bootloader, else 'No' |
05 |
Displays our NetBIOS name |
10 |
Displays first part of current IP address. For example, will be '5' if our IP is '10.1.0.5'. |
11 |
Displays second part of current IP address. |
12 |
Displays third part of current IP address. |
13 |
Displays fourth part of current IP address. For example, will be '10' if our IP is '10.1.0.5'. |
14 |
Displays first part of MAC address. For example, will be '5' if our MAC is '0.1.2.3.4.5'. |
15 |
Displays second part of MAC address. |
16 |
Displays third part of MAC address. |
17 |
Displays fourth part of MAC address. |
18 |
Displays fifth part of MAC address. |
19 |
Displays sixth part of MAC address. For example, will be '200' if our MAC is '200.1.2.3.4.5'. |
1A |
Displays first part of current Network MASK. For example, will be '255' if our mask is '0.0.0.255'. |
1B |
Displays second part of current Network MASK. |
1C |
Displays third part of current Network MASK. |
1D |
Displays fourth part of current Network MASK. For example, will be '15' if our mask is '15.0.0.255'. |
1E |
Displays first part of current Gateway address. For example, will be '5' if our Gateway Address is '10.1.0.5'. |
1F |
Displays second part of current Gateway address. |
20 |
Displays third part of current Gateway address. |
21 |
Displays fourth part of current Gateway address. For example, will be '10' for '10.1.0.5'. |
Examples:
| Example | Description |
%l00 | Variable group = l, Variable value = 00. This example will display the name of the user currently logged in. If the username of the user currently logged in is "Admin", then "Admin" will be displayed on the web page in stead of '%l00' |
%l10.%l11.%l12.%l13 | Variable group = l, Variable value = 10 to 13. This example will display our IP address. |
Examples:
| Example | Description |
%k00.%k01.%k02.%k03 | This example will display the currently configured IP address. If the IP address is "10.1.0.1", then "10.1.0.1" will be displayed on the web page in stead of "%k00.%k01.%k02.%k03". |
%k0A.%k0B.%k0C.%k0D | This example will display the currently configured network MASK. If the MASK is "255.0.0.0", then "255.0.0.0" will be displayed on the web page in stead of "%k0A.%k0B.%k0C.%k0D". |
The following variable values(in hex) will display the current value of a PWM channel.
The SBC65EC has 4 PWM channels, so the second character can have a value from 1-4.
| Variable Value | String returned by HTTP Server - displayed on web page |
01 - 05 | 2 or 3 digit uppercase hex value |
11 - 15 | Decimal value 0 - 255 (for 8-bit mode) or 0 - 1023 (for 10-bit mode) |
31 - 35 | "<!--" returned if the PWM output is enabled |
41 - 45 | "-->" returned if the PWM output is enabled |
51 - 55 | "<!--" returned if the PWM output is disabled |
61 - 65 | "-->" returned if the PWM output is disabled |
The following additional variable values are defined for the PWM channels.
| Variable Value | String returned by HTTP Server - displayed on web page |
F0 | Display the set frequency value. The frequency is given by a constant value
between 0 to 3.
For 8-bit mode, the following values are defined: 0 and 1=9.766kHz, 2=39.062kHz, 3=156.25kHz For 10-bit mode, the following values are defined: 0=2.441kHz, 1=9.766kHz, 2 and 3=39.062kHz |
F4 | Displays the set mode. A '8' indicates we are currently configured for 8-bit mode. A 'a' indicates we are currently configured for 10-bit mode. |
F8 | Displays the enabled PWM channels. An uppercase hex value is returned that indicates what channels are enabled. Each bit in the hex value represents a PWM channel. |
The following variable values(in hex) are defined.
| Variable Value | String returned by HTTP Server - displayed on web page |
00 |
Displays the Username of the current user. For example "Guest" or "Admin". The current user will be "Guest" if the user has not provided Authentication. |
01 |
Displays the Password of the current user. |
1.5.2