Omron NY532-5400 Reference Manual page 1014

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

Advertisement

2 Instruction Descriptions
The data type of UnitProxy is structure _sNXUNIT_ID. The meanings of the members are as follows:
Name
UnitProxy
NodeAdr
IPAdr
UnitNo
Path
PathLength
Pass the device variable that is assigned to the specified Unit to UnitProxy.
The data type of Obj is structure _sNXOBJ_ACCESS. The meanings of the members are as follows:
Name
Obj
Index
Subindex
IsCompleteAc-
*1
cess
*1 This member is not used for this instruction. Always set the value to FALSE.
Notation Example
The following notation example shows how to read the unit version from an NX-ID4342 Digital Input
Unit.
The read data is stored in Rdat, which is a UDINT variable.
A variable that is named 'NX1' with a data type of _sNXUNIT_ID is assigned to the Unit from which to
read the data.
For the NX-ID4342, the index of the Unit version is UINT#16#1000 and the subindex is USINT#6.
LD
NX_ReadObj_instance
A
Execute
NX1
UnitProxy
S_Obj
Obj
UINT#0
TimeOut
ReadDat
Rdat
2-962
Meaning
Content
Specified Unit
Specified Unit
Node address Node address of the
Communications Cou-
pler Unit
IP address
IP address of the Com-
munications Coupler
Unit
Unit number
Unit number of speci-
fied Unit
Path
Path information to the
specified Unit
Valid path
Valid path length
length
Meaning
Content
Object
Object parameter
parameter
Index
Index
Subindex
Subindex
Complete
Complete access
access
abc
NX_ReadObj
Done
def
Busy
ghi
Error
jkl
ErrorID
Rdat
mno
ErrorIDEx
Data type
_sNXUNIT_ID
UINT
BYTE[5]
UDINT
BYTE[64]
USINT
Data type
Valid range
_sNXOBJ
---
_ACCESS
UINT
Depends on
data type.
USINT
BOOL
FALSE only
ST
NX_ReadObj_instance(A, NX1, S_Obj, UINT#0,
Rdat, abc, def, ghi, jkl, mno);
NY-series Instructions Reference Manual (W560)
Unit
Default
---
---
---
0
FALSE

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents