Kv -300 – KEYENCE Visual KV Series User Manual

Page 287

Advertising
background image

7.5 KV Mode Programming

KV-300 Series Only

KV

-300

KV-10/80

Chapter 7 KV-L2 Serial Interface Module

1-263

1

7

Note 1: Two KV-L2s can be connected to the KV-300 CPU. The KV-L2s are defined
as No.1 and No. 2, counting from the module closest to the KV-300 CPU.

Note 2: The designated relays and DM addresses are set at startup of special utility
relay 2307.

Assigning relays

Five relay nos., including the first relay no., are assigned. The assigned relays have
the following functions.

1. First relay no. +0

Turns ON after data is loaded and transferred to data memory. It remains ON,
preventing data loading. Write a program to turn this relay OFF after the process is
completed. (Data is loaded while the relay is OFF.)
To fetch the ON signal only for one scan, add the following line to the end of the
program.

2. First relay no. +1

Turns ON and remains ON when the loaded data cannot be transferred to data
memory because the first relay no. +0 is ON when the data is received, or a parity
error has occurred (that is, first relay no. +2 was ON) during data reception.
When the data is loaded at startup, the first relay no. +1 turns OFF.
To fetch the ON signal only for one scan, change the program as shown in 1. First
relay no. +0, above.

3. First relay no. +2

Turns ON and remains ON when the data cannot be received because a parity error
has occurred during data reception. (The first relay +0 turned ON simultaneously.)
When the data is loaded at startup, the first relay no. +2 turns OFF when the first
relay no. +0 turns ON.
To fetch the ON signal only for one scan, change the program as shown in 1. First
relay no. +0, above.

4. 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 the special utility relay 2307
is ON.

5. First relay no. +4

Transmits a break signal of approximately 160 msec duration at startup. Automati-
cally turns OFF after transmission is completed. Transmission is enabled while the
first relay no. +3 is OFF.
Use the SET/RES instruction or KEEP instruction to turn the relay ON/OFF.

Relay No.

Function

First relay no. +0

ON when data has been loaded

+1

On when data has been loaded but not transferred to data memory

+2

On when a data reception error has occurred

+3

Data transmission start/stop ON: start, OFF: stop

+4

Transmits an approximately 160 msec break signal at startup.

(RES)

∗∗∗∗

∗∗∗∗

First relay no. +0)

(∗∗∗∗

KVHKA Chap 07_5to10.p65

08.3.11, 11:18 AM

263

Advertising