Omron CJ1W-ETN11 Operation Manual page 187

Sysmac cs/cj series ethernet units
Hide thumbs Also See for CJ1W-ETN11:
Table of Contents

Advertisement

Using File Memory
Data File Format
Writing Data Files via FTP
Reserved
(48 bytes)
166
The format of data files (files with .IOM extensions) is shown in the following
diagram.
Reserved (48 bytes)
Set the reserved bytes to all zeros (00 Hex).
In this example, the put command (see page 171) is used to write the follow-
ing data to a file called DMDATA.IOM on a Memory Card, and then the READ
DATA FILE instruction (FREAD(700)) is used to write 5 words of data from the
beginning of the DMDATA.IOM file to D00000 to D00004.
C: Control word
#0000 = Read data from Memory Card
S1: First source word
D: First destination word
Contents of DMDATA.IOM Data File
Data (10 bytes)
Data Read from File
Word
D00000
D00001
D00002
D00003
D00004
Note
1. FREAD(700) will not be able to read the last byte in a file if the files con-
tains an odd number of bytes. Add 00 Hex to the end of the file if necessary
to make an even number of bytes.
2. The UM and DM Areas contain binary data. Set the data type to binary us-
ing the type command (see page 170) before reading or writing files us-
ing FTP.
3. Refer to the CS/CJ-series Programmable Controllers Programming Manu-
al (W340) for information on the File Memory Instructions.
Byte position from the
beginning of the file
Data
No. of words
to read = 5
First word to
read = 0
Add 00 Hex if necessary to
make an even number of bytes.
Contents
133A
E4F3
CC0B
3C5F
A200
Section 7-3
S2: Filename
\ D

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-etn11Cs/cj seriesCs1w-etn01W343-e1-07

Table of Contents