Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

OpNI6602 Encoder

Block

Mask

Description

This block programs one counter/timer of a National Instruments NI6602 card in position measurement mode and returns the current encoder value.

The counter is programmed in Encoder X1 mode. The Index channel of the external signal connected to the counter is supposed to be high when Channel A and Channel B are low.

The counter is reset during model initialization. During execution, it can also reset on the index pulse, or the reset can be controlled from an inport of the block.

Parameters

Bus TypeThis pop-up menu enables the user to select the bus type of the target computer where the NI6602 card is installed. The options are PCI or PXI.
PCI indexEnter the PCI index (see definition)of the card on the PCI (or PXI) bus.
CounterSpecify the counter to which gate pin the input signal is connected.
Clock SourceThree clock sources are available: 100 KHz, 20 MHz and 80MHz. This selection has a direct impact on the timing precision of the measurement.
Encoder ResetThis parameter allows choosing if the counter will be reset when the index pulse is detected, or when an edge is detected at the inport of the block.
Synchronizesee definition.


Inputs

RstThis inport appears only if the Encoder Reset parameter is set to 'On inport edge'.The reset of the counter occurs when the Rst inport goes from 0 to1 or from 1 to 0.


Outputs

FreqReturns the current value of the encoder.


Characteristics and Limitations

Connections Requirements

Connect the channel A signal to the Source pin of the counter, the channel B signal to the UpDown/Aux pin, and the Index (channel Z) signal to the Gate pin of the counter.

Connector Pin Assignments

Pin Description Pin Description 
1+5V 35RG 
2SOURCE(0) 36GND
3GATE(0) 37Reserved
4Reserved 38Reserved
5OUT(0) 39GND
6UP_DOWN(1)/AUX_LINE(1)40UP_DOWN(0)/AUX_LINE(0)
7SOURCE(1) 41GND
8GATE(1) 42GND
9OUT(1) 43RG
10PFI_0 44PFI_1
11GND 45PFI_2
12PFI_3 46GND
13PFI_4 47PFI_5
14GND 48PFI_6
15PFI_7 49GND
16OUT(7) 50GND
17UP_DOWN(7)/AUX_LINE(7) 51GATE(7)
18GND 52SOURCE(7)
19RG 53OUT(6)
20GND 54UP_DOWN(6)/AUX_LINE(6)
21GATE(6)55GND
22SOURCE(6)56RG
23OUT(5)57UP_DOWN(5)/AUX_LINE(5)
24GND58GATE(5)
25SOURCE(5) 59GND
26OUT(4)60UP_DOWN(4)/AUX_LINE(4)
27GND61GATE(4)
28SOURCE(4)62GND
29OUT(3)63UP_DOWN(3)/AUX_LINE(3)
30GND64GATE(3)
31SOURCE(3)65GND
32OUT(2)66UP_DOWN(2)/AUX_LINE(2)
33GND67GATE(2)
34SOURCE(2)68GND
Direct FeedthroughNo
Discrete sample timeNo
XHP supportYes
Work offlineNo

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter