Example On Formatting Display And Input Fields - Panasonic FP Web-Server2 Hardware And Configuration Manual

Table of Contents

Advertisement

770
1028
1284
2052
4096
8192
f
Formatting flag as specified with the receiving data tag (plus a leading % character).
Valid format identifiers are (details see manual or FP Web Configurator online help):
%ld %li %d %i %lu %lo %lx %lX %u %o %x %X %f %e %E %g %G %s %S %c
E x a m p l e
N o t e
12.1.13

Example on formatting display and input fields

FP Web-Server V2.810 EN
If DT204 (unsigned 16-bit integer) should be set to 123 and DT205
(signed 16-bit integer) to -456, the following data packet is to be sent to
the FP Web-Server:
POST /plcpost\r\nContent-Length:
42\r\n\r\n{DT_20_4_514_%u}=123&{DT_20_5_770_%d}=-456
See also the code examples for some programming languages which are
using the syntax above.
The file TEST.HTM of the "Example - Web pages and e-mail" project shows
a multitude of formatting methods:
HTTP server functions/web pages
signed 16-bit integer
unsigned 32-bit long integer
signed 32-bit long integer
32-bit floating point number (IEEE format)
+ add number of characters for FPWIN Pro
strings (having a 2-word header)
+ add number of characters for a character
array string (no header)
109

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp web-server

Table of Contents