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

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

Advertisement

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
A
'02\192.168.250.2'
UINT#0
'abc[3]'
UINT#4
def[10]
Values of array variable elements abc[3] to abc[6] in remote Controller are assigned to array variable elements def[10] to def[13] in local
Controller.
DstDat[0]=def[10]
INT#1234
DstDat[1]=def[11]
INT#2345
DstDat[2]=def[12]
INT#3456
DstDat[3]=def[13]
INT#4567
Values of array variable abc in remote Controller are assigned to array variable def in local Controller.
RcvSize=vwx UINT#8
The size of data that was read, eight bytes, is assigned to variable vwx.
Related System-defined Variables
Name
*1
_EIP_EtnOnlineSta
*2
_EIP1_EtnOnlineSta
*3
_EIP2_EtnOnlineSta
*4
_EIPIn1_EtnOnlineSta
*1 Use this variable name for an NJ-series CPU Unit.
*2 Use this variable name for port 1 on an NX-series CPU Unit, or for an NY-series Controller.
*3 Use this variable name for port 2 on an NX-series CPU Unit.
*4 Use this variable name for the internal communication port on an NY-series Controller.

NY-series Instructions Reference Manual (W560)

CIPUCMMRead_instance
CIPUCMMRead
Execute
Done
RoutePath
Busy
TimeOut
Error
SrcDat
ErrorID
Size
ErrorIDEx
DstDat
RcvSize
Controller that executed the instruction
=abc[3]
INT#1234
=abc[4]
INT#2345
=abc[5]
INT#3456
=abc[6]
INT#4567
The number of elements to read is 4.
Meaning
Online
ST
CIPUCMMRead_instance(A, '2\192.168.250.2',
ghi
jkl
mno
pqr
stu
def[10]
vwx
IP address: 192.168.250.2
Read.
Size UINT#4
Data
type
BOOL
This variable indicates when built-in EtherNet/IP
port communications can be used.
TRUE: Communications are possible.
FALSE: Communications are not possible.
2 Instruction Descriptions
UINT#0, 'abc[3]', UINT#4,
def[10], ghi, jkl, mno, pqr,
stu, vwx);
INT#1234
SrcDat[0]=abc[3]
INT#2345
SrcDat[1]=abc[4]
INT#3456
SrcDat[2]=abc[5]
INT#4567
SrcDat[3]=abc[6]
Array variable abc in remote Controller
Description
2-1025
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents