8 SmartWire-DT
8.9 Programming
202 DS7 Soft starter 09/16 MN03901001Z-EN www.eaton.com
8.9.7 Data types
There are special data types defined for PROFIdrive communications:
PROFIdrive-specific and standard data types.
8.9.7.1 PROFIdrive specific
TimeDifference (13
dec
)
The value used by the DS7-SWD soft starter for TimeDifference is stored in
the Sampling Time (PNU 962) parameter.
Example:
100 ms = 4971
dec
= 136B
hex
86400000 ms (= 1 day) = 4294967295
dec
= FFFFFFFF
hex
Normalised value: N2
N2 is a normalized value for relative scaling. N2 falls within a range of -200 %
to +200 %.
Conversion examples:
Without a sign bit:
0
dec
= 0x0000
hex
≙ 0%
1
dec
= 0x0001
hex
≙ 0.0061 %
16384
dec
= 0x4000
hex
≙ 100 %
32767
dec
= 0x7FFF
hex
≙ 199.99 %
With a sign bit (bit 15):
-1
dec
= 0xFFF
hex
≙ -0.0061 %
-16384
dec
= 0xC000
hex
≙ -100 %
-32768
dec
= 0x8000
hex
≙ -200 %
For coding, the most significant bit (MSB) comes directly after the SN bit
(sign bit) in the first octet.
• SN = 0: Positive numbers, including zero
• SN = 1: Negative numbers
Data type Code
(dec)
Code
(hex)
Bytes Value range Resolution
TimeDifference 13 D 2 0 ≦ i ≦ 4294967295 2
-31
≙ 0.021 ms
Data type
Code
(dec)
Code
(hex)
Bytes Value range Resolution
N2 Normalized
value (16 Bit)
113 71 2 -200 % ≦ i ≦ (200 - 2
-14
) % 2
-14
≙ 0.0061 %