Panasonic FP Web-Server User Manual page 107

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

Advertisement

Http Server Functions/ Web Pages
In this example DT200 (variable name "Counter") is read from the PLC and interpreted as
number 'n'. In a loop that follows, 'n' dashes ('-') are output. The resulting HTML page looks as
follows:
The character { in Java Script must be followed by a space character, tab
character or a new line. Otherwise it is interpreted as a PLC data field.
Example:
for (i=0; i<n ; i++ ) {document.write('-'); }
will generate a compiler error. But the following code will work as expected:
for (i=0; i<n ; i++ ) {
document.write('-');
}
96
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