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

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

Advertisement

Function
The CIPUCMMWrite instruction writes the value of the network variable specified with destination vari-
able name DstDat at another Controller on a CIP network. The other Controller is specified with route
path RoutePath.
The content of source data ScrDat is written.
Size specifies the number of elements to write. If DstDat is an array, specify the number of elements to
write with Size. If DstDat is not an array, always specify 1 for Size. If the value of Size is 0, nothing is
written regardless of whether DstDat is an array or not.
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.
The following example writes the value of variable def from the local Controller to the variable abc in the
remote Controller. The number of elements to write Size is UINT#1.
LD
A
'02\192.168.250.2'
UINT#0
UINT#1
Value of variable ScrDat in local Controller is assigned to variable DstDat in remote Controller on the CIP
network specified by the route path RoutePath. Size specifies the number of elements to write.
Controller that executed the instruction
SrcDat=def SINT#123
Variable def in local Controller

NY-series Instructions Reference Manual (W560)

CIPUCMMWrite_instance
CIPUCMMWrite
Execute
Done
RoutePath
Busy
TimeOut
Error
'abc'
DstDat
ErrorID
Size
ErrorIDEx
def
SrcDat
Written.
Size UINT#1
The number of elements to write is 1.
ST
CIPUCMMWrite_instance(A, '2\192.168.250.2',
ghi
jkl
mno
pqr
stu
IP address: 192.168.250.2
DstDat=abc
Value of variable def in local Controller is assigned to
variable abc in remote Controller.
2 Instruction Descriptions
UINT#0, 'abc', UINT#1,
def, ghi, jkl, mno, pqr,
stu);
SINT#123
SINT#123
=def
2-1029
2
]

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents