Download USER`S GUIDE
Transcript
Language Reference
(* IL Equivalence: *)
LD
'data.bin'
F_ROPEN
ST
file_id
F_CLOSE
ST
ok
(* file_id is already in the current IL result *)
F_EOF
F_EOF
ID
Arguments:
ID
ok
INT
BOO
ok
file number: returned by F_ROPEN or F_WOPEN.
end of file indicator
TRUE if end of file has been reached at the last read or
write procedure call.
With FM_READ, the last message read from a file may
not be correct, if the last character is not a string
terminator.
Description:
Tests if end of file has been reached.
This function is not included in the ISaGRAF simulator.
(* FBD program using file management blocks *)
F_ROPEN
'data.bin'
Path
ID
file_id
Q
VAL
not_eof:
FA_READ
file_id
ID
file_id
ID
F_EOF
ok
'last val = '
not_eof
CAT
Msg
VAL
IN
file_id
ID
message
Q
F_CLOSE
ok
ok
(* ST Equivalence: *)
file_id := F_ROPEN('data.bin');
WHILE not(F_EOF(file_id))
VAL := FA_READ(file_id);
END_WHILE;
MESSAGE := 'last val = ' + msg(VAL);
ok := F_CLOSE(file_id);
ICS Triplex ISaGRAF Inc.
B-315
Related documents
5 - Alugas
Programmable Logic Controller PLC300
User`s Manual - BCM Advanced Research
PDF - Motion Control für Einsteiger
Cartão PLC1
User's Manual of ISaGRAF Embedded Controllers
User`s Manual of ISaGRAF Embedded Controllers
SCADAPack E Configurator User Manual
DS800 Development Suite Software
March 1995 - The Quick Answer
User`s Manual of ISaGRAF Embedded Controllers
User`s Manual of ISaGRAF Embedded Controllers