1 before creating programs, 1 flow from introduction to operation – KEYENCE Visual KV Series User Manual
Page 26

1.1 Before Creating Programs
3-2
1
Chapter 1 Programming
1.1
Before Creating Programs
This section describes what you should know before creating programs and opera-
tions for the Visual KV Series.
1.1.1
Flow from Introduction to Operation
This section describes an overview of program creation procedures, functions used,
and setting items.
In the example described below, a latch circuit is created as a program for the Visual
KV Series.
Introduction
Examining contents of operations
Figure 1 shows a latch circuit which operates as follows.
Pushbutton switch PB1: ON
Pushbutton switch PB2: OFF
➞Pilot lamp (PL) turns on.
Pushbutton switch PB1: OFF
Pushbutton switch PB2: OFF
➞Pilot lamp (PL) remains
lit even if PB1 turns
OFF.
Pushbutton switch PB1: OFF
Pushbutton switch PB2: ON
➞Pilot lamp (PL) goes out
when PB2 is set to ON.
Time chart
ON
OFF
ON
OFF
PL
ON
OFF
PB1 contact
PB2 contact
Fig. 1
PB1 = N.O. contact switch
PB2 = N.C. contact switch
PB1
PB2
RL
(Relay)
PL
Next, a program is created that will use the same operation as this circuit to control a PLC.
▲
▲
Program examination
Circuit 1 shows relay symbols for the latch circuit.
Examine which contact in the Visual KV Series is used for each pushbutton switch and pilot lamp
(Table 1). When many I/O devices are required for control, expansion units should also be considered.
Circuit 1
PL
RL
RL
RL
PB1
PB2
Relay (coil)
Relay (contact)
Relay (contact)
Pilot lamp
Table 1
I/O device
Contact No.
Pushbutton switch PB1 (N.O. contact)
Input relay (0000)
Pushbutton switch PB2 (N.C. contact)
Input relay (0001)
Relay RL
Internal relay (1000)
Pilot lamp PL
Output coil (0500)
Program creation
Edit a program using the "LADDER BUILDER for KV" programming support software creation tool.
Ladder diagram
0500
1000
1000
1000
0000
0001*
Coding list
LD
0000
OR
1000
AND
0001
OUT
1000
LD
1000
OUT
0500
END
* Enter "N.O. (AND X001)" to 0001 to
use N.C. contact.
Transferring and confirming the program
Transfer the created program to the Visual KV Series, perform a test run, and then confirm operations
with the actual devices.
➞
➞
➞
➞
➞
Operation
KVNKA Chap 01P.p65
08.3.11, 11:49 AM
2