
EtherCAT interface
Leuze electronic
AMS 338
i
63
TNT
35/7-2
4
V
9.7.6.6
Object 2020
h
Velocity
Outputs the current velocity with the configured resolution. The unit (metric or inch) is set
in object 2000 sub-index 02 and also applies to the velocity. If no change is made in
object 2000 sub-index 02, the AMS 338
i
uses the metric default setting.
The sign of the velocity is dependent on the count direction in object 2000 sub-index 04.
In the default setting a positive velocity is output when the reflector moves away from the
AMS 338
i
. When the reflector moves towards the AMS 338
i
, negative velocities are output.
If the "negative" count direction is configured in object 2000 sub-index 04, the velocity signs
are reversed.
The integration time for the velocity averages all velocity values calculated during the
selected period to yield a velocity value. This average velocity value is output via the inter-
face.
The velocity value is mapped into process data objects 1A02
h
and 1A03
h
.
Sub-index 01
The current velocity output occurs with the configured resolution. The unit (metric or inch)
is set in object 2000 sub-index 02 and also applies to the velocity.
Index
Sub-
index
Name
Data type
Access
Value range
Remark
(hex)
(hex)
Minimum
Maximum
Default
2020
01
Velocity res-
olution
u8
rw
1
5
1
Value 1: = 1
Value 2: = 10
Value 3: = 100
Value 4: = 1000
Value 5 = free reso-
lution
02
Integration
time velocity
u8
rw
0
6
3
Unit ms
Value 0: = 2
Value 1: = 4
Value 2: = 8
Value 3: = 16
Value 4: = 32
Value 5: = 64
Value 6: = 128
03
Free resolu-
tion velocity
u16
rw
5
50000
1000
The configured
value is multiplied
by
mm/1000/s or in/
100000/s.
04
Velocity
value
int 32
ro
-999999
999999
--
see below