EasyManuals Logo

Omron NX-EC0222 User Manual

Omron NX-EC0222
468 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #194 background imageLoading...
Page #194 background image
6 Incremental Encoder Input Units
6 - 68
NX-series Position Interface Units Users Manual (W524)
This section provides two ladder diagram examples. One does not assign the pulse rate value to a
PDO and reads the value from the Unit every time. The other assigns the pulse rate value to a PDO.
Reading the Pulse Rate Value from the Unit Each Time
Use the following procedure.
1 Starting and Reading the Pulse Rate Value
Change the read execution condition to TRUE and use the Read NX Unit Object instruction to
read the pulse rate value from the target Unit.
2 Processing the Data
When the read is completed (i.e., Done in the Read NX Unit Object instruction), calculate the
data from the pulse rate value that was read in step 1.
In this example, we will calculate the frequency.
In this example, the time window set value (unit: ms) in the Incremental Encoder Input Unit is used
as it is in the frequency calculation. The unit of the calculated frequency is therefore kHz.
The value that is automatically set for the target Unit when the variable is assigned in the Sysmac
Studio is used for the Specified Unit input variable to the Read NX Unit Object instruction
(NX_ReadObj).
The Object Parameter (Obj) is a structure with the following data type.
To read the pulse rate of the Incremental Encoder Input Unit, set the index to UINT#16#6003 and
set the subindex to USINT#1 for the pulse rate for channel 1 and to USINT#2 for the pulse rate for
channel 2.
Sample Programming
Variable Name Description Data type Valid range Unit Default
Obj Object Parameter Object parameters. _sNXOBJ_ACCESS --- --- ---
Index Index Index. UINT Depends on
data type.
--- 0
Subindex Subindex Subindex. USINT
Read completed
In1
In2
DIV
EN EN0
UnitProxy
ErrorID
ReadDat
ErrorIDEx
NX_ReadObj_Instance
Error
NX_ReadObj
Execute Done
Busy
Obj
TimeOut
ReadDat
Read NX object from Unit.
Read execution
condition
Frequency calculation
completed
Specified Unit
Object Parameter
Timeout Time
Pulse Rate Read Data
Pulse Rate Read Data
Time Window Set Value (ms)
Pulse Rate Read Data
Process the data.
Read completed
Frequency (kHz)
Frequency calculation
completed

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NX-EC0222 and is the answer not in the manual?

Omron NX-EC0222 Specifications

General IconGeneral
BrandOmron
ModelNX-EC0222
CategoryController
LanguageEnglish

Related product manuals