Omron FZ4 Series User Manual page 311

Vision sensor
Table of Contents

Advertisement

Supported functions
IoInitialize
GetPort
PutPort
BusyOut
JudgeOut
RunOut
GetAll
PutAll
ReceiveData
SendData
SendString
ReadPlcMemory
WritePlcMemory
SetPlcData
GetPlcData
Example
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 "TcpClient", 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 "TcpClient", data&(), 4*5, ipaddr&(), 4*4
TcpNormal
TCP Non-procedure communication
IoModule identification name
TcpNormal
FZ4 User's Manual
Reference:
Reference:
×
×
×
Reference:
Reference:
Reference:
Reference:
Reference:
×
×
×
×
Input terminal a point input (p.214)
Output terminal a point output (p.250)
Input terminal all point input (p.210)
Output terminal all point output (p.249)
Receive data (p.252)
Send data (p.267)
Sends string (p.268)
Using Custom Command
4
309

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents