3 loading text data, 1 receiving text data – KEYENCE Visual KV Series User Manual

Page 342

Advertising
background image

7.3 Loading Text Data

3-318

7

Chapter 7 Serial Communication

7.3

Loading Text Data

The KV can be connected to equipment having an RS-232C port to load consecutive
text data (less than 100 bytes) as a batch into its data memories.
Loaded data can be modified and incorporated into a program.

7.3.1

Receiving Text Data

The KV can write up to 100 bytes of text data sandwiched between STX and ETX,
into internal data memories (DM1000 to DM1099 with communication port A,
DM1200 to DM1299 with communication port B), one byte per data memory in
ASCII code.

Communications data format

Note that each text data must include STX (02H) in the 1st byte followed by the text
(100 bytes max.) and end with ETX (03H) in the last byte as shown below.

Internal data memory

The KV writes received text data into its data memories (DM1000 to DM1099 with
communication port A, DM1200 to 1299 with communication port B), one byte per
data memory in ASCII code.

The KV writes "00" into the high-order 8 bits and text data in ASCII code into the
low-order 8 bits of the data memory.

Note: The KV-10xx includes only communication port A.

Special utility relay operation

Three special utility relays assigned for each channel turn on for one scan to
indicate that text data has been received or that data reception has failed.

STX

1st byte

Last byte

Text data (less than 100 bytes)

ETX

Low-order 8 bits (ASCII code)

Received data

Byte count of data

Data 1 Data 2 Data 3

Data 99

1st DM

(Byte count of data)

Data memory

2nd DM

3rd DM

4th DM

100th DM

Bits in
data memory

High-order 8 bits (00)

a

t

a

D

y

r

o

m

e

m

W

E

N

V

K

A

T

R

O

P

0

0

0

1

M

D

1

0

0

1

M

D

2

0

0

1

M

D

8

9

0

1

M

D

o

t

3

0

0

1

M

D

9

9

0

1

M

D

B

T

R

O

P

0

0

2

1

M

D

1

0

2

1

M

D

2

0

2

1

M

D

8

9

2

1

M

D

o

t

3

0

2

1

M

D

9

9

2

1

M

D

0

0

3

-

V

K

0

8

/

0

1

-

V

K

0

0

2

9

M

D

1

0

2

9

M

D

2

0

2

9

M

D

8

9

2

9

M

D

o

t

3

0

2

9

M

D

9

9

2

9

M

D

.

o

N

a

t

a

D

t

n

u

o

c

e

t

y

B

1

a

t

a

D

2

a

t

a

D

8

9

a

t

a

D

o

t

3

a

t

a

D

9

9

a

t

a

D

STX

0

15

00

0

0

0

0

0

0

0

0

0

1

1

0

0

0

1

ETX

KVNKA Chap 07.p65

08.3.11, 0:11 PM

318

Advertising