EasyManua.ls Logo

Omron SYSMAC FH Series

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WWW.NNC.IR
Macro Reference
352
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.
TcpNormal
TCP Normal communication
IoModule identification name
TcpNormal
Overview
This is a module is for sending and receiving commands and data by Ethernet TCP protocol.
System data
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 "TcpClient", 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 "TcpClient", data&(), 4*5, ipaddr&(), 4*4
Identification Meaning Initial value
enableDhcp
Enable DHCP
0: Disabled
1: Enabled
0
ipAddress IP address of the system 10.5.5.100
subnetMask Subnet mask 255.255.255.0
defaultGateway Default gateway 10.5.5.110
dns DNS server address 10.5.5.1
portNo Port number to receive commands 9600

Table of Contents

Other manuals for Omron SYSMAC FH Series

Related product manuals