Note: Deprecated. The f_read_table_s function (from RTE 33.21) is recommended.
Reads, from a file present in flash, an array of data that is stored in consecutive real registers or in a specified real array.
Syntax |
i32 f_read_table (string fileName, i32 nEntry, i32 nData, buff) |
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fileName |
Name of the file to read data from. It must also contain the partition of the flash |
||||||||||||||||||
nEntry |
Number of table entries |
||||||||||||||||||
nData |
Number of data per entry (max 16), that is, the number of data for each row in the file |
||||||||||||||||||
buff |
It must be a variable of one of the following types: •array of variables of type stru_cam •real register rr or nvrr, from which the cam data read from the file must be stored •local array of real variables in which the cam data read from the file is to be stored •array of structures containing only real variables |
||||||||||||||||||
Result |
Returns:
|
||||||||||||||||||
Validity |
Task |
||||||||||||||||||
Note |
If functions regarding compact flash management are used, it is recommended that bit 14 of the sys_cfg variable (0x00004000) be imposed to 1, to enable the use of safety routines for flash write/read |
The data obtained will then be used in a rule to execute the mv_table() and mv_cam() functions.
The data contained within the file must respect the following rules:
•maximum line size: 128 characters
•maximum single item size: 18
Example of use:
|