![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686773.webp)
WWW.NNC.IR
Macro Reference
771
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
TransformXY
Applies the calibration result and position correction amount to coordinate values.
Format
TransformXY <unitNo>, <imageNo>, <mode>, <srcX>, <srcY>, <destX>, <destY>
Parameter
Return value
None.
Description
Applies the transformation information specified in the <mode> parameter to the coordinate values specified
in the <srcX> and <srcY> parameters on the image specified in the <imageNo> parameter, of the processing
unit specified in the <unitNo> parameter.
Specify 0, 1, or 10 in the <mode> parameter. If a value other than 0, 1, and 10 is specified, operation after the
execution of this macro function will be undefined.
In the <destX> and <destY> parameters, specify the variables that will store the transformed coordinate
values.
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.
Parameter
name
Data type
Description
<unitNo>
Integer type
Processing unit number (0 to (number of processing units of current scene minus one)) of
the processing unit that holds the data to be converted.
<imageNo>
Integer type
Measurement image number (always 0) of the processing unit that holds the data to be
transformed
<mode>
Integer type
Transformation mode
0: After image transformation. -> Before image transformation.
1: Before image transformation. -> After image transformation.
10: Camera coordinates -> After calibration
<srcX>
Double
precision real
number data
type
Pre-transformation X coordinate gotten from the processing unit that holds the data to be
transformed.
<srcY>
Double
precision real
number data
type
Pre-transformation Y coordinate gotten from the processing unit that holds the data to be
transformed.
<destX>
Double
precision real
number data
type
Transformed X coordinate
<destY>
Double
precision real
number data
type
Transformed Y coordinate
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...