132 Virtual Channels
imc CANSAS Users Manual - Doc. Version 1.9 - 05.12.2014© 2014 imc Meßsysteme GmbH
4.3 Data formats
The imc CANSAS-module supports the following data formats:
-32767 ... +32767 or
8001h ... 7FFFh
Unsigned integer data
format
0 ... +65535 or
0h ... FFFFh
-2147483647 ... +2147483647 or
80000001h .... 7FFFFFFFh
Channels with Digital data format return only the values 1 (TRUE) or 0 (FALSE). The scaling offset and
factor are 1,0 and 0,0, respectively.
Channels with Integer data format return integers as complements on two in the range from 8001h
(corresponding to -32767) to 7FFFh (corresponding to 32767). The numerical range is symmetrical. The
value 8000h (corresponding to -32768) isn't used. Each channel has its own scaling factor and offset. The
integer values are multiplied with the factor and the offset is added to the product. This transformation
yields real numbers in the desired numerical range.
Channels with Unsigned integer data format return integers in the range from 0h (corresponding to 0) to
FFFFh (corresponding to 65535). Each channel has its own scaling factor and offset. The integer values
are multiplied with the factor and the offset is added to the product. This transformation yields real
numbers in the desired numerical range.
Channels with Long data format return integers in the range from 80000001h (corresponding to
2147483647) to 7FFFFFFFh (corresponding to 2147483647). Each channel has its own scaling factor and
offset. This numerical format is only used by the incremental encoder module (totalizing events).
Channels with Real data format return real numbers in the range from -1,0E28 to 1,0E28. The numerical
values have already been corrected with the scaling factor and offset. To transform a channel in Integer
format to Real data format, the function "ToFloat" is available (see also "Conversion To Float " in the
function reference). The Float-format as per IEEE is used. The results of calculational functions can be
transformed to real numbers and transmitted on the CAN-bus. However, channels in Real data format
cannot be subjected to calculational operations. Channels in Digital or Integer format can be subjected to
appropriate calculational operations.
153