![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686365.webp)
WWW.NNC.IR
Macro Reference
363
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
Receive data
Set an IP address and parameter size (*4 integer type domain) in a parameter to use an Ethernet.
Send data
Set an IP address and parameter size (*4 integer type domain) in a parameter to use an Ethernet.
Gets 7ch data from 10ch of the DM area.
Gets the data from readData().
Set data to writeData().
Write in data for 7ch from 10ch of the DM area.
Dim data&(256)
Dim ipaddr&(4)
'Set the IP address of the destination.
ipaddr&(0) = 10
ipaddr&(1) = 5
ipaddr&(2) = 5
ipaddr&(3) = 101
'Gets the five data.
ReceiveData "UdpPlcLink", data&(), 4*5, size&, ipaddr&(), 4*4
Dim data&(256)
Dim ipaddr&(4)
'Set the IP address of the destination.
ipaddr&(0) = 10
ipaddr&(1) = 5
ipaddr&(2) = 5
ipaddr&(3) = 101
'Transmit the five data.
SendData "UdpPlcLink", data&(), 4*5, ipaddr&(), 4*4
Dim readData&(256)
Dim data3$(21)
'Gets the data from PLC
ReadPlcMemory "UdpPlcLink", 130, 10, 7, readData&()
'Gets the data of the real number type
GetPlcData "UdpPlcLink", readData&(), 0, 8, data1#
'Gets the data of the integer type
GetPlcData "UdpPlcLink", readData&(), 8, 4, data2&
'Gets the data of the character type
GetPlcData "UdpPlcLink", readData&(), 12, 5, data2&
Dim writeData&(256)
'Set the data (123.45) of the real number type.
SetPlcData "UdpPlcLink", writeData&(), 0, 8, 123.45
'Set the data (20) of the integer type.
SetPlcData "UdpPlcLink", writeData&(), 32, 4, 20
'Set the data (OMRON) of the character type.
SetPlcData "UdpPlcLink", writeData&(), 36, 5, "OMRON"
'Write in data for 7ch from 10ch of the DM area.
WritePlcMemory "UdpPlcLink", 130, 10, 7, writeData&()
Содержание 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...