Omron FZ4 Series User Manual page 312

Vision sensor
Table of Contents

Advertisement

Overview
This is a module is for sending and receiving commands and data by Ethernet TCP protocol.
System data
Identification
enableDhcp
ipAddress
subnetMask
4
defaultGateway
dns
portNo
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 "TcpNormal", 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.
310
Using Custom Command
Meaning
Enable DHCP
0:Disabled
1:Enabled
IP address of the system
Subnet mask
Gateway address
DNS server address
Port number to receive commands
×
×
×
×
×
×
×
Reference:
Input terminal a point input (p.214)
Reference:
Output terminal a point output (p.250)
Reference:
Input terminal all point input (p.210)
Reference:
Output terminal all point output (p.249)
Reference:
Receive data (p.252)
Reference:
Send data (p.267)
Reference:
Sends string (p.268)
Initial value
0
10.5.5.100
255.255.255.0
10.5.5.110
10.5.5.1
9600
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents