Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
• A duplicated IP error occurred.
• The instruction was executed when there was a BOOTP server error.
• An error response defined by CIP was returned.
• The text string in RoutePath is not valid.
• More than 32 CIP-related instructions were executed simultaneously.
• A response was not received even though the timeout time was exceeded.
Sample Programming
This sample uses CIP UCMM 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 CIPUCMMWrite 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.
WritingDat must be defined as a global variable at the remote node and the Network Publish
attribute must be set.
2
The CIPUCMMRead 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.
3
The CIPUCMMSend instruction is used to send an explicit message to a remote node. The con-
tents 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 ResDat vari-
able.
Class ID
Instance ID
Attribute ID
Service code
Built-in EtherNet/IP port
WriteDat
ReadDat
ResDat
2-1040
Item
1
1
7
16#0E
IP address: 192.168.250.2
Value of variable written.
Value of variable read.
Message sent to read identity
information (product name).
Response
Value
Built-in EtherNet/IP port
Variable name: WritingDat,
global variable with a
Network Publish attribute
Variable name: OriginalDat,
global variable with a
Network Publish attribute

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents