You are on page 1of 26

Visual KV Series

Advanced
Programming
Course
Successful Application Examples

Contents
1. High-speed counting of wafer rings ......................... 2
2. Palletizing operation made easy ............................... 4
3. Pitch feeding operation made easy .......................... 6
4. The KV enables creation of
a simple revolution indicator .................................... 8
5. Tension [synchronous] control with a single
KV unit ...................................................................... 10
6. Improving tact time and accuracy
for the reject ejection line........................................ 12
7. High-speed, accurate positioning of wafers .......... 14
8. Reliable counting of large numbers ....................... 16
9. With the KV, analog input is easy ........................... 18
10. Accurate positioning of transparent stickers
on a mount sheet ..................................................... 20
Contents

1. High-speed counting of wafer rings ................................................... 2


Use the KV Series to count wafer rings and display the count values.

2. Palletizing operation made easy ........................................................ 4


Let’s use the KV to program palletizing with a stepping motor.

3. Pitch feeding operation made easy .................................................... 6


Let’s use the KV to program pitch feeding with a stepping motor.

4. The KV enables creation of a simple revolution indicator ............... 8


Let’s create a revolution indicator using the frequency counter function of the KV.

5. Tension [synchronous] control with a single KV unit .................... 10


Use the KV Series to control the transfer speed of hoop material.

6. Improving tact time and accuracy for the reject ejection line ....... 12
Use the KV Series to control the reject ejection system.

7. High-speed, accurate positioning of wafers .................................... 14


Use the KV for the positioning of wafers by detecting their notches.

8. Reliable counting of large numbers ................................................. 16


Use the KV to count the number of pulses input from an encoder and display
it with the KV-D20.

9. With the KV, analog input is easy ..................................................... 18


Use the KL-N10V to input analog values.

10. Accurate positioning of transparent stickers on a mount sheet ... 20


Use the KV Series for the positioning of transparent stickers by detecting them.

1
1. High-speed counting of wafer rings
Use the KV Series to count wafer rings and display the count values.

[Control description]

Count value display

The LV-11/LV-H32 digital fiberoptic sensor counts wafer rings. The count value is displayed on the KV’s
Access Window.

[Wiring example]

24 VDC

The KV Series offers a high-speed scan time that make


full use of the capabilities of the LV Series, a digital
fiberoptic sensor providing high-speed response and a
small beam spot.
Connect the sensor to input 0000 of the KV.
Digital fiberoptic sensor
LV-11 + LV-H32

[Advantages of the LV Series digital fiberoptic sensor]


■ Conventional method ■ Advantages
A reflective photoelectric sensor is used for The LV-H32, a long detecting distance and
counting. Malfunctions occur when the gaps small beam spot sensor, is free from
between the wafer rings become narrow. The malfunctions. It can count both 6-inch and 8-
sensor should be re-adjusted at changeovers inch wafers with the same distance and
between 6-inch wafers and 8-inch wafers. sensitivity settings. Re-adjustment is
unnecessary at changeovers.
The amplifier features a digital display and
allows for fine adjustment to obtain optimal
sensitivity easily.

2
[Ladder program description]
Basic ladder program for counting wafer rings
✩ Input time constant setting ✩
2002 HSP
0000
To enable high-speed input, use the HSP instruction to set the input time
constant for input 0000 to 10 µs.
✩ Set the preset counter with the
preset value of 500. ✩ Wafer rings are detected with the LV and are counted with the built-in
C000 #00500
C000
counter of the KV.
0000 Set the preset value as 500. When the count value reaches the preset
✩ When the count value reaches the preset value, the counter will automatically reset.
value, output is turned ON for 500 ms. ✩
C000 T001 0500
When the count value reaches the preset value, output 0500 of the KV is
turned ON for 500 ms.
0500 #00500 Using the high-precision 1-ms timer instruction (TMS) of the KV enables
T time setting in the unit of 1 ms.
S 001

END

ENDH

The Access Window is a useful window that displays the status of the KV. It can also be used as a
counter.

T/C: Values of all timers/counters

Timer/counter No.
Current value
(Can be changed)
Preset value

Previous combination

Counter: RC-14

PLC: KV-16

A display function at normal counter-level is added to a PLC.


A single KV Series unit does double duty for the conventional combination of a PLC and a counter or a PLC and a
display device.

3
2. Palletizing operation made easy
Let’s use the KV to program palletizing with a stepping motor.

[Description of control]
Speed (Hz)

Point 3
14000
Coordinate
Point 1 (pulses)
10000 Point 2
12000

(1): The target is moved by 10000 pulses


and then returned to the original position.
(2): The target is moved by 12000 pulses



and then returned to the original position.



(3): The target is moved by 14000 pulses (1)

▲▲
and then returned to the original position. (2)
(3)

[Wiring example]
Stepping motor driver
Start
24 VDC
Twisted-pair cable
CW (pulse)

CCW
(rotation
direction) The positioning function of the KV
supports a 1-pulse method motor driver.
Connect output 0502 to a pulse train input
5 VDC* terminal and output 0503 to a rotation
Stepping motor direction output terminal.

[Overview of positioning function]

The simplified positioning function of the KV requires you only to input Just input values for the specific DM
preset values for the specific DM. and turn special relay 2310 ON. The
Setting items for positioning control function KV automatically performs ramp-up/
(X axis) down control calculation and output
Speed
Startup frequency (Hz): DM1480 pulses.
Operating frequency (Hz): DM1481 The number of output pulses can be
Acceleration/deceleration time (ms): specified within a range of 0 to
DM1482
4294967295.
No. of output pulses To divide the number of output pulses
(upper digit): DM1485
(lower digit): DM1484 into two to store them in two DMs, use
Start relay: 2310 the following expression:
Movement
Slowdown-stop relay: 2308
Emergency stop relay: 2309
* Expression for DM setting value
calculation
Only a single-line of ladder programming achieves this setting. No. of output pulses / 65536 = A
Extremely easy! with a remainder of B
0000 #01000 #05000 #03000 #00001 #34464 2310 A: Value of DM1485 (upper 16 bits
DW DW DW DW DW of No. of output pulses)
DM1480 DM1481 DM1482 DM1485 DM1484 B: Value of DM1484 (lower 16 bits
Startup Operating Acceleration/ No. of output
frequency frequency deceleration pulses of No. of output pulses)
1 kHz 5 kHz time 3 100,000
seconds

4
[Description of ladder program]
Basic ladder program for palletizing operation
✩ When input 0000 turns ON, the palletizing starts. ✩
0000 1300 1300 #00500 #05000 #03000 #00000 1000
Specify the parameters for the initial setting.
DIFU DW DW DW DW ( SET ) Startup speed: 500 Hz
DM1480 DM1481 DM1482 DM1485 Operating speed: 5000 Hz

Acceleration/deceleration time: 3000 ms
✩ Movement to position 1 ✩ Movement (upper 32 bits): 0
1000 0503 #10000 2310 2309 1200 1001
STG ( SET ) DW JMP


DM1484 1200


“STG” and “JMP” instructions are most
When positioning operation is activated, special relay 2309 turns ON. appropriate for controlling sequential
At the rising edge of relay 2309, utility relay 1200 is turned ON. The movement such as palletizing.
operation advances to the next stage.

✩ Return operation from point 1 ✩


1001 2309 1100 0503 2310 2309 1201 1002
STG ( RES ) JMP

1100 1201

When positioning operation is finished, special relay 2309 turns OFF.


At the falling edge of relay 2309, utility relay 1100 is turned ON. The
next operation is executed.
✩ Movement to position 2 ✩
1002 2309 1101 0503 #12000 2310 2309 1202 1003
STG ( SET ) DW JMP
1101 DM1484 1202

✩ Return operation from point 2 ✩


1003 2309 1102 0503 2310 2309 1203 1004
STG ( RES ) JMP
1102 1203

✩ Movement to position 3 ✩
1004 2309 1103 0503 #14000 2310 2309 1204 1005
STG ( SET ) DW JMP
1103 DM1484 1204

✩ Return operation from point 3 ✩


1005 2309 1104 0503 2310 2309 1205 1006
STG ( RES ) JMP
1104 1205

✩ When the palletizing operation is completed, output 0500 is turned ON for 3 Write ENDS instruction at the end of STG
seconds. ✩
instruction.
1006 2309 1005 0500 #00030 T000 ▲ JMP instruction can also be used to jump to
STG T000 ENDS 1002 and set the palletizing as an infinite
1105 loop operation.

END

ENDH

5
3. Pitch feeding operation made easy
Let’s use the KV to program pitch feeding with a stepping motor.

[Description of control]
Speed
Operation stops when
input 0001 turns ON.
Pitch feeding is executed every
time input 0002 turns ON.

Time
Operation starts when The feeding is repeated 4


▲ input 0000 turns ON. times.


(1)


(2)


(3)

(1) : The operation starts when input 0000 turns ON and continues until input 0001 turns ON.

(2) to (5): Pitch feeding is executed every time input 0002 turns ON. (The feeding is not activated until input 0002
turns ON.)
After four pitch feeding operations, output 0500 turns ON for 3 seconds and then the operation finishes.

[Wiring example]
Stepping motor driver
feeding

24 VDC
Start

Stop

Pitch

Twisted-pair cable
CW (pulse)

CCW (rotation
direction) The positioning function of the KV
supports a 1-pulse method motor
driver. Connect output 0502 to a
pulse train input terminal and output
5 VDC* 0503 to a rotation direction output
Stepping motor terminal.

[Overview of positioning function]


The simplified positioning function of the KV requires you only to input Just input values for the specific DM and
preset values for the specific DM. turn special relay 2310 ON. The KV
Setting items for positioning control automatically performs ramp-up/down
Speed function (X axis) control calculation and output pulses.
Startup frequency (Hz): DM1480 The number of output pulses can be
Operating frequency (Hz): DM1481
specified within a range of 0 to
Acceleration/deceleration time (ms):
DM1482 4294967295.
No. of output pulses To divide the number of output pulses
(upper digit): DM1485 into two to store them in two DMs, use
(lower digit): DM1484
the following expression:
Start relay: 2310
Slowdown-stop relay: 2308
Movement
Emergency stop relay: 2309 * Expression for DM setting value
calculation
Only a single line of ladder programming achieves this setting.
No. of output pulses / 65536 = A with
Extremely easy! a remainder of B
0000 #01000 #05000 #03000 #00001 #34464 2310 A: Value of DM1485 (upper 16 bits of
DW DW DW DW DW
DM1480 DM1481 DM1482 DM1485 DM1484
No. of output pulses)
Startup Operating Acceleration/ No. of output B: Value of DM1484 (lower 16 bits of
frequency frequency deceleration pulses No. of output pulses)
1 kHz 5 kHz time 3 100,000
seconds

6
[Description of ladder program]
Basic ladder program for pitch feeding operation

✩ When input 0000 turns ON, the operation starts. ✩


0000 1100 1100 #00500 1000
DIFU DW ( SET )
DM1480 Initial setting. Startup speed: 500 Hz

✩ Movement to the position in which pitch feeding starts ✩
1000 0503 #05000 #01000 #65535 #65535 2310 2309 1300 1001
STG ( SET ) DW DW DW DW JMP “STG” and “JMP” instructions are most


DM1481 DM1482 DM1485 DM1484 1300 appropriate for controlling sequential
movement such as pitch feeding.
When positioning operation is activated, special relay 2309 turns ON.
At the rising edge of relay 2309, utility relay 1300 is turned ON. The
operation advances to the next stage.
✩ Confirmation of the start point of pitch feeding/stop operation ✩

1000 0001 1200 2308 2309 1300 1002


STG JMP

1200 1400

At the rising edge of input 0001, special relay 2308 is turned ON. The
operation is slowed down and stopped.
✩ Execution of pitch feeding (first time) ✩
1002 0001 1201 #03000 #00500 #00000 #01000 2310 2309 1301 1003 The parameters for the pitch feeding are:


STG DW DW DW DW JMP Startup frequency: 500 Hz
1201 DM1481 DM1482 DM1485 DM1484 1301 Operating frequency: 3000 Hz

Acceleration/deceleration time: 500 ms


At the rising edge of input 0002, pitch feeding is executed. Movement: 1000 pulses
✩ Execution of pitch feeding (second time) ✩
1003 2309 1401 0002 1202 2310 2309 1302 1004
STG JMP
1401 1202 1302

✩ Execution of pitch feeding (third time) ✩

1004 2309 1402 0002 1203 2310 2309 1303 1005


STG JMP
1402 1203 1303

✩ Execution of pitch feeding (fourth time) ✩


1005 2309 1403 0002 1204 2310 2309 1304 1006
STG JMP
1403 1204 1304

✩ When pitch feeding is completed, output 0500 is turned ON for 3 seconds. ✩


1006 2309 1404 0500 #00030 T000
Write ENDS instruction at the end of STG

STG T000 ENDS instruction.


1404 JMP instruction can also be used to jump
to 1002 and set the pitch feeding as an
END infinite loop operation.

ENDH

7
4. The KV enables creation of a simple
revolution indicator
Let’s create a revolution indicator using the frequency counter function of the KV.

[Description of control]

The frequency counter function of the KV


counts the ON/OFF signals from the sensor
connected to input 0004. The result is
displayed on the built-in Access Window.
The number of revolutions is counted in units
of rpm.

[Wiring example]

24 VDC

Fiberoptic sensor

The frequency counter function of the KV is fixed at input 0004.


When a rotary encoder is used instead of a sensor, a single
phase input (phase A only) is used.

[Overview of frequency counter function]

0000 #00500 2305


DW ( SET )
DM1404

The frequency counter function of the KV automatically calculates the frequency of input pulses using high-speed
counter CTH0 included with the KV.
Just input the sampling time (ms) to DM1404 and turn special relay 2305 ON. The measured frequency (Hz) is
automatically input to DM1405.

* Parameters used for frequency counter function


DM1404: Measurement cycle (sampling time) (ms)
DM1405: Measurement result (Hz)
2305: Enable/disable the frequency counter

8
[Description of ladder program]
Basic ladder program for frequency counter function

✩ Initial setting of frequency counter function ✩


2008 #01000 DM1404 2305
LDA STA ( SET ) Specify the parameter for the initial setting of the frequency counter
function.
✩ Set the input time constant. ✩ Sampling time: 1000 ms
2002 HSP
0004 To enable high-speed input, use the HSP instruction to set the input time
constant for input 0004 to 10 µs.
✩ The number of revolutions (rpm) is obtained
from the measured frequency (Hz).
2002 DM1405 #00060 #00200 DM0000
LDA MUL DIV STA The following expression is used to obtain the number of revolutions (rpm)
from the measured frequency (Hz):
END rpm = Hz x 60 s / No. of pulses for one revolution
In this example, the number of pulses for one revolution is set to 200
pulses.
ENDH

The following applications are possible with the frequency counter function:

Monitoring the feeding Detecting reflective stickers with a


speed of a wire photoelectric sensor

Controlling processing speed As an operating device for a press


of vinyl sheet

Acceptable Front

Back
Unaccep-
table

9
5. Tension [synchronous] control with a single
KV unit
Use the KV Series to control the transfer speed of hoop material.

[Control description]

Upper limit of
the sag

Stable
operation
range

Lower limit of
the sag

Monitor the amount of the material fed constantly from the loader side, then automatically adjust the amount of the
material taken up at the unloader side.
Two fiberoptic sensors monitor the sag of the material. Adjust the transfer speed so that the amount of the sag
remains within the specified range.

[Wiring example]

24 VDC Stepping motor driver

Rotary encoder
Twisted-pair cable
CW (pulse)

CCW
(rotation
direction)

5 VDC*

Stepping motor

Synchronous control is achieved by combining the frequency counter function and specified frequency pulse
output function. These are the built-in functions of the KV Series.
This is a single-phase speed control.
Connect the phase A output from the rotary encoder to input 0004 and the pulse-train input terminal of the
stepping motor to output 0502.
Install sensors to detect the upper and lower limits of the sag (connected to inputs 0000 and 0001).

10
[Outline of synchronous control]
Frequency counter function
The frequency counter function of the KV Series automatically calculates the
0000 #***** 2305
( SET ) frequency of input pulses using the built-in high-speed counter CTH0. The
DW
DM1404
measured frequency (Hz) is automatically stored in DM1405 only when the
sampling time (ms) is input to DM1404 and special utility relay 2305 is turned ON.
Specified frequency pulse The specified frequency pulse output function outputs pulses at a specified
output function frequency using the built-in high-speed counter CTH1. The pulses are
0000 #***** 2306
automatically output from output 0501 only when the output frequency (Hz) is
DW ( SET ) input to DM1936 and special utility relay 2306 is turned ON.
DM1936 Synchronous control is performed by combining these two functions.

[Ladder program description]


Basic ladder program for tension control of hoop material
* This example assumes the use of the encoder with 360 pulses/rotation and the motor with 1000 pulses/rotation.
✩ Initial setting of the frequency counter function ✩

2008 #01000 DM1404 2305 Specify the initial setting for the frequency counter function.
LDA STA ( SET ) Sampling time: 1000 ms

✩ Input time constant setting ✩

2002 HSP To enable high-speed input, use the HSP instruction to set the
0004
input time constant for input 0004 to 10 µs.
✩ Determine the output frequency (Hz) from the measured
frequency. ✩

2002 DM1405 #01000 #00360 DM0000


LDA MUL DIV STA

The following expression is used to convert the values so that the numbers of rotation at the input and output sides
match.
Output frequency = Input frequency x No. of pulses in one motor rotation/No. of pulses in one encoder rotation
This example assumes that the motor provides 1000 pulses in one rotation and the encoder provides 360 pulses in
one rotation.
✩ Change the transfer speed according to the sag
detected by the sensors. ✩
0000 0001 DM0000 #00120 #00100 DM1936 2306 When the sag exceeds the upper limit of the sensor, the
LDA MUL DIV STA ( SET ) unloader is operated at the speed of 120% to increase the sag.

0000 0001 DM0000 DM1936 2306 When the sag is within the stable operation range of the sensor,
LDA STA ( SET )
the unloader is operated at the speed of 100%.
0000 0001 DM0000 #00080 #00100 DM1936 2306
LDA MUL DIV STA ( SET ) When the sag exceeds the lower limit of the sensor, the
unloader is operated at the speed of 80% to decrease the sag.
END

ENDH

11
6. Improving tact time and accuracy for the
reject ejection line
Use the KV Series to control the reject ejection system.
Cylinder for
[Control description] ejecting rejects

Sensors for target detection


and reject differentiation

Use two fiberoptic sensors to differentiate rejects.


Sensor 0 detects the presence of the target, and another sensor differentiates rejects simultaneously at the timing.
If the product is judged as a reject, it is ejected immediately.

[Wiring example]
The high-speed reject ejection system can be built by using the interrupt function of the KV and the FS-01 Series high-
24 VDC
speed response fiberoptic sensors.
Fiberoptic sensor Connect the sensor for target detection to
(for target detection) input 0000 and the one for reject
differentiation to input 0001.

Fiberoptic sensor
(for reject differentiation)

[Outline of interrupt I/O function]

The interrupt input/output function of


Input processing the KV offers the fastest processing
in its class: the input time constant
Direct input (target detection) is 10 µs max. and
Interrupt input (0000 to 0015)
the interrupt processing time is 40 µs
Scan max.
time Program Interrupt In addition, the KV features 16 points
execution processing
(max.) of input refresh processing
(direct input) during interrupt
Return to the
next line of the
execution and 4 points (max.) of
Direct output interrupt output (direct output), which
interrupt
(0500 to 0503) are helpful for reject ejection.
Output processing
The processing between the input
and output is only 70 µs or less.
In the interrupt processing, a process can be executed at
the instant of the interrupt, independent of the scan time.
There is no delay caused by input timing.
12
[Ladder program description]
Basic ladder program for ejecting rejects
✩ Initial setting of the interrupt input/output
function ✩
2008 At the start of operation, execute an EI instruction to enable the interrupt
EI
input/output function.

✩ Input time constant setting ✩


2002 HSP To enable high-speed input, use the HSP instruction to set the input time
0000
constant for inputs 0000 and 0001 to 10 µs.
HSP
0001
✩ The ejection output is turned ON for
50 ms. ✩
0500 #00500 T000 0500
T ( RES ) The ejection output 0500 is turned ON for 50 ms, then is turned OFF.
S 000
Using the high-precision 1-ms timer instruction (TMS) of the KV enables
END time setting in the unit of 1 ms.

✩ When a target is detected, it is checked for


defects. ✩

INT When input 0000 from the target detection sensor turns ON, the interrupt
0000
program is executed immediately. If input 0001 from the differentiation
0001 0500 sensor turns ON during the interrupt execution, the ejection output 0500
( SET ) turns ON.
The programs between INT and RETI are executed only when input 0000
RETI
turns ON. This is the same as the AND circuit program using inputs 0000
and 0001.
ENDH

The interrupt input/output function can be used for various applications.

Application example: Filling control of medicine Constant rate feeding


(tablets) (Cutting at a specified length: Position data can be
changed)

Cutter
Sensor

KV

Motor

The interrupt input/output function is the best for quickly and accurately controlling the response speed between the
sensor reaction and output, such as for a filling machine or a cutter.

13
7. High-speed, accurate positioning of wafers
Use the KV for the positioning of wafers by detecting their notches.

[Control description]

Notch detection
Stop signal

Use the FS-V10/FU-12 fiberoptic sensor for wafer positioning.


When the sensor detects the notch, the KV immediately outputs a stop signal.

[Wiring example]
24 VDC Quick and accurate positioning is achieved
by using the interrupt function of the KV
Fiberoptic sensor
and the FS-01 Series high-speed and high-
(for notch detection)
accuracy fiberoptic sensors.
Connect the sensor for notch detection to
input 0000 of the KV.

[Outline of interrupt I/O function]

The interrupt input/output function


Input processing of the KV offers the fastest
processing in its class: the input
Direct input time constant (target detection) is
Interrupt input (0000 to 0015)
10 µs max. and the interrupt
processing time is 40 µs max.
Scan Program Interrupt In addition, the KV features 16
time execution processing
points (max.) of input refresh
processing (direct input) during
Return to the
next line of the
interrupt execution and 4 points
Direct output (max.) of interrupt output (direct
interrupt
(0500 to 0503) output), which are helpful for reject
Output processing
ejection.
The processing between the input
In the interrupt processing, a process can be executed at and output is only 70 µs or less.
the instant of the interrupt, independent of the scan time.
There is no delay caused by input timing.

14
[Ladder program description]
Basic ladder program for detecting wafer notches
✩ Initial setting of the interrupt input/output
function ✩
2008
EI
At the start of operation, execute an EI instruction to enable the interrupt
input/output function.

✩ Input time constant setting ✩


2002 HSP
0000 To enable high-speed input, use the HSP instruction to set the input time
constant for input 0000 to 10 µs.

✩ The stop output is turned ON for 50 ms. ✩


0500 #00050 T000 0500 The stop output 0500 is turned ON for 50 ms, then is turned OFF.
T ( RES )
S 000 Using the high-precision 1-ms timer instruction (TMS) of the KV enables
END
time setting in the unit of 1 ms.

✩ When a notch is detected, a stop signal is


output. ✩

INT When input 0000 from the notch detection sensor turns ON, the interrupt
0000
program is immediately executed to turn on output 0500.
2002 0500 Always-ON relay 2002 is used as the execution condition for the programs
( SET ) between INT and RETI. This is because the motor stopping output 0500
must be turned on whenever input 0000 turns ON.
RETI

ENDH

The interrupt input/output function can be used for various applications.

Application example: Filling control of medicine Constant rate feeding


(tablets) (Cutting at a specified length: Position data can be
changed)

Cutter
Sensor

KV

Motor

The interrupt input/output function is the best for quickly and accurately controlling the response speed between the
sensor reaction and output, such as for a filling machine or a cutter.

15
8. Reliable counting of large numbers
Use the KV to count the number of pulses input from an encoder and display it with the KV-D20.

[Control description]

Count the number of output pulses (amount of movement) of the encoder connected to the KV, then display the
count value with the KV-D20. The value is displayed with a positive or negative sign to indicate the direction of
rotation (movement).

[Wiring example]
24 VDC
The 24-bit high-speed counter function of the KV allows for the
counting of large numbers.
Rotary encoder Moreover, the KV features two points of two-phase input with a
maximum response speed of 30 kHz that enables a wider range
of applications.
For high-speed counter CTH0, connect phase A to input 0004
and phase B to input 0006. For CTH1, connect phase A to 0005
and phase B to 0007.

[Outline of 24-bit high-speed counter function]

No. Function of switch ON OFF The KV Series normally


0 Not used – – offers the 16-bit high-speed
1 Clears DM0000 to DM0999 Clears DM. Retains DM. counter function (0 to
at power-on. 65535). Setting the MEMSW
2 Clears DM1000 to DM1899 Clears DM. Retains DM. instruction changes it to the
at power-on.
24-bit high-speed counter (0
3 Switches comparator for CT H0 24-bit 16-bit to 1677215).
between 24-and 16-bit.
To set the 24-bit counter, set
0 Switches comparator for CTH1 24-bit 16-bit
between 24-and 16-bit. the MEMSW instruction by
1 Clears values of counter, Clears values. Retains values.
turning ON Bit 3 of SW3 to
CTH and CTC. set CTH0, or by turning ON
2 Write-protects program in KV PLC. Yes No Bit 0 of SW4 to set CTH1.
3 Read-protects program in KV PLC. Yes No
16
[Ladder program description]
Basic ladder program for counting with the 24-bit high-speed counter and displaying the result with the KV-D20

✩ Initial setting of the 24-bit high-speed


counter ✩ MEMSW
Set the MEMSW instruction to use high-speed counter 0 as a 24-bit
$0800 counter.
2008 2113 2114 CTH0
( SET ) ( RES ) ( RES ) At the start of operation, high-speed counter 0 is enabled in the double
multiplication mode and the current value is reset.

✩ Input time constant setting ✩


2002 HSP
0004 To enable high-speed input, use the HSP instruction to set the input time
constant for inputs 0004 and 0006 to 10 µs.
HSP
0006

✩ Write the high-speed counter instruction. ✩


2002 CTH0
0004 To enable the high-speed counter, input the CTH instruction.

✩ Set the KV-D20 to display the result. ✩


2002 #23000 $8200
DW DW
Specify high-speed counter 0 as the device to be displayed on the first line
DM1580 DM1680 of the KV-D20 (#23000). Set the display attribute to disable changing
values ($8000) and to show signs ($0200) therefore ($8200)
END
* Setting a two-word display is unnecessary because the KV-D20
automatically recognizes the 24-bit high-speed counter and enables the
ENDH
two-word display.

Contact comment setting to use the KV-D20 as a nameplate

Input a contact comment with “LADDER BUILDER for KV Ver1.5”, KV series’ ladder programming support software.
Half-width alphanumeric and katakana characters can be used.

Input the comment to be displayed with the KV-D20 to


“Comment 1”.

After the comment is input, just specify the comment transfer setting. Then the comment will be displayed with the
KV-D20.

17
9. With the KV, analog input is easy
Use the KL-N10V to input analog values.

[Control description]

The AP Series pressure sensors connected to


each device measure the pressure values. The
pieces of resulting analog data are input to the
KV for centralized control.

[Example of system configuration]

Long distance, high-speed


serial communication hardly
affected by noise

The analog unit shows


analog values on its 7-
segment display.

18
[Communication setup of the KL unit]
The following table shows the setup of the KL-N10V and KL-4AD connected to the KV Series.
To specify the communication setup of each unit, use a ladder program to set the KL-N10V, and use the built-in
setup switches of each unit to set the KL-4AD.

KL-N10V KL-4AD KL-4AD KL-4AD


1st address of send data 00H - - -
No. of send addresses 00H - - -
1st address of receive data 00H - - -
No. of receive addresses 18H - - -
Preset address - 00H 08H 10H
FINAL OFF OFF OFF ON

[Ladder program description]


Basic ladder program for controlling measured values of several pressure sensors

✩ Communication setup of KL-N10V ✩


2008 2700 2701 2702 2704 2705 2706
(RES) (SET) (SET) (RES) (RES) (SET) Set the communication parameters of the KL-N10V as follows:
(1) (2) (3) (4)
No. Setup parameters Value Device
$0000 $0000 $0000 $0018 1 KL communication baud rate 5 Mbits/s 2701, 2702
DW DW DW DW
2 Unit for data sampling 16-bit 2704
DM1800 DM1801 DM1802 DM1803
(5) (6) (7) (8) 3 FINAL OFF 2705
2007 2700 4 Input clear at disconnection Error clear 2706
(SET) 5 1st address of send data 00H DM1800
(9)
The pressure values measured with the AP-43 6 No. of send addresses 00H DM1801
units (0 to 1 MPa) are input as analog voltage 7 1st address of receive data 00H DM1802
between 1 to 5 V. 8 No. of receive address 18H DM1803
The following expression is used to obtain the 9 KL use enable Enable 2700
pressure value from the input voltage.
Pressure (Pa) = (1000000/4000) x Digital value
✩ Collect the measured values of the AP-43
units. ✩

2002 DM1600 #00250 DM0000 The measured value of the AP-43 input to Ch0 of the KL-4AD at address
LDA MUL STA 00H is stored in DM0000. (Unit: Pa)
DM1604 #00250 DM0001
The measured value of the AP-43 input to Ch0 of the KL-4AD at address
LDA MUL STA
08H is stored in DM0001. (Unit: Pa)
DM1608 #00250 DM0002
LDA MUL STA The measured value of the AP-43 input to Ch0 of the KL-4AD at address
10H is stored in DM0000. (Unit: Pa)
END

ENDH

19
10. Accurate positioning of transparent stickers
on a mount sheet
Use the KV Series for the positioning of transparent stickers by detecting them.

[Control description]

Stops the motor.

Detection of
stop position

Use the LV-21/LV-H42 digital fiberoptic sensor to detect the transparent stickers on a mount sheet. The sticker is
stopped at a specified position by controlling the motor.
When the sensor detects the end of the sticker, the KV outputs a motor stop signal immediately.

[Wiring example]
24 VDC Use the KV Series that offers a high-speed scan
time to make full use of the capabilities of the LV
Series, a digital fiberoptic sensor providing high-
speed response and long detecting distance.
Connect the sensor to input 0000 of the KV.

Digital fiberoptic sensor


LV-21 + LV-H42

[Advantages of the LV Series digital fiberoptic sensor]


■ Conventional method ■ Advantages
The stickers are fed by steps using a one-pulse • A wider range of sensitivity can be set.
motor, or a reflective photoelectric sensor is • Detection is less affected by printing.
used for detection.

20
[Outline of interrupt I/O function]

The interrupt input/output function of


Input processing the KV offers the fastest processing
in its class: the input time constant
Direct input (target detection) is 10 µs max. and
Interrupt input (0000 to 0015)
the interrupt processing time is 40
Scan µs max.
time Program Interrupt In addition, the KV features 16
execution processing
points (max.) of input refresh
processing (direct input) during
Return to the
next line of the
interrupt execution and 4 points
Direct output (max.) of interrupt output (direct
interrupt
(0500 to 0503) output), which are helpful for reject
Output processing
ejection.
The processing between the input
In the interrupt processing, a process can be executed at and output is only 70 µs or less.
the instant of the interrupt, independent of the scan time.
There is no delay caused by input timing.

[Ladder program description]


Basic ladder program for positioning by detecting stickers
✩ Initial setting of interrupt input/output
function ✩
2008 At the start of operation, execute an EI instruction to enable the interrupt
EI
input/output function.

✩ Input time constant setting ✩


2002 HSP To enable high-speed input, use the HSP instruction to set the input time
0000
constant for input 0000 to 10 µs.
✩ When input 0001 is turned ON, the opera-
tion starts. ✩
0001 1000 Use the built-in positioning control function of the KV Series to operate the
DIFU
motor.
Startup speed: 500 Hz
✩ Operate a motor. ✩ Operating speed: 1000 Hz
1000 #00500 #01000 #01000 #65535 #65535 2310 Acceleration/deceleration time: 1000 ms
DW DW DW DW DW Amount of movement: 4294967295 pulses
DM1480 DM1481 DM1482 DM1485 DM1484

END

✩ When a sticker is detected, the motor is


forced to stop. ✩ INT
0000
When input 0000 from the sticker detection sensor turns ON, the interrupt
program is immediately executed to reset special utility relay 2309.
2002 2309 At the reset of special utility relay 2309, the built-in positioning control
( RES )
function of the KV Series forces the motor to stop.
RETI
Always-ON relay 2002 is used as the execution condition for the programs
between INT and RETI. This is because special utility relay 2309 must be
reset whenever input 0000 turns ON.
ENDH

21
22
23
24
Visit our website for other Keyence products at

Specifications are subject to change without notice.

KEYENCE CORPORATION OF AMERICA


Corporate Office
50 Tice Blvd., Woodcliff Lake, NJ 07675, U.S.A.

Boston Office Atlanta Office Michigan Office St. Louis Office Portland Office
Phone:781-453-2244 Fax:781-453-2255 Phone:770-951-1222 Fax:770-951-1958 Phone:734-591-9922 Fax:734-591-1722 Phone:314-275-9174 Fax:314-275-9175 Phone:503-699-0500 Fax:503-699-8400
New Jersey Office Tampa Office Indianapolis Office Texas Office Northern California Office
Phone:201-291-4000 Fax:201-291-8860 Phone:813-998-9886 Fax:813-998-9887 Phone:317-471-3551 Fax:317-471-3550 Phone:972-733-6790 Fax:972-733-6791 Phone:925-225-1550 Fax:925-225-1440
Pennsylvania Office Cleveland Office Chicago Office Denver Office Los Angeles Office
Phone:610-768-8993 Fax:610-337-1067 Phone:216-464-7530 Fax:216-464-7540 Phone:847-969-0001 Fax:847-969-0453 Phone:303-756-5242 Fax:303-756-5466 Phone:310-851-8635 Fax:310-851-8681
Charlotte Office Columbus Office Minneapolis Office Phoenix Office
Phone:704-423-0070 Fax:704-423-0066 Phone:614-799-3400 Fax:614-799-3401 Phone:612-449-5163 Fax:612-449-5169 Phone:602-225-2400 Fax:602-225-2425

©KEYENCE CORPORATION,1999 NKV-KA-APC2-1-1000 Printed in Japan

You might also like