Http Server Functions/ Web Pages | FP | |||
|
|
|
|
|
|
|
|
|
|
| Entry format | User entry | Data in PLC register |
|
| DT201_16_X | 8000 | DT201= |
|
|
|
|
|
|
| DT202_16_lx | 01E240 | DDT202= 123456 (0001E240 hex) |
|
|
|
|
|
|
Complete example to enter a
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
Entry format | User entry | Data in PLC register | |
DT201_6_.2d | 12.3 | DT201= 1230 (04CE hex) | |
|
|
|
|
DT201_6_.2i | DT201= | ||
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.2Notes 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.
-
•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
-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