![Mect MPNE1001 Series User Manual Download Page 41](http://html1.mh-extra.com/html/mect/mpne1001-series/mpne1001-series_user-manual_1759153041.webp)
Inputs/outputs modules: MPNE
Mect Srl
40
ME7087_13 04/21
ENCODER Management
To manage the encoder, the programmer must set the CW for the following function:
Bit
Description
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
Disabled Encoder
(paused reading):
MPNE_ControlWord_A :=
16#0808;
1
0
0
0
1
0
0
1
0
0
0
0
1
0
0
0
Unidirectional Counter:
MPNE_ControlWord_A :=
16#8908;
1
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
Bidirectional Encoder:
MPNE_ControlWord_A :=
16#8808;
1
1
0
0
1
0
0
0
0
1
0
0
0
1
0
0
The OUT 1 is activated when the
encoder count value is reached with
respect to the value set on the
matching register.
(Function 7)
MPNE_ControlWord_A :=
16#C844;
Variables set:
MPNE_MatchRegister_A
Re-arm the function by rewriting the
CW:
To disable OUT 1
Every parameters change
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
Reset Counter
MPNE_ControlWord_A :=
16#8400;
1
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
Reset Counter via fast input (IN13).
(Function 8)
MPNE_ControlWord_A :=
16#9202;