HTTP server functions/web pages
FP Web-Server V2.810 EN
105
Entry format
User entry
Data in PLC register
DT202_16_f
1.2e4
DDT202=12000 (463B8000 hex)
Strings
Entry format
User entry
Data in PLC register
DT602_16_S
1234
DT602-DT603="1234"
DT602_16_S
123
DT602-DT603="123?" (? is unchanged)
DT600_16_s
1234
DT601=4 DT602-DT603="1234" (DT600
> 3)
DT602_16_c
ABC
DT602="A?" (? is unchanged)
Hex entries:
In the latest version also the format type characters 'x' and 'X' are
allowed for hexadecimal PLC data entries. Hex data entries are possible
for 16-bit (name="DT200_6_X") and 32-bit (name="DT300_16_lx")
PLC data registers:
Entry format
User entry
Data in PLC register
DT201_16_X
7b
DT201= 123 (007B hex)
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>
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)