beautypg.com

6 i/o memory data formats, I/o memory data formats – Omron CS CJ1W-ETN21 User Manual

Page 50

background image

26

I/O Memory Data Formats

Section 2-6

Accessing Memory/Sending Mail Flag (Bit 01 of n+17)

When a data file (IOM, TXT, or CSV) is being attached to the e-mail, the
Ethernet Unit will access the CPU Unit's I/O memory and automatically create
the data file when the e-mail is being sent. The Accessing Memory/Sending
Mail Flag (bit 01 of n+17) will be ON while the CPU Unit's memory is being
accessed.

To maintain the uniformity of the data in the data file, use this flag as a condi-
tion for write operations in the ladder program to prevent the ladder program
from overwriting the data while it is being converted to a data file.

2-6

I/O Memory Data Formats

IOM Format

When 5 words of hexadecimal I/O memory data (1234, 5678, 9ABC, etc.) are
being sent as an attached file in IOM format, the data is stored in the attached
file as shown in the following diagram.

Note

The IOM file format is compatible with the CPU Unit's READ DATA FILE and
WRITE DATA FILE instructions (FREAD and FWRIT) set to binary data for-
mat.

TXT Format

When hexadecimal I/O memory data (1234, 5678, 9ABC, etc.) is being sent
as an attached file in TXT format, the data is stored with the following proce-
dure.

1.

The word data is converted to ASCII.

2.

The word data is delimited by hard tabs ([HT]: 09).

3.

A return and line feed ([CR][LF]: 0D0A) are inserted after every 10 words.

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

n

Mail Send Switch

15

14

13

12

11

10

09

08 07

06

05

04

03

02

01

00

n+17

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

Accessing Memory/Sending Mail Flag

+0

+1

+2

+3

+4

+5

+6

+7

+8

+9

+0

1234

5678

9ABC

DEF0

1234

5678

9ABC

DEF0

1234

5678

+10

9ABC

DEF0

1234

5678

9ABC

DEF0

1234

5678

9ABC

DEF0

XX XX

XX 12 34 56 78 9A BC DE F0 12 34

I/O memory contents

IOM file contents

48 bytes
(Reserved for system)