Measurement Execution Functions; Result Reading - Sharp IV-S20 User Manual

Compact image sensor camera
Table of Contents

Advertisement

4. Measurement execution function 8 (evaluation result + logical result and
calculation result): code 1B
The measurement for a specified object type is executed, and the evaluation result from the
measurement results, the logical results and the calculation results of each measurement are
output.
Ë
Command
Object
type
:
1 B
Ë Response
Object
:
1
B
RC
RC
(H)
(L)
- The contents of the command and response are the same as those for the measurement
execution function 4 (code 13

[2] Result reading

Data from the last measurement is read. (No instruction is sent to execute an operation.)
See pages 13-15 to 13-25 for details about the measurement data blocks.
(1) Measurement data reading function 1 (fixed measurement data): code 21
The final evaluation result, based on the results of the last measurement, and the data in block 0,
which comes from the measurement functions specified for measurement numbers 0 to 3, are
output.
Ë
Command
:
2 1
SC
(H)
Ë Response
:
2
1
RC
(H)
- 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 functions 0 to 3
Measurement function 0 .... [0 = none, 1 = positional deviation/absolute position measurement]
Measurement functions 1 to 3 ...
- 2 _ Measurement data
The measurement functions vary in terms of the data they produce. Only the data in block 0 is
output from the complete output data produced by each measurement function.
(H)
SC
SC
CR
(H)
(L)
Measure-
Output evaluation
ment 0
result
type
Y0
Y1
Y15
).
(H)
SC
CR
(L)
Output evaluation
Object
result
type
RC
Y0
Y1
Y15
(L)
Data on
measure-
ment 1
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
13-9
1
Auxiliary relay
Data 2 of the
m e a s u r e m e n t
C0
C127
No. specified by
the command
Measure-
ment 0
Measurement 0
Camera 1
data
Data on
Data on
measure-
measure-
ment 2
ment 3
Communication
SC
SC
CR
(H)
(L)
(H)
Camera 2
data
SC
SC
CR
(H)
(L)
13

Advertisement

Table of Contents
loading

Table of Contents