Omron FZ4 Series User Manual page 279

Vision sensor
Table of Contents

Advertisement

Example
Set in a rectangular shape to the area of ??the search processing unit # 2 processing unit
Dim figure&(5)
figure&(0) = 8   'Shape Type
figure(1) = 100   'X coordinate of the upper left point
figure(2) = 100   'Y coordinate of the upper left point
figure(3) = 300   'X coordinate of the lower right corner
figure(4) = 300   'Y coordinate of the lower right corner
SetUnitFigure 2, 1, figure&()
Sets judge value of a processing unit
SetUnitJudge <unitNo>, <judge>[, <totalJudgeRefrect>]
Parameters
<unitNo>
<judge>
<totalJudgeRefrect>
Return Value
None.
Description
Sets the judgement result of the relevant processing unit.
The processing unit-number to be set is specified for the argument <unitNo>.
To the argument <judge> as a judgment result of the setting.
The following judgement result values can be set.
JUDGE_NC
JUDGE_OK
JUDGE_NG
JUDGE_IMAGEERROR
JUDGE_MODELERROR
JUDGE_MEMORYERROR
It is specified for the argument <totalJudgeRefrect>(possible to omit) whether to reflect the judgment
result of the setting in the total judgment result by either of the following value.
False
True
Example
Set to OK determination result of the determination result of the search processing unit # 2 processing
unit
SetUnitJudge 2, JUDGE_OK, True
FZ4 User's Manual
Processing unit number
Judgement result to be set
Whether or not reflected on the overall judgement
No judgement (unmeasured)
Judgement result OK
Judgement result NG
Judgement result error (image format mismatch)
Judgement result error (unregistered model)
Judgement result error (insufficient memory)
reflected
not reflected
Using Custom Command
4
277

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents