![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
Содержание FZ4 Series
Страница 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Страница 12: ...1 Before Operation 10 Operation Flow FZ4 User s Manual Operation Flow Here describes the operation flow...
Страница 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Страница 112: ...3 Performing Test Measurement Starting Operation 110 Useful Functions for Operation FZ4 User s Manual...
Страница 326: ...4 Using Tool 324 Remotely Operating the Controller Remote Operation FZ4 User s Manual Enter the IP address...
Страница 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Страница 351: ...6 Changing the System Environment FZ4 User s Manual Setting the System Operation Environment 349 Communication...
Страница 566: ......
Страница 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Страница 654: ...652 FZ4 User s Manual...
Страница 655: ......