Inspection Results and Output
OCR Type A230
13
−
17
13.3 Numerical Calculation
13.3.3
Restrictions Applying to Numerical Calculations
Calculation Order
If a division is used in a calculation programme, there is sometimes a remainder, and
in that case, the digits after the decimal point are discarded. This rounding
−
off is done
not only when all the calculations are finished, but also during the calculation, in
accordance with the priority order for arithmetical calculations. Therefore, if a division
is to be carried out in the course of calculation, try to put this programme last if at all
possible. Compare the results of the two examples below.
Example:
1: CA05=CA01/2*100 (when CA01 = 3)
CA01/2 = 3/2 = 1.5
Since the decimal parts of numbers are discarded, 1.5
becomes 1.
CA01/2
×
100 = 1
×
100 = 100
Therefore the result of this calculation is CA05 = 100.
2: CA05=CA01*100/2 (when CA01 = 3)
CA01
×
100 = 3
×
100 = 300
CA01
×
100 / 2 = 300 / 2 = 150.
Therefore the result of this calculation is CA05 = 150.
Number of Digits in Numerical Calculations
Numerical calculations can operate on numbers in the range –2147483648 to
2147483647.
Constants can be specified in the range –65535 to 65535.
If an overflow (if the number exceeds the permissible range) occurs during calculation,
an error output is output from the parallel port at that point.
If the final result of numerical calculation is outside the range –2147483648 to
2147483647, then an error output is output from the parallel port.
In either of these cases the result of calculation is “0”.
If the results of calculation are output through the serial interface, they are output as the
error output “e”.
Division by Zero
If the denominator in a division is “0”, or if it references a value of “0”, then the output
of calculation is “0”, but an error output is output from the parallel port at the same time.
If the results of calculation are output through the serial interface, they are output as the
error output “e”.
Order of Use of CA Registers (numerical calculation registers)
If the result of a calculation in a CA register is to be used by another CA register, the
register being used needs to be set earlier than the register using it. (Calculations on
CA registers are carried out in ascending order of register number.)
Summary of Contents for A230
Page 1: ......
Page 6: ......
Page 14: ...Table of Contents OCR Type A230 viii ...
Page 16: ...Features of the A230 Character Recognition Type OCR Type A230 1 2 ...
Page 21: ...Chapter 2 Outline of Functions 2 1 Outline of Functions 2 3 ...
Page 22: ...Outline of Functions OCR Type A230 2 2 ...
Page 26: ...Screens and Basic Operations OCR Type A230 3 2 ...
Page 70: ...Inspection Procedure OCR Type A230 4 34 4 17 Deleting a Checker ...
Page 72: ...Environment and Product Type OCR Type A230 5 2 ...
Page 92: ...Environment and Product Type OCR Type A230 5 22 5 3 Product Types ...
Page 94: ...Position and Rotation Adjustment OCR Type A230 6 2 ...
Page 130: ...Position and Rotation Adjustment OCR Type A230 6 38 6 4 Position Adjustment Groups ...
Page 132: ...Character Recognition Dictionary and Character Recognition Function OCR Type A230 7 2 ...
Page 158: ...Character Verification Checker OCR Type A230 8 2 ...
Page 178: ...Smart Matching OCR Type A230 9 2 ...
Page 194: ...Smart Matching OCR Type A230 9 18 9 2 Smart Matching Checker Setup ...
Page 196: ...Lead Inspection Checker OCR Type A230 10 2 ...
Page 208: ...Gray Scale Edge Checkers OCR Type A230 11 2 ...
Page 220: ...Gray Scale Edge Checkers OCR Type A230 11 14 11 2 Gray Scale Edge Checker Setup ...
Page 222: ...Gray Scale Window Checkers OCR Type A230 12 2 ...
Page 226: ...Gray Scale Window Checkers OCR Type A230 12 6 12 2 Gray Scale Window Checker Setup ...
Page 228: ...Inspection Results and Output OCR Type A230 13 2 ...
Page 264: ...Inspection Results and Output OCR Type A230 13 38 13 7 Checker List ...
Page 265: ...Chapter 14 Save Data 14 1 Save Data 14 3 ...
Page 266: ...Save Data OCR Type A230 14 2 ...
Page 270: ...Useful Functions OCR Type A230 15 2 ...
Page 280: ...Communications Serial and Parallel OCR Type A230 16 4 ...
Page 341: ...Chapter 17 Vision Backup Tool Ver 2 17 1 Vision Backup Tool Ver 2 17 3 ...
Page 342: ...Vision Backup Tool Ver 2 OCR Type A230 17 2 ...
Page 346: ...Error Output OCR Type A230 18 2 ...
Page 352: ...Error Output OCR Type A230 18 8 18 2 Error Signal Output Conditions Parallel ...
Page 354: ...The Setting Help Tools OCR Type A230 19 2 ...
Page 361: ...Chapter 20 20 1 Specifications 20 3 ...
Page 362: ...OCR Type A230 20 2 ...
Page 365: ...Chapter 21 21 1 Menu Layout 21 3 ...
Page 366: ...OCR Type A230 21 2 ...
Page 374: ...Index OCR Type A230 I 4 ...
Page 376: ...OCR Type A230 I 6 ...
Page 377: ......