EasyManuals Logo

Omron NX701-1720 User Manual

Omron NX701-1720
578 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
Page #371 background imageLoading...
Page #371 background image
In this example, programming is also required in the remote node. The order of sending and receiving
is reversed in comparison with the above procedure.
IP address: 192.168.250.1
UDP port number: 6000
Ethernet line
Built-in EtherNet/IP Port
Data received.
Remote node
IP address: 192.168.250.2
UDP port number: 6001
Data sent.
Local Node Programming
The processing procedure at the local node is as follows:
1 The SktUDPCreate instruction is used to make a request to create a UDP socket.
2 The SktUDPSend instruction is used to make a send request. The data in SendSocketDat[] is
sent.
3 The SktUDPRcv instruction is used to make a receive request. The received data is stored in
RcvSocketDat[].
4 The SktClose instruction is used to close the socket.
ST
Internal
varia-
bles
Variable Data type Initial value Comment
Trigger BOOL False Execution
condition
DoSendAndRcv BOOL False Processing
Stage INT 0 Status
change
RcvSocketDat ARRAY[0..1999] OF
BYTE
[2000(16#0)] Received
data
WkSocket _sSOCKET (Handle:=0, SrcAdr:=(Port-
No:=0,IpAdr:=''), DstAdr:=(Port-
No:=0,IpAdr:=''))
Socket
SendSocketDat ARRAY[0..1999] OF
BYTE
[2000(16#0)] Send data
SktUDPCreate_instance SktUDPCreate
SktUDPSend_instance SktUDPSend
SktUDPRcv_instance SktUDPRcv
SktClose_instance SktClose
9 Socket Service
9-17
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
9-6 Details on Using the Socket Services
9
9-6-4 UDP Sample Programming

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NX701-1720 and is the answer not in the manual?

Omron NX701-1720 Specifications

General IconGeneral
BrandOmron
ModelNX701-1720
CategoryController
LanguageEnglish

Related product manuals