FA_READ
Reads integer variables from a binary file. For use with F_ROPEN and F_CLOSE. This procedure makes a sequential access to the file, from the previous position. The first call after F_ROPEN reads the first four bytes of the file, each call pushes the reading pointer. To check if the end of file is reached, use F_EOF.
IMPORTANT:
Avoid using this function. This function is
intended to be obsolete.

Arguments | ||
---|---|---|
ID | DINT | File number: returned by F_ROPEN |
Q | DINT | Integer value read from file |
Example
(* FBD program using file management blocks *)

(* ST Equivalence: *)
file_id := F_ROPEN('voltramp.bin'); vstart := FA_READ(file_id); vend := FA_READ(file_id); vinc := FA_READ(file_id); delta_tim := tmr(FA_READ(file_id)); ok := F_CLOSE(file_id);
Provide Feedback