Notes On Strings - Panasonic FP Web-Server User Manual

Fp series programmable controller, hardware / configuration
Hide thumbs Also See for FP Web-Server:
Table of Contents

Advertisement

Http Server Functions/ Web Pages
Entry format
DT201_16_X
DT202_16_lx
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
DT201_6_.2d
DT201_6_.2i
DT201_6_.1u
DT201_16_.5li
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
90
User entry
Data in PLC register
8000
DT201= -32768 (8000 hex)
01E240
DDT202= 123456 (0001E240 hex)
User entry
Data in PLC register
12.3
DT201= 1230 (04CE hex)
-1
DT201= -100 (FF9C hex)
12.345
DT201= 123 (007B hex)
123.4567
DDT201=12345670 (00BC6146 hex)
FP Web-Server V2.11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp-webFp-web2

Table of Contents