Variable Group | Description |
a | PIC Port A |
b | PIC Port B |
c | PIC Port C |
d | PIC Port D |
e | PIC Port E |
f | PIC Port F |
g | PIC 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. |
For variable values where bit 3 is set (values from x8 to xf):
x8=port bit 0, x9=port bit 1, xa=port bit 2, xb=port bit 3
xc=port bit 4, xd=port bit 5, xe=port bit 6, xf=port bit 8
For example, variable value 48 will return "checked" if port bit 0 is configured as an input