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

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

Advertisement

The value of variable SrcDat in remote Controller on the CIP network specified by the handle Handle is assigned to variable
DstDat in the local Controller. Size specifies the number of elements to read. The size of data that was read is assigned to
RcvSize.
Controller that executed the instruction
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 is assigned to variable vwx.
Reading Arrays
To read array data, pass a subscripted array element to ScrDat as the parameter. Also pass a sub-
scripted array element to DstDat as the parameter.
The following example reads the four array variable elements abc[3] to abc[6] from the remote Control-
ler and stores the results in array variable elements def[10] to def[13] in the local Controller. The data
type of abc and def is INT. The size of INT data is two bytes, so the value of the read data size vwx is
UINT#8.
LD
CIPRead_instance
A
Execute
cip_h
Handle
'abc[3]'
SrcDat
UINT#4
Size
DstDat
def[10]

NY-series Instructions Reference Manual (W560)

=abc SINT#123
ghi
CIPRead
Done
Busy
jkl
Error
mno
ErrorID
pqr
def[10]
ErrorIDEx
stu
RcvSize
vwx
2 Instruction Descriptions
Handle Handle = cip_h Controller.
Read.
Size UINT#1
The number of elements to read is 1.
ST
CIPRead_instance(A, cip_h, 'abc[3]', UINT#4,
SrcDat=abc SINT#123
Variable abc in remote Controller
def[10], ghi, jkl, mno, pqr,
stu, vwx);
2-1005
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents