![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222224.webp)
4
Using
Tool
222
Using Custom Command
FZ4 User's Manual
GetUnitData 1,"CR",RESULT&
If RESULT>=80 Then
DrawTextG "Excellent",100,100,0
Elseif RESULT>=60 Then
DrawTextG "Good",100,100,0
Else
DrawTextG "Bad",100,100,0
EndIf
Gets processing unit figure format
ImageFormat(<unitNo>, <measureImageNo>)
Parameters
<unitNo>
Processing unit number (integer type)
<measureImageNo>
Image number of image at the time of register for processing (integer type)
Return Value
Returns the value of the integer.
The content of the value is the processing unit figure format of the specified image.
0Binary image
1Monochrome image
2RGB color image
100User-defined image
101User-defined data
-1invalid image
Description
Gets processing unit figure format.
Example
Get the image format of image number 0 of processing unit 2 and display character string according to
an image.
'Gets the image format
Image& = ImageFormat(2, 0)
If Image& = 2 Then
'RGB color image
DrawText "Object", 1, 1
Elseif Image& = 1 Then
'Monochrome image
DrawText "Non-object", 1, 1
Endif
Acesst 1.0 6251194
Summary of Contents for FZ4 Series
Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Page 566: ......
Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Page 654: ...652 FZ4 User s Manual...
Page 655: ......