ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05
Chapter A: Internal functioning & architecture
Operation & Software Manual
Direct Drives & Systems
33
6.5
Bit fields or numerical values for registers and commands
The registers and commands values can be of two types:
bit fields
or
numerical values
.
6.5.1
Bit fields
Some registers and commands values are defined as bit fields. Thanks to this feature, their corresponding
functions may be combined by using a
binary mask
.
How to recognize them?
If the numbers (0, 1, 2, ...) are present in the table under the header
Bit#
, the register
or the command value is defined as
a bit field
.
For example, K68 is a parameter with 3 functions, defined as bit fields. Each function corresponds to a bit.
Thanks to the binary mask, its 3 functions may be combined in 2
3
=8 possibilities.
Binary mask example:
The user can invert the analog position encoder (bit# 0, value of
K68=1
)
and also
the TTL encoder reading
way (bit# 1, value of
K68=2
).
Simply add the two bits:
K68=3
, and both functions are combined.
Remark:
When all bits = 0, their functions are not active. Thus, K68=0 is not described in the table
above; this is the case in this document for all registers and commands values defined as bit
fields.
6.5.1.1
Numerical values
Most registers and commands are defined as simple numerical values. Their corresponding functions cannot
be combined.
How to recognize them?
If
no numbers
are present in the table under the header
Bit#
, the register or the
command value is defined as
a numerical value
.
For example, K90 is a parameter with 7 functions, each function corresponds to a different numerical value.
K
Name
Value
Bit#
Comment
K68
Encoder reading
way and force
reference inversion
1
2
4
0
1
2
Analog 1Vptp encoder reading way is inverted.
TTL encoder reading way is inverted.
Force reference from the Macro optional board is inverted
K
Name
Value
Comment
K90
Phasing mode
and
commutation
0
1
2
3
4
5
6
No phasing (with 1-ph. motor or EnDat 2.1 encoder)
Phasing by current pulses (ironcore motors only)
(DSCDL)
Phasing by constant current in the motor phases
Phasing with digital Hall effect sensor (mode 1)
(DSCDL)
Phasing with digital Hall effect sensor (mode 2)
(DSCDL)
Phasing and commutation with digital Hall effect sensor only
(DSCDL)
Small movement Phasing
Содержание DSC Series
Страница 2: ...THIS PAGE IS INTENTIONALLY LEFT BLANK ...