Description Of The Registers; Mode Registers, Channel 0 And Channel 1 - Siemens SMP16-SFT251 Technical Description

Counter board with two 32-bit incremental/pulse counters
Table of Contents

Advertisement

Programming the Board
6.4

Description of the Registers

6.4.1

Mode Registers, Channel 0 and Channel 1

The mode registers have different addresses depending on the status of the BG_Mode bit in control
register 0 (bit 4).
BG_Mode
Address
Mode Register, Counting
Channel 0
0
1
Bit
7
6
Name
PD
TOR_MD
PD
Operating mode
0
Position acquisition (shaft encoder evaluation)
1
Frequency and pulse width measurement
TOR_MD
Gate mode for frequency and pulse width measurement
0
Counter continues running as long as the gate input is active.
1
Counter starts at rising gate edge and stops with the next one.
HZ
Specifies whether the hysteresis is enabled for position acquisition
The direction of counting is specified for frequency and pulse width measurement.
0
Hysteresis off/counting up
1
Hysteresis on/counting down
Edge
For position acquisition
evaluation
0000
0001
0101
44
Address
Mode Register, Counting
Channel 1
w + 5
w + A
5
4
3
2
1
HZ
0
Edge evaluation
Quadruple edge evaluation
Double edge evaluation
Single edge evaluation
w + D
w + B
0
©Siemens AG 2003, All Rights Reserved
SMP16-SFT251
(4)J31069-D2090-U001-A1-7618

Advertisement

Table of Contents
loading

This manual is also suitable for:

6ar1304-0ea00-0aa0

Table of Contents