Omron SYSMAC FH Series User Manual page 737

Vision sensor vision system
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

SetUnitJudge
Sets the judgement result of a processing unit.
Format
SetUnitJudge <unitNo>, <judge>[, <totalJudgeRefrect>]
Parameter
Parameter
Data type
name
<unitNo>
Integer type
<judge>
Integer type
<totalJudgeRefrect> Integer type
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.
Vision System FH/FZ5 Series
User's Manual (Z340)
Processing unit number (0 to (the number of registered processing units in the current
scene minus one))
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)
Setting of whether to reflect the overall judgement result
False: not reflected
True: reflected
WWW.NNC.IR
Description
8
735
Macro Reference

Advertisement

Table of Contents
loading

Table of Contents