![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686810.webp)
WWW.NNC.IR
Macro Reference
808
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
In the communication macro, writes measurement coordinate X and measurement coordinate Y of the search
processing unit of Processing Unit number 2 to the PLC connected by PLC link. Measurement coordinate X
is external data number 6, and measurement coordinate Y is external data number 7.
Useable Modules
Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 4.20 or later
Related Items
IOMODULE$ = "UdpPlcLink"
Rem Get the measurement result.
GetUnitData 2, 6, X#
GetUnitData 2, 7, Y#
Rem Convert the real number value multiplied by 1,000 to the integer value.
VALUE0& = Int(X# * 1000)
VALUE1& = Int(Y# * 1000)
Rem Get the settings of the output data area.
GetSystemData IOMODULE$, "outputArea", AREA&
GetSystemData IOMODULE$, "outputMemoryAddress", ADDRESS&
Rem Store the data to be written in an integer array variable.
Dim DATA&(1)
SetPlcData IOMODULE$, DATA&(), 0, 4, VALUE0&
SetPlcData IOMODULE$, DATA&(), 4, 4, VALUE1&
Rem Write the data (4ch) in data output area.
WritePlcMemory IOMODULE$, AREA&, ADDRESS&, 4, DATA&()
GetPlcData (Reference:
X
Details (p.538))
GetSystemData (Reference:
X
Details (p.546))
GetUnitData (Reference:
X
Details (p.552))
Int (Reference:
X
Details (p.575))
ReadPlcMemory (Reference:
X
Details (p.649))
SetPlcData (Reference:
X
Details (p.709))
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...