Processing Functions - Sharp IV-S20 User Manual

Compact image sensor camera
Table of Contents

Advertisement

Communication

13-4 Processing functions

[1] Measurement execution functions
(1) Measurement execution function 1 (evaluation result): code 10
The measurement for a specified object type is executed, and the data obtained is compared
with the criteria. Then the evaluation result (OK/NG) is output.
Ë Command
Note: When the measurement start input signal is other than tha general-purpose serial I/F signal, a
command is not required.
Ë Response
- Object type _ Object type for which the measurement was executed: 00 to 15
- Output evaluation result (Y0 to Y15) _ 0: NG or unspecified, 1: OK
(2) Measurement execution function 2 (evaluation result + measurement data, fixed): code 11
The measurement for the specified object type is executed, and evaluation result (OK/NG) and
the measurement data in block 0 from each measurement program are output. See pages 13-15
to 13-25 for details about the measurement data blocks.
When the measurement start input signal is other than the general purpose serial I/F signal, a
fixed response to the code 11
Ë Command
Ë
- Object type _ Object type for which the measurement was executed: 00 to 15
- Output evaluation result (Y0 to Y15) _ 0: NG or unspecified, 1: OK
- 1 _ Measurement programs 0 to 3
Measurement 0 ............. [0 = none, 1 = positional deviation/absolute position measurement]
13
(camera 1 and camera 2)
Measurement 1 to 3 ...
- 2 _ Measurement data
The measurement programs vary in terms of the data they produce. Only the data in block 0 of
each measurement program is output. If the registration for a measurement program has been
set to "NO," there is no data for that measurement, and the data from the next measurement
number is brought forward.
[Ex.] An example of the measurement 0 of object type 01 (camera 1: positional deviation/
Object
type
: 1 0
SC
SC
CR
(H)
(L)
Output evaluation
Object
type
: 1 0
Y0
SC
SC
(H)
(L)
(H)
Object
type
:
1 1
SC
SC
CR
(H)
(L)
Response
Output evaluation
Object
type
:
1
2
RC
RC
Y0
(H)
(L)
0 = none, 2 = shape and size comparison, 3 = distance/angle
measurement (gray/edge), 4 = distance/angle measurement (center
of gravity), 5 = lead inspection, 6 = area measurement after binary
conversion, 7 = object counting after binary conversion, 8 = label
measurement after binary conversion, 9 = existence detection with a
point measurement
absolute position measurement) is given below.
Command:
1 1 0 1 C 3 C R
Object type
Processing code
result
Y1
Y15
SC
SC
CR
(H)
(L)
is returned.
1
Measure-
ment 0
result
Y1
Y15
Data on
Data on
measure-
measure-
ment 1 2
ment 2 2
13-6
(H)
Measurement 0
Camera 1
Camera 2
data 2
data 2
Data on
measure-
SC
SC
CR
ment 3 2
(H)
(L)
(H)

Advertisement

Table of Contents
loading

Table of Contents