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
Function
The CIPUCMMRead instruction reads the value of the network variable specified with source variable
name SrcDat from another Controller on a CIP network. The other Controller is specified with route
path RoutePath.
The read data value is stored in DstDat.
Size specifies the number of elements to read. If SrcDat is an array, specify the number of elements to
read with Size. If SrcDat is not an array, always specify 1 for Size. If the value of Size is 0, nothing is
read regardless of whether SrcDat is an array or not.
When the read operation is completed, the number of bytes of the data that was read is assigned to
read data size RcvSize. The maximum size of the data that you can read depends on the data type of
the variable as follows:
• Structure: 492 bytes
• STRING: 494 bytes
• Other data types: 496 bytes
TimeOut specifies the timeout time. If a response does not return within the timeout time, it is assumed
that communications failed.
If the value of ErrorID is WORD#16#1C00, the CIP message error code is stored in ErrorIDEx.
In the following example, the value of variable abc in the remote Controller is read and stored in the
variable def in the local Controller. The number of elements to read Size is UINT#1. The data type of
abc and def is SINT. The size of SINT data is one byte, so the value of the read data size vwx is
UINT#1.
LD
A
'02\192.168.250.2'
UINT#0
UINT#1
Value of variable SrcDat in remote Controller on the CIP network specified by the route path
RoutePath is assigned to variable DstDat in local Controller. Size specifies the number of elements
to read. The size of data that was read is assigned to RcvSize.
DstDat=def SINT#123
Value of variable abc in remote
Controller is assigned to variable def in local Controller.
RcvSize=vwx UINT#1
The size of data that was read, one byte, is assigned to variable vwx.
2-1024
CIPUCMMRead_instance
CIPUCMMRead
Execute
Done
RoutePath
Busy
TimeOut
Error
'abc'
SrcDat
ErrorID
Size
ErrorIDEx
DstDat
def
RcvSize
Controller that executed the instruction
=abc SINT#123
ST
CIPUCMMRead_instance(A, '2\192.168.250.2',
ghi
jkl
mno
pqr
stu
def
vwx
IP address: 192.168.250.2
Read.
Size UINT#1
The number of elements to read is 1.

NY-series Instructions Reference Manual (W560)

UINT#0, 'abc', UINT#1,
def, ghi, jkl, mno, pqr,
stu, vwx);
SrcDat=abc SINT#123
Variable abc in remote Controller

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents