Visual KV Series
Contents1. 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 ofa simple revolution indicator .................................... 8
5. Tension [synchronous] control with a singleKV unit ...................................................................... 10
6. Improving tact time and accuracyfor 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 stickerson a mount sheet ..................................................... 20
AdvancedProgrammingCourseSuccessful Application Examples
1
1. High-speed counting of wafer rings ................................................... 2Use the KV Series to count wafer rings and display the count values.
2. Palletizing operation made easy ........................................................ 4Let’s use the KV to program palletizing with a stepping motor.
3. Pitch feeding operation made easy .................................................... 6Let’s use the KV to program pitch feeding with a stepping motor.
4. The KV enables creation of a simple revolution indicator ............... 8Let’s create a revolution indicator using the frequency counter function of the KV.
5. Tension [synchronous] control with a single KV unit .................... 10Use the KV Series to control the transfer speed of hoop material.
6. Improving tact time and accuracy for the reject ejection line ....... 12Use the KV Series to control the reject ejection system.
7. High-speed, accurate positioning of wafers .................................... 14Use the KV for the positioning of wafers by detecting their notches.
8. Reliable counting of large numbers ................................................. 16Use the KV to count the number of pulses input from an encoder and displayit with the KV-D20.
9. With the KV, analog input is easy ..................................................... 18Use the KL-N10V to input analog values.
10. Accurate positioning of transparent stickers on a mount sheet ... 20Use the KV Series for the positioning of transparent stickers by detecting them.
Contents
2
1. High-speed counting of wafer ringsUse the KV Series to count wafer rings and display the count values.
[Control description]
The LV-11/LV-H32 digital fiberoptic sensor counts wafer rings. The count value is displayed on the KV’sAccess Window.
[Wiring example]
Count value display
The KV Series offers a high-speed scan time that makefull use of the capabilities of the LV Series, a digitalfiberoptic sensor providing high-speed response and asmall beam spot.Connect the sensor to input 0000 of the KV.
Digital fiberoptic sensorLV-11 + LV-H32
24 VDC
[Advantages of the LV Series digital fiberoptic sensor]
■ Conventional method
A reflective photoelectric sensor is used forcounting. Malfunctions occur when the gapsbetween the wafer rings become narrow. Thesensor should be re-adjusted at changeoversbetween 6-inch wafers and 8-inch wafers.
■ Advantages
The LV-H32, a long detecting distance andsmall beam spot sensor, is free frommalfunctions. It can count both 6-inch and 8-inch wafers with the same distance andsensitivity settings. Re-adjustment isunnecessary at changeovers.The amplifier features a digital display andallows for fine adjustment to obtain optimalsensitivity easily.
3
[Ladder program description]Basic ladder program for counting wafer rings
2002
0000
C000
0500
0500
#00500C0000000
#00500001
HSP
END
ENDH
TS
T001
C000
✩ Input time constant setting ✩
✩ Set the preset counter with thepreset value of 500. ✩
To enable high-speed input, use the HSP instruction to set the input timeconstant for input 0000 to 10 µs.
Wafer rings are detected with the LV and are counted with the built-incounter of the KV.Set the preset value as 500. When the count value reaches the presetvalue, the counter will automatically reset.
When the count value reaches the preset value, output 0500 of the KV isturned ON for 500 ms.Using the high-precision 1-ms timer instruction (TMS) of the KV enablestime setting in the unit of 1 ms.
✩ When the count value reaches the presetvalue, output is turned ON for 500 ms. ✩
The Access Window is a useful window that displays the status of the KV. It can also be used as acounter.
T/C: Values of all timers/counters
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 adisplay device.
Timer/counter No.
Current value
Preset value(Can be changed)
PLC: KV-16
Counter: RC-14
Previous combination
4
2. Palletizing operation made easyLet’s use the KV to program palletizing with a stepping motor.
[Description of control]
Point 110000 Point 2
12000
Point 314000
Coordinate(pulses)
Speed (Hz)
(1)
▲
▲
▲
▲
▲
▲
(2)
(3)
(1): The target is moved by 10000 pulsesand then returned to the original position.
(2): The target is moved by 12000 pulsesand then returned to the original position.
(3): The target is moved by 14000 pulsesand then returned to the original position.
[Wiring example]
Start
5 VDC*
Twisted-pair cable
Stepping motor driver
CW (pulse)
Stepping motor
The positioning function of the KVsupports a 1-pulse method motor driver.Connect output 0502 to a pulse train inputterminal and output 0503 to a rotationdirection output terminal.
[Overview of positioning function]
The simplified positioning function of the KV requires you only to inputpreset values for the specific DM.
Speed
Movement
Setting items for positioning control function(X axis)
Startup frequency (Hz): DM1480
Operating frequency (Hz): DM1481
Acceleration/deceleration time (ms):DM1482
No. of output pulses(upper digit): DM1485(lower digit): DM1484
Start relay: 2310
Slowdown-stop relay: 2308
Emergency stop relay: 2309
Only a single-line of ladder programming achieves this setting.Extremely easy!
Startupfrequency1 kHz
Operatingfrequency5 kHz
Acceleration/decelerationtime 3seconds
No. of outputpulses100,000
2310#05000DW
#01000
DM1480 DM1481 DM1482 DM1485 DM1484DW
#03000DW
#00001DW
#34464DW
0000
Just input values for the specific DMand turn special relay 2310 ON. TheKV automatically performs ramp-up/down control calculation and outputpulses.The number of output pulses can bespecified within a range of 0 to4294967295.To divide the number of output pulsesinto two to store them in two DMs, usethe following expression:
* Expression for DM setting valuecalculationNo. of output pulses / 65536 = Awith a remainder of BA: Value of DM1485 (upper 16 bitsof No. of output pulses)B: Value of DM1484 (lower 16 bitsof No. of output pulses)
24 VDC
CCW(rotationdirection)
5
[Description of ladder program]
Basic ladder program for palletizing operation
( )0000
2310 2309 1200 1001
1300 1300 #00000 1000DIFU DW
#00500
DM1480 DM1481
DM1484 1200
DM1482 DM1485DW
#05000DW
#03000DW SET
#10000DW
DM1484
#12000DW
JMP( )1000 0503
SET
( )RES
STG
2310 2309 1201 1002
1201JMP
11001001STG
2309
1100
( )SET2310 2309 1202 1003
1202JMP
1101 05031002STG
2309
1101
DM1484
#14000DW( )SET
2310 2309 1204 1005
1204JMP
1103 05031004STG
2309
1103
( )RES2310 2309 1203 1004
1203JMP
1102 05031003STG
2309
1102
( )RES2310 2309 1205 1006
1205JMP
1104 05031005STG
2309
1104
0500 #00030 T000ENDS
END
1006STG
10052309
1105
T000
ENDH
0503
✩ When input 0000 turns ON, the palletizing starts. ✩Specify the parameters for the initial setting.Startup speed: 500 HzOperating speed: 5000 HzAcceleration/deceleration time: 3000 msMovement (upper 32 bits): 0✩ Movement to position 1 ✩
When positioning operation is activated, special relay 2309 turns ON.At the rising edge of relay 2309, utility relay 1200 is turned ON. Theoperation advances to the next stage.
“STG” and “JMP” instructions are mostappropriate for controlling sequentialmovement such as palletizing.
When positioning operation is finished, special relay 2309 turns OFF.At the falling edge of relay 2309, utility relay 1100 is turned ON. Thenext operation is executed.
✩ Movement to position 2 ✩
✩ Return operation from point 2 ✩
✩ Movement to position 3 ✩
✩ Return operation from point 3 ✩
✩ When the palletizing operation is completed, output 0500 is turned ON for 3seconds. ✩
Write ENDS instruction at the end of STGinstruction.JMP instruction can also be used to jump to1002 and set the palletizing as an infiniteloop operation.
▲
▲
▲
▲
▲
✩ Return operation from point 1 ✩
6
3. Pitch feeding operation made easyLet’s use the KV to program pitch feeding with a stepping motor.
[Description of control]
(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 0002turns ON.)After four pitch feeding operations, output 0500 turns ON for 3 seconds and then the operation finishes.
[Wiring example]
24 VDC
▲ ▲
▲ ▲
▲ ▲
(1)(2)
(3)
Sta
rt
Sto
p
Pitc
hfe
edin
g
5 VDC*
Twisted-pair cable
Stepping motor driver
CW (pulse)
CCW (rotationdirection)
Stepping motor
The positioning function of the KVsupports a 1-pulse method motordriver. Connect output 0502 to apulse train input terminal and output0503 to a rotation direction outputterminal.
[Overview of positioning function]
The simplified positioning function of the KV requires you only to inputpreset values for the specific DM.
Speed
Movement
Setting items for positioning controlfunction (X axis)Startup frequency (Hz): DM1480Operating frequency (Hz): DM1481Acceleration/deceleration time (ms):DM1482No. of output pulses(upper digit): DM1485(lower digit): DM1484Start relay: 2310Slowdown-stop relay: 2308Emergency stop relay: 2309
Only a single line of ladder programming achieves this setting.Extremely easy!
Just input values for the specific DM andturn special relay 2310 ON. The KVautomatically performs ramp-up/downcontrol calculation and output pulses.The number of output pulses can bespecified within a range of 0 to4294967295.To divide the number of output pulsesinto two to store them in two DMs, usethe following expression:
* Expression for DM setting valuecalculation
No. of output pulses / 65536 = A witha remainder of BA: Value of DM1485 (upper 16 bits ofNo. of output pulses)B: Value of DM1484 (lower 16 bits ofNo. of output pulses)
Startupfrequency1 kHz
2310#05000DW
#01000
DM1480 DM1481 DM1482 DM1485 DM1484DW
#03000DW
#00001DW
#34464DW
0000
Operatingfrequency5 kHz
Acceleration/decelerationtime 3seconds
No. of outputpulses100,000
Speed
Operation starts wheninput 0000 turns ON.
Operation stops wheninput 0001 turns ON.
Pitch feeding is executed everytime input 0002 turns ON.
The feeding is repeated 4times.
Time
7
[Description of ladder program]
Basic ladder program for pitch feeding operation
( )0000
2310 2309 1300 1001
1100 1100 #00500
DM1480
1000DIFU DW
#05000DW
SET
#01000DW
#65535DW
#65535DW JMP( )
1000 0503SETSTG
2308
2310 2309 1301 1003#03000DW
#00500DW
#00000DW
#01000DW JMP
1002STG
2309 1300 1002JMP
1200
1201
1000STG
0001
1200 1400
0001
1201 DM1481 DM1482 DM1485 DM1484 1301
2310 2309 1302 1004JMP
1003STG
14012309
1401 1302
12020002
1202
2310 2309 1303 1005JMP
1004STG
14022309
1402 1303
12030002
1203
2310 2309 1304 1006JMP
1005STG
14032309
1403 1304
12040002
1204
0500 #00030 T000ENDS
END
1006STG
14042309
1404
T000
ENDH
DM1481 DM1482 DM1485 DM1484 1300
✩ When input 0000 turns ON, the operation starts. ✩
▲
▲
Initial setting. Startup speed: 500 Hz
✩ Movement to the position in which pitch feeding starts ✩
“STG” and “JMP” instructions are mostappropriate for controlling sequentialmovement 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. Theoperation advances to the next stage.
✩ Confirmation of the start point of pitch feeding/stop operation ✩
At the rising edge of input 0001, special relay 2308 is turned ON. Theoperation is slowed down and stopped.
✩ Execution of pitch feeding (first time) ✩
At the rising edge of input 0002, pitch feeding is executed.
The parameters for the pitch feeding are:Startup frequency: 500 HzOperating frequency: 3000 HzAcceleration/deceleration time: 500 msMovement: 1000 pulses
✩ Execution of pitch feeding (second time) ✩
✩ Execution of pitch feeding (third time) ✩
✩ Execution of pitch feeding (fourth time) ✩
✩ When pitch feeding is completed, output 0500 is turned ON for 3 seconds. ✩Write ENDS instruction at the end of STGinstruction.JMP instruction can also be used to jumpto 1002 and set the pitch feeding as aninfinite loop operation.
▲
▲
▲
▲
8
4. The KV enables creation of a simplerevolution indicator
Let’s create a revolution indicator using the frequency counter function of the KV.
[Description of control]
24 VDC
Fiberoptic sensor
DM1404
#00500DW ( )SET
0000 2305
The frequency counter function of the KVcounts the ON/OFF signals from the sensorconnected to input 0004. The result isdisplayed on the built-in Access Window.The number of revolutions is counted in unitsof rpm.
[Overview of frequency counter function]
[Wiring example]
The frequency counter function of the KV is fixed at input 0004.When a rotary encoder is used instead of a sensor, a singlephase input (phase A only) is used.
The frequency counter function of the KV automatically calculates the frequency of input pulses using high-speedcounter CTH0 included with the KV.Just input the sampling time (ms) to DM1404 and turn special relay 2305 ON. The measured frequency (Hz) isautomatically 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
9
( )2008 2305
0004
#01000LDA
DM1404STA SET
2002 DM1405LDA
#00060MUL
#00200DIV
DM0000STA
2002
END
HSP
ENDH
Acceptable Front
BackUnaccep-table
Monitoring the feedingspeed of a wire
Detecting reflective stickers with aphotoelectric sensor
Controlling processing speedof vinyl sheet
As an operating device for a press
Specify the parameter for the initial setting of the frequency counterfunction.Sampling time: 1000 ms
To enable high-speed input, use the HSP instruction to set the input timeconstant for input 0004 to 10 µs.
[Description of ladder program]Basic ladder program for frequency counter function
✩ The number of revolutions (rpm) is obtainedfrom the measured frequency (Hz).
The following expression is used to obtain the number of revolutions (rpm)from the measured frequency (Hz):rpm = Hz x 60 s / No. of pulses for one revolutionIn this example, the number of pulses for one revolution is set to 200pulses.
✩ Set the input time constant. ✩
✩ Initial setting of frequency counter function ✩
The following applications are possible with the frequency counter function:
10
Upper limit ofthe sag
Stableoperationrange
Lower limit ofthe sag
5. Tension [synchronous] control with a singleKV unit
Use the KV Series to control the transfer speed of hoop material.
[Control description]
Monitor the amount of the material fed constantly from the loader side, then automatically adjust the amount of thematerial 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 sagremains within the specified range.
[Wiring example]
Synchronous control is achieved by combining the frequency counter function and specified frequency pulseoutput 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 thestepping motor to output 0502.Install sensors to detect the upper and lower limits of the sag (connected to inputs 0000 and 0001).
5 VDC*
Stepping motor
CCW(rotationdirection)
Stepping motor driver
CW (pulse)Twisted-pair cable
Rotary encoder
24 VDC
11
( )2008 2305
0004
#01000LDA
DM1404STA SET
( )0000 0001 2306#00120
MULDM0000
LDA#00100
DIVDM1936
STA SET
2002 DM1405LDA
#01000MUL
#00360DIV
DM0000STA
2002
END
HSP
ENDH
( )0000 0001 2306DM0000
LDADM1936
STA SET
( )0000 0001 2306#00080
MULDM0000
LDA#00100
DIVDM1936
STA SET
[Outline of synchronous control]Frequency counter function
( )0000
DM1404
2305#*****DW SET
Specified frequency pulseoutput function
( )0000
DM1936
2306#*****DW SET
The frequency counter function of the KV Series automatically calculates thefrequency of input pulses using the built-in high-speed counter CTH0. Themeasured frequency (Hz) is automatically stored in DM1405 only when thesampling time (ms) is input to DM1404 and special utility relay 2305 is turned ON.The specified frequency pulse output function outputs pulses at a specifiedfrequency using the built-in high-speed counter CTH1. The pulses areautomatically output from output 0501 only when the output frequency (Hz) isinput to DM1936 and special utility relay 2306 is turned ON.
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.
✩ Input time constant setting ✩
Specify the initial setting for the frequency counter function.Sampling time: 1000 ms
To enable high-speed input, use the HSP instruction to set theinput time constant for input 0004 to 10 µs.
When the sag exceeds the upper limit of the sensor, theunloader is operated at the speed of 120% to increase the sag.
When the sag is within the stable operation range of the sensor,the unloader is operated at the speed of 100%.
When the sag exceeds the lower limit of the sensor, theunloader is operated at the speed of 80% to decrease the sag.
✩ Initial setting of the frequency counter function ✩
✩ Change the transfer speed according to the sagdetected by the sensors. ✩
✩ Determine the output frequency (Hz) from the measuredfrequency. ✩
The following expression is used to convert the values so that the numbers of rotation at the input and output sidesmatch.Output frequency = Input frequency x No. of pulses in one motor rotation/No. of pulses in one encoder rotationThis example assumes that the motor provides 1000 pulses in one rotation and the encoder provides 360 pulses inone rotation.
12
24 VDC
Fiberoptic sensor(for target detection)
Fiberoptic sensor(for reject differentiation)
Cylinder forejecting rejects
Sensors for target detectionand reject differentiation
6. Improving tact time and accuracy for thereject ejection line
Use the KV Series to control the reject ejection system.
[Control description]
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-
speed response fiberoptic sensors.Connect the sensor for target detection toinput 0000 and the one for rejectdifferentiation to input 0001.
[Outline of interrupt I/O function]
In the interrupt processing, a process can be executed atthe instant of the interrupt, independent of the scan time.There is no delay caused by input timing.
Input processing
Scantime
(0500 to 0503)
Direct output
(0000 to 0015)
Direct input
Interruptprocessing
Interrupt input
Return to thenext line of theinterrupt
Output processing
Programexecution
The interrupt input/output function ofthe KV offers the fastest processingin its class: the input time constant(target detection) is 10 µs max. andthe interrupt processing time is 40 µsmax.In addition, the KV features 16 points(max.) of input refresh processing(direct input) during interruptexecution and 4 points (max.) ofinterrupt output (direct output), whichare helpful for reject ejection.The processing between the inputand output is only 70 µs or less.
13
[Ladder program description]Basic ladder program for ejecting rejects
( )
2008
0500
0000
EI
RES0500
( )0500SET
0001
T000
2002
END
HSP
0001HSP
0000INT
RETI
ENDH
#00500000T
S
✩ When a target is detected, it is checked fordefects. ✩
✩ Initial setting of the interrupt input/outputfunction ✩
✩ The ejection output is turned ON for50 ms. ✩
✩ Input time constant setting ✩
At the start of operation, execute an EI instruction to enable the interruptinput/output function.
To enable high-speed input, use the HSP instruction to set the input timeconstant for inputs 0000 and 0001 to 10 µs.
The ejection output 0500 is turned ON for 50 ms, then is turned OFF.Using the high-precision 1-ms timer instruction (TMS) of the KV enablestime setting in the unit of 1 ms.
When input 0000 from the target detection sensor turns ON, the interruptprogram is executed immediately. If input 0001 from the differentiationsensor turns ON during the interrupt execution, the ejection output 0500turns ON.The programs between INT and RETI are executed only when input 0000turns ON. This is the same as the AND circuit program using inputs 0000and 0001.
The interrupt input/output function can be used for various applications.
The interrupt input/output function is the best for quickly and accurately controlling the response speed between thesensor reaction and output, such as for a filling machine or a cutter.
Sensor
KV
Application example: Filling control of medicine(tablets)
Constant rate feeding(Cutting at a specified length: Position data can bechanged)
Cutter
Motor
14
7. High-speed, accurate positioning of wafersUse the KV for the positioning of wafers by detecting their notches.
[Control description]
Notch detectionStop 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
Fiberoptic sensor(for notch detection)
Quick and accurate positioning is achievedby using the interrupt function of the KVand the FS-01 Series high-speed and high-accuracy fiberoptic sensors.Connect the sensor for notch detection toinput 0000 of the KV.
[Outline of interrupt I/O function]
In the interrupt processing, a process can be executed atthe instant of the interrupt, independent of the scan time.There is no delay caused by input timing.
Input processing
(0500 to 0503)
Direct output
(0000 to 0015)
Direct input
Interruptprocessing
Interrupt input
Return to thenext line of theinterrupt
Output processing
Programexecution
The interrupt input/output functionof the KV offers the fastestprocessing in its class: the inputtime constant (target detection) is10 µs max. and the interruptprocessing time is 40 µs max.In addition, the KV features 16points (max.) of input refreshprocessing (direct input) duringinterrupt execution and 4 points(max.) of interrupt output (directoutput), which are helpful for rejectejection.The processing between the inputand output is only 70 µs or less.
Scantime
15
( )
2008
0500
0000
EI
RES0500
( )0500SET
2002
T000
2002
END
HSP
0000INT
RETI
ENDH
#00050000T
S
[Ladder program description]Basic ladder program for detecting wafer notches
✩ Initial setting of the interrupt input/outputfunction ✩
✩ When a notch is detected, a stop signal isoutput. ✩
✩ The stop output is turned ON for 50 ms. ✩
✩ Input time constant setting ✩
At the start of operation, execute an EI instruction to enable the interruptinput/output function.
To enable high-speed input, use the HSP instruction to set the input timeconstant for input 0000 to 10 µs.
The stop output 0500 is turned ON for 50 ms, then is turned OFF.Using the high-precision 1-ms timer instruction (TMS) of the KV enablestime setting in the unit of 1 ms.
When input 0000 from the notch detection sensor turns ON, the interruptprogram is immediately executed to turn on output 0500.Always-ON relay 2002 is used as the execution condition for the programsbetween INT and RETI. This is because the motor stopping output 0500must be turned on whenever input 0000 turns ON.
The interrupt input/output function can be used for various applications.
The interrupt input/output function is the best for quickly and accurately controlling the response speed between thesensor reaction and output, such as for a filling machine or a cutter.
Sensor
KV
Application example: Filling control of medicine(tablets)
Constant rate feeding(Cutting at a specified length: Position data can bechanged)
Cutter
Motor
16
8. Reliable counting of large numbersUse 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 thecount value with the KV-D20. The value is displayed with a positive or negative sign to indicate the direction ofrotation (movement).
[Wiring example]
The 24-bit high-speed counter function of the KV allows for thecounting of large numbers.Moreover, the KV features two points of two-phase input with amaximum response speed of 30 kHz that enables a wider rangeof applications.For high-speed counter CTH0, connect phase A to input 0004and phase B to input 0006. For CTH1, connect phase A to 0005and phase B to 0007.
24 VDC
Rotary encoder
[Outline of 24-bit high-speed counter function]
The KV Series normallyoffers the 16-bit high-speedcounter function (0 to65535). Setting the MEMSWinstruction changes it to the24-bit high-speed counter (0to 1677215).To set the 24-bit counter, setthe MEMSW instruction byturning ON Bit 3 of SW3 toset CTH0, or by turning ONBit 0 of SW4 to set CTH1.
No. Function of switch ON OFF
0 Not used – –
1 Clears DM0000 to DM0999 Clears DM. Retains DM.at power-on.
2 Clears DM1000 to DM1899 Clears DM. Retains DM.at power-on.
3 Switches comparator for CT H0 24-bit 16-bitbetween 24-and 16-bit.
0 Switches comparator for CTH1 24-bit 16-bitbetween 24-and 16-bit.
1 Clears values of counter, Clears values. Retains values.CTH and CTC.
2 Write-protects program in KV PLC. Yes No
3 Read-protects program in KV PLC. Yes No
17
2008
0004
( )CTH0RES( )
2114RES( )
2113SET
2002
2002
END
HSP
00042002 CTH0
$0800MEMSW
0006HSP
ENDH
DM1680
$8200DW
DM1580
#23000DW
[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-speedcounter ✩
✩ Set the KV-D20 to display the result. ✩
✩ Write the high-speed counter instruction. ✩
✩ Input time constant setting ✩
Set the MEMSW instruction to use high-speed counter 0 as a 24-bitcounter.
At the start of operation, high-speed counter 0 is enabled in the doublemultiplication mode and the current value is reset.
To enable high-speed input, use the HSP instruction to set the input timeconstant for inputs 0004 and 0006 to 10 µs.
To enable the high-speed counter, input the CTH instruction.
Specify high-speed counter 0 as the device to be displayed on the first lineof the KV-D20 (#23000). Set the display attribute to disable changingvalues ($8000) and to show signs ($0200) therefore ($8200)
* Setting a two-word display is unnecessary because the KV-D20automatically recognizes the 24-bit high-speed counter and enables thetwo-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 theKV-D20.
18
9. With the KV, analog input is easyUse the KL-N10V to input analog values.
[Control description]
The AP Series pressure sensors connected toeach device measure the pressure values. Thepieces of resulting analog data are input to theKV for centralized control.
[Example of system configuration]
Long distance, high-speedserial communication hardlyaffected by noise
The analog unit showsanalog values on its 7-segment display.
19
[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-insetup switches of each unit to set the KL-4AD.
[Ladder program description]Basic ladder program for controlling measured values of several pressure sensors
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
Set the communication parameters of the KL-N10V as follows:2008
2002
( )2706
(4)SET
( )2700SET
( )2705
(3)RES( )
2704
(2)RES( )
2702SET( )
2701
(1)
(5) (6) (7) (8)
(9)
SET( )2700RES
2007
END
ENDH
$0000
DM1800DW
$0000
DM1801DW
$0000
DM1802DW
$0018
DM1803DW
DM0000#00250DM1600LDA MUL STA
DM0001#00250DM1604LDA MUL STA
DM0002#00250DM1608LDA MUL STA
✩ Communication setup of KL-N10V ✩
✩ Collect the measured values of the AP-43units. ✩
The pressure values measured with the AP-43units (0 to 1 MPa) are input as analog voltagebetween 1 to 5 V.The following expression is used to obtain thepressure value from the input voltage.
Pressure (Pa) = (1000000/4000) x Digital value
The measured value of the AP-43 input to Ch0 of the KL-4AD at address00H is stored in DM0000. (Unit: Pa)
The measured value of the AP-43 input to Ch0 of the KL-4AD at address08H is stored in DM0001. (Unit: Pa)
The measured value of the AP-43 input to Ch0 of the KL-4AD at address10H is stored in DM0000. (Unit: Pa)
No. Setup parameters Value Device
1 KL communication baud rate 5 Mbits/s 2701, 2702
2 Unit for data sampling 16-bit 2704
3 FINAL OFF 2705
4 Input clear at disconnection Error clear 2706
5 1st address of send data 00H DM1800
6 No. of send addresses 00H DM1801
7 1st address of receive data 00H DM1802
8 No. of receive address 18H DM1803
9 KL use enable Enable 2700
20
10. Accurate positioning of transparent stickerson a mount sheet
Use the KV Series for the positioning of transparent stickers by detecting them.
[Control description]
Detection ofstop position
Stops the motor.
Use the LV-21/LV-H42 digital fiberoptic sensor to detect the transparent stickers on a mount sheet. The sticker isstopped 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
Digital fiberoptic sensorLV-21 + LV-H42
Use the KV Series that offers a high-speed scantime to make full use of the capabilities of the LVSeries, a digital fiberoptic sensor providing high-speed response and long detecting distance.Connect the sensor to input 0000 of the KV.
[Advantages of the LV Series digital fiberoptic sensor]■ Conventional method
The stickers are fed by steps using a one-pulsemotor, or a reflective photoelectric sensor isused for detection.
■ Advantages
• A wider range of sensitivity can be set.• Detection is less affected by printing.
21
2008
0000
EI
( )2309RES
2002
2002
0001
1000
END
HSP
0000INT
RETI
ENDH
1000DIFU
#00500
DM1480DW
#01000
DM1481DW
#01000
DM1482DW
#65535
DM1485DW
#65535
DM1484DW
2310
[Ladder program description]Basic ladder program for positioning by detecting stickers
[Outline of interrupt I/O function]
In the interrupt processing, a process can be executed atthe instant of the interrupt, independent of the scan time.There is no delay caused by input timing.
Input processing
Scantime
(0500 to 0503)
Direct output
(0000 to 0015)
Direct input
Interruptprocessing
Interrupt input
Return to thenext line of theinterrupt
Output processing
Programexecution
The interrupt input/output function ofthe KV offers the fastest processingin its class: the input time constant(target detection) is 10 µs max. andthe interrupt processing time is 40µs max.In addition, the KV features 16points (max.) of input refreshprocessing (direct input) duringinterrupt execution and 4 points(max.) of interrupt output (directoutput), which are helpful for rejectejection.The processing between the inputand output is only 70 µs or less.
✩ When a sticker is detected, the motor isforced to stop. ✩
✩ Operate a motor. ✩
✩ When input 0001 is turned ON, the opera-tion starts. ✩
✩ Input time constant setting ✩
✩ Initial setting of interrupt input/outputfunction ✩
At the start of operation, execute an EI instruction to enable the interruptinput/output function.
To enable high-speed input, use the HSP instruction to set the input timeconstant for input 0000 to 10 µs.
Use the built-in positioning control function of the KV Series to operate themotor.
Startup speed: 500 HzOperating speed: 1000 HzAcceleration/deceleration time: 1000 msAmount of movement: 4294967295 pulses
When input 0000 from the sticker detection sensor turns ON, the interruptprogram is immediately executed to reset special utility relay 2309.At the reset of special utility relay 2309, the built-in positioning controlfunction of the KV Series forces the motor to stop.Always-ON relay 2002 is used as the execution condition for the programsbetween INT and RETI. This is because special utility relay 2309 must bereset whenever input 0000 turns ON.
22
23
24
©KEYENCE CORPORATION,1999 NKV-KA-APC2-1-1000 Printed in Japan
KEYENCE CORPORATION OF AMERICACorporate Office50 Tice Blvd., Woodcliff Lake, NJ 07675, U.S.A.
Specifications are subject to change without notice.
Pennsylvania OfficePhone:610-768-8993 Fax:610-337-1067
New Jersey OfficePhone:201-291-4000 Fax:201-291-8860
Cleveland OfficePhone:216-464-7530 Fax:216-464-7540
Atlanta OfficePhone:770-951-1222 Fax:770-951-1958
Boston OfficePhone:781-453-2244 Fax:781-453-2255
Chicago OfficePhone:847-969-0001 Fax:847-969-0453
Columbus OfficePhone:614-799-3400 Fax:614-799-3401
St. Louis OfficePhone:314-275-9174 Fax:314-275-9175
Charlotte OfficePhone:704-423-0070 Fax:704-423-0066
Indianapolis OfficePhone:317-471-3551 Fax:317-471-3550
Michigan OfficePhone:734-591-9922 Fax:734-591-1722
Texas OfficePhone:972-733-6790 Fax:972-733-6791
Portland OfficePhone:503-699-0500 Fax:503-699-8400
Minneapolis OfficePhone:612-449-5163 Fax:612-449-5169
Phoenix OfficePhone:602-225-2400 Fax:602-225-2425
Denver OfficePhone:303-756-5242 Fax:303-756-5466
Los Angeles OfficePhone:310-851-8635 Fax:310-851-8681
Northern California OfficePhone:925-225-1550 Fax:925-225-1440
Tampa OfficePhone:813-998-9886 Fax:813-998-9887
Visit our website for other Keyence products at
Top Related