Nx_Readobj - Omron NY532-5400 Reference Manual

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

Advertisement

NX_ReadObj

The NX_ReadObj instruction reads data from an NX object in an EtherCAT Coupler Unit or NX Unit.
Instruction
Name
NX_ReadObj
Read NX Unit
Object
Variables
Name
Meaning
UnitProxy
Specified Unit
Obj
Object param-
eter
TimeOut
Timeout time
ReadDat
Read data
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
UnitProxy
Obj
TimeOut
ReadDat
OK
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Function
The NX_ReadObj instruction reads data from an NX object in an EtherCAT Coupler Unit, an NX Unit on
the EtherCAT Coupler Unit, or an NX Unit connected to the NX bus of the CPU Unit and stores the data
in ReadDat. The Unit from which the data is read is specified with UnitProxy.
TimeOut specifies the timeout time. If a response does not return within the timeout time, it is assumed
that communications failed. In that case, the data is not read.
NY-series Instructions Reference Manual (W560)
FB/FUN
Graphic expression
FB
NX_ReadObj_instance
Execute
UnitProxy
Obj
TimeOut
ReadDat
I/O
Description
Input
Unit from which to read data
Object parameter
Timeout time
If 0 is set, the timeout time is 2.0 s.
In-out
Data read from NX object
Refer to Function for details on the structure _sNXUNIT_ID.
Refer to Function for details on the structure _sNXOBJ_ACCESS.
OK
An array can also be specified.
NX_ReadObj
Done
Busy
Error
ErrorID
ErrorIDEx
Valid range
---
0 to 60,000
Depends on
data type.
Integers
2 Instruction Descriptions
ST expression
NX_ReadObj_instance(Execute,
UnitProxy, Obj, TimeOut,
ReadDat, Done, Busy, Error,
ErrorID, ErrorIDEx);
Unit
Default
---
*
---
ms
2000
(2.0 s)
---
---
Times, durations,
dates, and text strings
2
2-961

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents