Professional Documents
Culture Documents
Outline
The number of products travelling on each of 5 lines is 0000
counted simultaneously. When the total number of products
0001
on the 5 lines reaches 100 the KV outputs.
An FS Series fiberoptic sensor counts the number of 0002
products on each line. When the total number equals the
preset value, the KV outputs. 0003
0004
Line 1
Products counted 0 1 2 3 4 5 6 7, 8
Line 2
Line 5
Output relay 0500: Comparator output
Visual KV Series
■ Programming Technique
The following 2 instructions can be used for counting.
(1) Counter instruction
(2) Increment Memory instruction
The programs created using instruction (1) and (2) are as follows:
For the same control as shown here, using instruction (2) simplifies programming.
Set the input time constant to 10 µs using HSP instruction when the line speed is very high.
In program (1), counting is performed for each input even when input relays 0000 to 0004
turn ON simultaneously.
In program (2), simultaneous inputs are ignored when input relays 0000 to 0004 turn ON
simultaneously.