Omron NY532-5400 Reference Manual page 1009

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

Advertisement

 Example for Writing Data with Power OFF Retain Attribute That Is Updated after
Writing the Data
The following programming sets the Ch1 Offset Value (One-point Correction) object parameter for an
NX-TS2101 Temperature Input Unit connected to an EtherCAT Coupler Unit to 0.3°C.
The node address of the EtherCAT Coupler Unit is 10.
The specifications of the Ch1 Offset Value (One-point Correction) object parameter are as follows:
Item
Index
Subindex
Value to write
The Ch1 Offset Value (One-point Correction) object parameter has a Power OFF Retain Attribute and it
is updated after the data is written. Therefore, the following procedure is used.
1
Use the NX_WriteObj instruction to write data to the Unit.
2
Use the NX_SaveParam instruction to save the data that you wrote.
LD
Internal
Variable
Variables
Trigger
WriteCondition
SaveCondition
NXUnitProxy
NXUnitProxy_Coupler
NXObject
VarWriteData
NX_WriteObj_instance
NX_SaveParam_instance
External
Variable
Variables
_EC_MBXSlavTbl
*1 The data type is ARRAY [1..192] OF BOOL for an NJ-series CPU Unit.
NY-series Instructions Reference Manual (W560)
Value
16#5010
16#01
0.3
Data type
BOOL
BOOL
BOOL
_sNXUNIT_ID
_sNXUNIT_ID
_sNXOBJ_ACCESS
Real
NX_WriteObj
NX_SaveParam
Constant
ARRAY[1..512] OF BOOL
*1
2 Instruction Descriptions
Initial value
FALSE
Execution condition
FALSE
Execution condition to write data
FALSE
Execution condition to save data
Unit designation for AC Input Unit
Unit designation for EtherCAT Cou-
pler Unit
(Index:=0,
Subindex:=0,
Object parameter
IsCompleteAc-
cess:=FALSE)
0.0
Write data
Data type
Message Communications Enabled
Slave Table
Comment
Comment
2-957
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents