Omron NY532-5400 Reference Manual page 1004

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

Advertisement

2 Instruction Descriptions
Sample Programming
 Example for Writing Data with Power OFF Retain Attribute That Is Updated at Unit
Restart for an NX Unit
The following programming sets the Ch1 Input Moving Average Time object parameter for an NX-
AD2203 AC Input Unit connected to an EtherCAT Coupler Unit to 500 μs.
The node address of the EtherCAT Coupler Unit is 10.
The specifications of the Ch1 Input Moving Average Time object parameter are as follows:
Item
Index
Subindex
Setting for 500 μs
The Ch1 Input Moving Average Time object parameter has a Power OFF Retain Attribute and it is
updated when the Unit is restarted. Therefore, the following procedure is used.
1
Use the NX_ChangeWriteMode instruction to change the Unit to a mode that allows writing
data.
2
Use the NX_WriteObj instruction to write data to the Unit.
3
Use the NX_SaveParam instruction to save the data that you wrote.
4
Use the RestartNXUnit instruction to restart the Unit.
LD
Internal
Variable
Variables
Trigger
ChangeCondition
WriteCondition
SaveCondition
RestartCondition
NXUnitProxy
NXUnitProxy_Coupler
NXObject
VarWriteData
NX_ChangeWriteMode
_instance
NX_WriteObj_instance
NX_SaveParam_instance
RestartNXUnit_instance
External
Variable
Variables
_EC_MBXSlavTbl
*1 The data type is ARRAY [1..192] OF BOOL for an NJ-series CPU Unit.
2-952
Value
16#5004
16#01
2
Data type
BOOL
BOOL
BOOL
BOOL
BOOL
_sNXUNIT_ID
_sNXUNIT_ID
_sNXOBJ_ACCESS
UINT
NX_ChangeWriteMode
NX_WriteObj
NX_SaveParam
RestartNXUnit
Constant
Data type
ARRAY[1..512] OF BOOL
*1
Initial value
FALSE
Execution condition
Execution condition to change write
FALSE
mode
FALSE
Execution condition to write data
FALSE
Execution condition to save data
FALSE
Execution condition to restart Unit
Unit designation for DC Input Unit
Unit designation for EtherCAT Cou-
pler Unit
(Index:=0,
Subindex:=0,
Object parameter
IsCompleteAc-
cess:=FALSE)
0
Write data
Comment
Message Communications Enabled Slave
Table
NY-series Instructions Reference Manual (W560)
Comment

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents