In the early phases in the development of control unit software, the work is carried out in physical parameters irrespective of the implementation. Global physical data types (<sw-physic-types>) can be defined in the data dictionary to support this phase.
Reference can be made for the definition of variables (<sw-variable>) to the physical data types that are already available by referencing (<sw-physic-type-ref>).
There is however also the possibility of directly defining the physical data type for the variable (<sw-physic-type-1>). For further details, refer to Physical data types .
Figure 10: Physical data types
The following example demonstrates the definition of a physical data type:
<sw-physic-type> <long-name>Drehzahl</long-name> <short-name>n</short-name> <desc></desc> <sw-unit-ref>Umin</sw-unit-ref> <sw-limits> <phys><phys-min>0</phys-min><phys-max>8000</phys-max></phys> <coded><coded-min>0</coded-min><coded-max>256></coded-max></coded </sw-limits> <sw-resolution>20</sw-resolution> <sw-data-type-scaling>8bit</sw-data-type-scaling> <sw-variable-sample-rate>10</sw-variable-sample-rate> <sw-var-init-value>0</sw-var-init-value> <sw-var-not-av-value></sw-var-not-av-value> </sw-physic-type>