
Http Server Functions/ Web Pages
FP Web-Server V2.11
90
Entry format
User entry
Data in PLC register
DT201_16_X
8000
DT201= -32768 (8000 hex)
DT202_16_lx
01E240
DDT202= 123456 (0001E240 hex)
Complete example to enter a 16-bit hex value for DT210:
<form action="/plcpost" method="POST" target="SUBWIN"
onsubmit="opensubwin(200,100);">
Enter DT210 <input SIZE="6" name="DT210_6_X"> in hex</form>
d) Format specification for integer values
With the latest version the '.precision' (range 1...9) format specification for integer
values is also valid for PLC data entry via the HTML submit function. It is now
possible to enter a floating-point value with a decimal point, which is stored as a
16-bit or 32-bit integer in the PLC data register. Examples for entering integers with
a decimal point:
Entry format
User entry
Data in PLC register
DT201_6_.2d
12.3
DT201= 1230 (04CE hex)
DT201_6_.2i
-1
DT201= -100 (FF9C hex)
DT201_6_.1u
12.345
DT201= 123 (007B hex)
DT201_16_.5li
123.4567
DDT201=12345670 (00BC6146 hex)
Further examples:
More PLC data entry examples can be found in "Example2" and "Example13".
7.1.12.2 Notes on Strings
•
The format definition S is used for ASCII strings without "header", i.e. an
ASCII string is generated with the F95 command in the PLC. The length that
was determined in the input field definition is the maximum string length that
can be transferred to the PLC. It can be shortened even further with the
format command
.xS
. In this case x stands for the number of characters of
the shortened string length.
- NULL-String
: If such a string has the length 0 (zero) the data in the PLC is not
changed.
•
The format definition
s
is used for ASCII strings with "header", i.e. ASCII
strings that have been generated with the string commands of FPWIN Pro
(from version 3.0 on) in the PLC. The "header" consists of two 16-bit words
before the real ASCII string.
- 1st Word: Maximum string length permitted that can be saved here. Zero disables
writing.
- 2nd Word: Current length of the strings.
- 3rd Word and following: ASCII characters of the string in LO/ HI sequence in the
word.
- Firstly, the entered string will always be shortened to the length that is depicted in
Содержание FP Web-Server
Страница 3: ......
Страница 11: ......
Страница 12: ...Chapter 1 Getting Started...
Страница 21: ...Getting Started FP Web Server V2 11 10 1 6 FP Web Server Block Diagram...
Страница 23: ......
Страница 24: ...Chapter 2 Hardware Description...
Страница 41: ......
Страница 42: ...Chapter 3 First Steps...
Страница 55: ......
Страница 56: ...Chapter 4 Configurator Software...
Страница 61: ......
Страница 62: ...Chapter 5 Base Configuration...
Страница 66: ...Chapter 6 Email Setup...
Страница 80: ...Chapter 7 Http Server Functions Web Pages...
Страница 104: ...FP Web Server V2 11 7 1 Details on the FP Web Server s Web Page Functions 93 TEST HTM Displayed in the Browser...
Страница 113: ......
Страница 114: ...Chapter 8 Ethernet RS232C Ports...
Страница 119: ......
Страница 120: ...Chapter 9 Dial In Setup for PPP Server...
Страница 125: ...Dial In Setup for PPP Server FP Web Server V2 11 114...
Страница 127: ...Dial In Setup for PPP Server FP Web Server V2 11 116...
Страница 139: ......
Страница 140: ...Chapter 10 Dial Out Setup for PPP Client...
Страница 150: ...Chapter 11 NTP Server for PLC Clock Synchronization...
Страница 153: ......
Страница 154: ...Chapter 12 Modbus Functions...
Страница 162: ...Chapter 13 IEC 60870 Functions of the FP Web Server...
Страница 168: ...Chapter 14 Java Applet Library MEW JAR...
Страница 170: ...Chapter 15 Additional Information...