13-9
Communication
13
4. Measurement execution function 8 (evaluation logical result and
calculation result): code 1B
(H)
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.
- The contents of the command and response are the same as those for the measurement
execution function 4 (code 13
(H)
).
[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
(H)
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.
- 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 ...
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
-
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.
Ë
Response
:
:
2
2 1
1
Output evaluation
result
RC
(H)
RC
(L)
Y15
Y1
…
Y0
SC
(H)
SC
(L)
CR
Data on
measure-
ment 1
②
Data on
measure-
ment 2
②
Data on
measure-
ment 3
②
①
Ë
Command
Object
type
SC
(H)
SC
(L)
CR
Measure-
ment 0
Measurement 0
Measure-
ment 1
Measure-
ment 2
Measure-
ment 3
Camera 1
Camera 2
Camera 1
data
②
Camera 2
data
②
Auxiliary relay
Data
2
of the
m e a s u r e m e n t
No. specified by
the command
Ë
Response
:
:
1
1 B
B
Output evaluation
result
RC
(H)
RC
(L)
Y15
Y1
…
Y0
SC
(H)
SC
(L)
CR
1
Ë
Command
Object
type
Object
type
SC
(H)
SC
(L)
CR
Measure-
ment 0
Measure-
ment
Measure-
ment 1
Measure-
ment 2
Measure-
ment 3
Camera 1
Camera 2
C127
....
C0