Variables are listed in <sw-function-variables> that are read or manipulated by the software function. The actual variable description thereby is to be found in the data dictionary (<sw-variables>); references are given here. A distinction is made for the variables between the definition for variables and access to the variable.
If a function defines a variable, i.e. provides a variable or the value for this, then this shall be itemized in <sw-function-export-variables>.
Variables are listed in <sw-function-import-variables>) that are imported or defined by other variables. <sw-function-local-variables> establishes that this is not a transfer variable but rather that a local variable is concerned here.
Variables are listed in <sw-function-modelonly-variables> that exist only in the model (e.g. for simplification of the documentation). These do not appear during implementation in the control unit.
A distinction is made with regard to accessing variables between reading (<sw-variable-read>), writing (<sw-variables-write>) and reading-writing (<sw-variables-readwrite>).
The use of variable and parameters in functions in the following example.
<sw-function-spec> <sw-functions> <sw-function> <long-name></long-name> <short-name>test</short-name> <sw-function-class></sw-function-class> <sw-function-variants> <sw-function-variant> <sw-function-variables> <sw-function-export-variables> <sw-function-variables-readwrite> <sw-variable-ref>TMOT</sw-variable-ref> </sw-function-variables-readwrite> </sw-function-export-variables> <sw-function-import-variables> <sw-function-variables-read> <sw-variable-ref>TL</sw-variable-ref> </sw-function-variables-read> </sw-function-import-variables> <sw-function-local-variables> <sw-function-variables-readwrite> <sw-variable-ref>NDEL</sw-variable-ref> </sw-function-variables-readwrite> </sw-function-local-variables> <sw-function-modelonly-variables> <sw-variable-ref>Tloc</sw-variable-ref> </sw-function-modelonly-variables> <sw-param-refs> <sw-param-ref >FAGRM</sw-param-ref> <sw-param-ref >KFAGR</sw-param-ref> <sw-param-ref owns="noown">kgr_a</sw-param-ref> <sw-param-ref owns="noown">KWBLOCK1</sw-param-ref> <sw-param-ref owns="noown">N40_KR</sw-param-ref> </sw-param-refs> </sw-function-variant> </sw-function-variants> </sw-function> </sw-functions>