beautypg.com

Transmitting text data, Kv -300 – KEYENCE Visual KV Series User Manual

Page 288

background image

7.5 KV Mode Programming

KV-300 Series Only

KV

-300

KV-10/80

Chapter 7 KV-L2 Serial Interface Module

1-264

7

Assigning data memory addresses

200 DM addresses, including the first DM no., are assigned.
The assigned DM addresses have the following functions.

Number of data bytes
The number of bytes in the first DM no. +0 and the first DM no. +100 becomes a
binary value. Write the binary data using the LDA/STA instruction or DW instruction.

Text data
Enter the text data in ASCII, by byte per DM. ("00" is entered in the 8 high-order bits
and ASCII code is entered in the 8 low-order bits.)
Write the text data using the LDA/STA instruction or DW instruction.

Transmitting Text Data

This section describes transmission of text data in non-procedure mode.
The KV-L2 can transmit to an external unit the text data written to the assigned data
memory addresses, one byte per data memory address, in ASCII.

Data transmission and internal data memory addresses

Before starting communications, write the data to be transmitted into data memory
addresses in the following format.

"00" is loaded to 8 high-order bits and text data is loaded to 8 low-order bits, in
ASCII, as follows.

Use the LDA/STA instruction or DW instruction to write data into data memory.

ON/OFF status of special utility relays

The assigned special utility relays turn ON/OFF to transmit text data and a break
signal.

First relay no. +3

Turns ON when text data transmission starts. Automatically turns OFF after trans-
mission is completed. If it is forced OFF in the middle of a transmission, data
transmission is stopped immediately. Use the SET/RES instruction to turn the relay
ON/OFF.
The transmission/reception of text data is enabled while special utility relay 2307 is
ON.

DM No.

Assigned data

First DM No. +0

Number of bytes of text data loaded

+1 to +99

Text data to be received

+100

Number of bytes of text data to be received

+101 to +199

Text data to be transmitted

1st DM no.+100

Number of data bytes

data 1

data 99

Data memory

addresses

Number

data 2

data 3 to data 98

1st DM no.+101 1st DM no.+102 1st DM no.+103 to 1st DM no. +198 1st DM no.+199

D15

0

D14

0

D13

0

D12

0

D11

0

D10

0

D09

0

D08

0

D07

0

D06

0

D05

1

D04

1

D03

0

D02

0

D01

0

D00

1

Data memory

High-order 8 bits

Low-order 8 bits

[00]

[ASCII code ]

Relay No.

Function

First relay no. +3

Starts/ends text data transmission.
ON: Start transmission OFF: End transmission

+4

Transmits a break signal of approximately 160 msec duration at
startup.

KVHKA Chap 07_5to10.p65

08.3.11, 11:18 AM

264