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

Page 321

Advertising
background image

7.7 Non-procedure Mode Programming

KV-300 Series Only

KV

-300

KV-10/80

Chapter 7 KV-L2 Serial Interface Module

1-297

1

7

7.7.3

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.

1. 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.

2. First relay no. +4

Transmits a break signal of approximately 160 msec duration when turning ON.
Automatically turns OFF after transmission is completed. Transmission is enabled
while the first relay no. +3 is OFF.
Use the SET or KEEP instructions to turn the relay ON/OFF.

Note: Do not change the value of the text data (after the first DM +101) during
transmission, or an error will occur in the data being 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.

Starts/ends text data transmission.

+3

ON: Start transmission OFF: End transmission

+4

Transmits a break signal of approximately 160 msec when turning ON.

KVHKA Chap 07_5to10.p65

08.3.11, 11:18 AM

297

Advertising