How many characters can be written on the file system with one write access?
FAQ #101154
One write access executed with the new version of the FBoxes can write up to 3072 characters (the FBox executes several write commands for 255 bytes each, which is the biggest junk of data which can be written to the file system with one internal command). This new FBox library is available for PG5 1.4 and for PG5 2.0 (2.0.210)
With the help of the FBox "Log to file" or "Log to file advanced" it's possible to store data to the filesystem of the PCD.
These FBoxes permit the user that information is written according to his needs (formatting) into the file.
Older FBoxes have the limitation that only 255 characters could be written at once in to the file.
With newer FBoxes we have increased the limit of the "Head" value and the "Val" value of the FBox "Log to File Advanced" from 255 characters to 3072 characters.
Version dependencies
Minimum requirement for the file system library to support the writing of 3072 characters:
- For PG5 1.4: $2.5.309
- For PG5 2.0: 2.6.200 (delivered with PG5 2.0.210)
Remarks
- Minimal firmware version to use this new library is 1.10.16.
- The length of 3072 bytes concerns the effectively written data; in case template texts using e.g. $Rnnnn are used, the amount of written bytes count.
- When working with the System Funtions (CSF), the maximum amount is 255 characters.
Example
The text "Register 0 contains: $R0000" is written to a file:
- if register 0 has value 1234: 25 characters (bytes) are written
(Written content: "Register 0 contains: 1234") - if register 0 has value 1234567890: 31 characters are written.
(Written content: "Register 0 contains: 1234567890")
Categories
PCD7 / Rxxx
PCD3 / Rxxx
Local FAQ Deutschland / File System library
PCD2 / Rxxx
PG5 2.0 / File System library
Last update: 29.05.2015 01:32
First release: 04.03.2009 09:17
Views: 29612