Notes on strings – Panasonic Web-Server FP User Manual

Page 101

Advertising
background image

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

Advertising