Omron FZ4 Series User Manual page 314

Vision sensor
Table of Contents

Advertisement

ReceiveData
SendData
SendString
ReadPlcMemory
WritePlcMemory
SetPlcData
GetPlcData
Example
4
Receive data
Set an IP address and parameter size (*4 integer type domain) in a parameter to use an Ethernet.
Dim data&(256)
Dim ipaddr&(4)
'Set the IP address of the destination.
ipaddr&(0) = 10
ipaddr&(1) = 1
ipaddr&(2) = 1
ipaddr&(3) = 101
'Gets the five data.
ReceiveData "UdpNormal", data&(), 4*5, size&, ipaddr&(), 4*4
Send data
Set an IP address and parameter size (*4 integer type domain) in a parameter to use an Ethernet.
Dim data&(256)
Dim ipaddr&(4)
'Set the IP address of the destination.
ipaddr&(0) = 10
ipaddr&(1) = 1
ipaddr&(2) = 1
ipaddr&(3) = 101
'Transmit the five data.
SendData "UdpNormal", data&(), 4*5, ipaddr&(), 4*4
UdpPlcLinkM
PLC Link (MELSEC QnU/Q/QnAS) communication
IoModule identification name
UdpPlcLinkM
Overview
This is a module is for sending and receiving commands and data by Ethernet PLC Link protocol.
312
Using Custom Command
Reference:
Reference:
Reference:
×
×
×
×
Receive data (p.252)
Send data (p.267)
Sends string (p.268)
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents