Omron CJ1W-ETN21 Memory Data Formats, Accessing Memory/Sending Mail Flag Bit 01 of n+17

Models: CJ1W-ETN21

1 242
Download 242 pages 30.9 Kb
Page 50
Image 50

I/O Memory Data Formats

Section 2-6

n+17

 

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

n

-

-

-

-

-

-

-

-

-

-

-

-

 

-

-

-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mail Send Switch

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.

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

Accessing Memory/Sending Mail Flag

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.

 

 

 

 

 

 

 

 

 

I/O memory contents

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

+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

 

 

 

 

IOM file contents

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XX

XX

 

 

XX

12

34

56

78

9A

BC

DE

F0

12

34

 

 

 

 

 

 

 

 

48 bytes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(Reserved for system)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

26

Page 50
Image 50
Omron CJ1W-ETN21 Memory Data Formats, Accessing Memory/Sending Mail Flag Bit 01 of n+17, IOM Format, TXT Format