FTP client and SD memory card control setup
54
FP Web-Server V2.810 EN
To replace the contents of a line of a stored file, the following syntax can
be used (00200: string start address of the text to find, 00300: address of
the new text)
{A_D_00200_00300_
m
01_filename.txt}
To read the contents of a line of a stored file, the following syntax can be
used (00200: string start address of the text to find, 00300: address of the
new text)
{A_D_00200_00300_
r
01_filename.txt}
To test if a file exists, the following syntax can be used:
{A_D_00200_00000_
P
01_filename.txt}
No data will be written to the PLC if the number of PLC registers is set to 0.
The parameters in this tag have the following meanings:
Parameter
Char. offset
Parameter
Description
Example
+0
Start code
Tag must start with '{A_'
{A_
+3
PLC register type PLC register type: D=DT, F=FL, L=LD
D_
+5
Pointer 1 to start
of data 1
CSV: First PLC register address to read
TXT: Start of Control FPWIN Pro string header
00200_
+11
Number of
registers
or
Pointer 2 to start
of data 2
CSV: Number of PLC registers to read
TXT:
Indicator "00001_" to transmit data or "00000_" for
a test command with P
TXT function 'm' or 'r':
Start of Control FPWIN Pro string header of
read/replace data
00066_
00001_
+17
Operation mode
CSV:
K,k*: Cell terminator ',' (comma)
S,s*: Cell terminator ';' (semicolon)
P: Restore a file/recipe from SD card to the PLC
TXT:
–
T,t*: Write and forward
–
a*: Append to existing file. If the file does not
exist, it will be created automatically.
–
r*: Search for a line of a file for the text specified
by data 1.
Each line must be terminated with LF (line feed
control code). If the text of data 1 is starting with *
(asterisk), the search text can be at any position
within the line.
The read result or error information is stored in data
S