![Omron Sysmac NY512-1300 Скачать руководство пользователя страница 216](http://html.mh-extra.com/html/omron/sysmac-ny512-1300/sysmac-ny512-1300_user-manual_742451216.webp)
8 CIP Message Communications
8-20
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
This sample uses CIP class 3 messages to write a variable, read a variable, and send a message. The
Controllers are connected to an EtherNet/IP network. The IP address of the remote node is
192.168.250.2. The following procedure is used.
1
The CIPOpen is used to open a class 3 connection (Large_Forward_Open). The timeout time is
2 s.
2
The CIPWrite instruction is used to write the value of a variable at a remote node. The variable
name at the remote node is
WritingDat
and the contents of the
WriteDat
is written to it.
Writing-
Dat
must be defined as a global variable at the remote node and the Network Publish attribute
must be set.
3
The CIPRead instruction is used to read the value of a variable at a remote node. The value of
the variable
OriginalDat
at the other node is read and the read value is stored in the
ReadDat
variable.
OriginalDat
must be defined as a global variable at the remote node and the Network
Publish attribute must be set.
4
The CIPSend instruction is used to send an explicit message to a remote node. The contents of
the message is to read identity information (product name). The class ID, instance ID, attribute
ID, and service code are as follows: The response data is stored in the RespDat variable.
5
The CIPClose instruction is used to close the class 3 connection.
8-2-8
Sample Programming for CIP Connection (Class 3) Message
Communications
Item
Value
Class ID
1
Instance ID
1
Attribute ID
7
Service code
16#0E
Built-in EtherNet/IP port
Built-in EtherNet/IP port
IP address: 192.168.250.2
Message sent to read identity
information (product name).
Response
RespDat
Value of variable read.
ReadDat
Variable name: OriginalDat
Global
variable
Network Publish attribute
Value of variable written.
WriteDat
Variable name:
WritingDat
Global
variable
Network Publish attribute
Содержание Sysmac NY512-1300
Страница 290: ...9 Socket Service 9 32 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 310: ...10 FTP Server 10 20 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 324: ...11 FTP Client 11 14 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 452: ...Appendices A 66 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 453: ...Index 1 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 I Index ...
Страница 459: ......