![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686737.webp)
WWW.NNC.IR
Macro Reference
735
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
SetUnitJudge
Sets the judgement result of a processing unit.
Format
SetUnitJudge <unitNo>, <judge>[, <totalJudgeRefrect>]
Parameter
Return value
None.
Description
Sets the judgement result specified in the <judge> parameter in the judgement result of the processing unit
specified in the <unitNo> parameter. If the <totalJudgeRefrect> parameter is omitted, the specified
judgement is applied to the overall judgement.
When this macro function is used to set the judgement result of another processing unit, operation is as
follows:
• If measurement processing is executed on the processing unit after the judgement result for the first
measurement is set with this macro function, the judgement result set with this macro function is
overwritten with the measurement processing result of the processing unit.
• If the judgement result is set with this macro function after measurement processing is executed on the
processing unit for the first measurement, the judgement result of the processing unit is overwritten by the
judgement result set with this macro function.
In both cases, the judgement result can be reflected in the overall judgement prior to overwriting by
specifying True with the <totakJudgeRefrect> parameter.
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a non-existent number, numerical value, or combination of data types or values is specified for a parameter,
an "Illegal function call" error will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• None.
Parameter
name
Data type
Description
<unitNo>
Integer type
Processing unit number (0 to (the number of registered processing units in the current
scene minus one))
<judge>
Integer type
Judgement result to set
JUDGE_NC: No judgement (unmeasured)
JUDGE_OK: Judgement result OK
JUDGE_NG: Judgement result NG
JUDGE_IMAGEERROR: Judgement result error (image format mismatch)
JUDGE_MODELERROR: Judgement result error (unregistered model)
JUDGE_MEMORYERROR: Judgement result error (insufficient memory)
JUDGE_ERROR: Judgement result error (other error)
<totalJudgeRefrect> Integer type
Setting of whether to reflect the overall judgement result
False: not reflected
True: reflected
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...