ProSoft Technology 5201-104S-103M User Manual
Page 21
Web Page Construction
Web Server
ProSoft Technology, Inc.
Page 21 of 35
September 28, 2005
If you start with a complex example, you might quickly become frustrated and
yield to the pressure.
5.6
Adding Forms to Pages
In order to submit data to a Web server, the PUT and POST methods are used.
These methods are supported on the ProSoft Technology, Inc. modules and
provide a means to alter data in the module's virtual database. Data can be
altered for the following data types: bit, byte, short integer, long integer, single-
precision floating-point and double=precision floating-point. Additionally,
commands can be sent from the browser to perform the following operations:
cold boot, warm boot and reset diagnostic counters.
To support the PUT and POST methods, the user must insert
tags with data controls into the HTML code for the page. The generalstructure for a form is as follows:
…… add more stuff here for your Web page.
The NAME attribute in the tag defines the database interface function
to use with the data. Be careful to use the correct name or the results will not be
as desired. The first character of each name defines the data or parameter type
to be used with the form control. If the control is referencing a point in the
module's database, the address of the point follows the data-type character. The
data-type names recognized by the module are as follows:
P
= Password used for the submitted data. The password submitted must
match the value configured in for the module for the data on the form to be
processed by the module. The case of the password must match that configured
for success. Therefore, PassWord, PASSWORD, password, Password are four
different password values. If the module does not contain a password, this field is
not required.
Bxxxx
= Bit value where 0=clear and not 0 =set. The value of xxxx specifies the
bit offset from the start of the module's database. Therefore, B16 refers to the
16
TH
bit in the database or bit zero of byte three in the database.
Cxxxx
= Byte value (8-bit value) 0 to 255 or -128 to 127. The value of xxxx
specifies the byte offset from the start of the module's database. Therefore, C9
refers to the tenth byte of the database or database address 9.
Sxxxx
= integer value (16-bit value) 0 to 65535 or -32768 to 32767. The value of
xxxx
specifies the word offset from the start of the module's database. Therefore,
S1
refers to the second word in the database or database address 1.