Download Print this page

Panasonic A230 User Manual page 244

Machine vision system

Advertisement

Inspection Results and Output
13.3
Numerical Calculation
Example:
Correct:
Incorrect: CA01 = CA02 / 2
Calculation of Negative Values
If a negative constant is used in a programme, it must be enclosed in brackets ( ).
Example:
Correct:
Incorrect: –1 * 235
Number of Terms in a Programme
A single programme can have up to 55 characters, and up to a maximum of 12 terms.
Units Used for Input and Output
The units used for input and output of values and operators is shown in the table below.
@ (atan)
$ (root)
T (distance)
Order of Priority of Operators
Operators are executed in the following order of priority from highest to lowest priority
High
(, )
@, $
*, /, T
Low
+, –
Note on incorporation of efficient of conversion data into the calculation
When coefficient of conversion data is incorporate into a calculation, the A210 actually
performs calculation as follows:
CA01= A * CV11
= A * Base distance/Base pixels
In the calculation above, if "A * Base distance" exceeds the values that can be used for
the numeric calculation, (−(2
because overflow error occurs, and the numeric calculation is not performed properly.
Base distance of less than 9999999 (7 digits) can be set as conversion data, but in this
case, if "A" in the calculation above is substituted with more than 215, the calculation
result will exceed "−(2
Therefore, if the data multiplied by a coefficient (calculation results of the numeric
calculation prior to incorporation of conversion data) provably exceed 215, adjust the
number of base distance of conversion data to avoid an overflow error when the
conversion data are incorporated into the numeric calculation above.
13 − 18
CA01 = GW01 + GW02
CA02 = CA01 / 2
CA02 = GW01 + GW02
(–1) * 235
Input value
× 10000
× 100
× 1
× 10000
× 1
× 10000
31
31
) to (2
31
31
) − (2
−1)".
Output value
−1)), an ERROR signal will be output. This is
OCR Type A230

Advertisement

loading