Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 1137

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

File Memory Instructions
File Memory Instructions
I/O memory
1234
5678
9ABC
DEF0
FWRIT(701)
FWRIT(701) creates a data file containing the specified data from I/O mem-
ory. The file format can be either binary or CSV. FWRIT(701) can also be
used to add to an existing file or overwrite an existing file from a specified
position.
FREAD(700)
FREAD(700) reads the contents of a data file and stores it in the specified
area of I/O memory. The file format can be either binary or CSV. FREAD(700)
can also be used to read data from a specified position in a file.
TWRIT(704)
TWRIT(704) creates a text file containing ASCII data stored in I/O memory.
TWRIT(704) can also be used to add to an existing file or overwrite an existing
file.
CMND(490)
CMND(490) can be used to format files, delete files, copy files, and change
file names by sending FINS commands for Memory Card operations. For
details, refer to Section 5 File Memory Functions in the SYSMAC CS/CJ
Series Programmable Controllers Programming Manual (W394).
For binary format (.IOM), the data will be as follows when 1234 hex, 5678 hex,
9ABC hex, and DEF0 hex are stored in the file ABC.IOM (although the user
does not normally need to be concerned with this structure):
I/O memory
1234
5678
9ABC
DEF0
For word CSV format (.CSV), the data will be as follows when 1234 hex, 5678
hex, 9ABC hex, and DEF0 hex are stored in the file ABC.CSV (the basic
structure would be the same for text data (.TXT):
31
1
32
2
33
3
34
4
Converted to ASCII
2C
,
35
5
36
6
37
7
38
8
2C
,
to
Contents of ABC.CSV
XX
XX
to
XX
12
34
56
78
9A
BC
DE
F0
Contents of ABC.IOM
4 bytes
Delimiter
1234,5678,9ABC,DEF0
4 bytes
File Displayed as Text Data
Delimiter
Section 3-26
48 bytes (reserved
for system use)
8 bytes
1097

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents