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
Writing Arrays
To write array data, pass a subscripted array element to DstDat as the parameter. Also pass a sub-
scripted array element to SrcDat as the parameter.
The following example stores the contents of array variable elements def[10] to def[13] in the four array
variable elements abc[3] to abc[6].
LD
A
'02\192.168.250.2'
UINT#0
'abc[3]'
UINT#4
def[10]
0
Values of array variable elements def[10] to def[13] in local Controller are assigned to array variable elements
abc[3] Ito abc[6] in remote Controller.
Controller that executed the instruction
INT#1234
SrcDat[0]=def[10]
INT#2345
SrcDat[1]=def[11]
INT#3456
SrcDat[2]=def[12]
INT#4567
SrcDat[3]=def[13]
Array variable def in local Controller
Maximum Write Data Size
The maximum size of the data that you can write depends on the data type and variable name that are
specified for DstDat and the route path, as given in the following table.
Maximum write data size [bytes] = Base size − Size of variable name of DstDat − Path information size
Item in above formula
Base size
2-1030
CIPUCMMWrite_instance
CIPUCMMWrite
Execute
Done
RoutePath
Busy
jkl
TimeOut
Error
mno
DstDat
ErrorID
pqr
Size
ErrorIDEx
stu
SrcDat
IP address: 192.168.250.2
Written.
Size UINT#4
The number of elements to write is 4.
• Data type of variable specified for DstDat is a structure: 492 bytes
• Data type of variable specified for DstDat is a STRING: 494 bytes
• Other data types: 496 bytes
ST
CIPUCMMWrite_instance(A, '2\192.168.250.2',
ghi
DstDat[0]=abc[3]
INT#1234
DstDat[1]=abc[4]
INT#2345
DstDat[2]=abc[5]
INT#3456
DstDat[3]=abc[6]
INT#4567
Values of array variable def in local Controller are
assigned to array variable abc in remote Controller.
Meaning

NY-series Instructions Reference Manual (W560)

UINT#0, 'abc[3]', UINT#4,
def[10], ghi, jkl, mno, pqr,
stu);
]
=def[10]
INT#1234
=def[11]
INT#2345
=def[12]
INT#3456
=def[13]
INT#4567

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents