Short guide to commissioning
If an EL40xx is built into the TwinCAT configuration, the possible output channels appear depending on the terminal, e.g. in this case the EL4038:

In the case of the EL4038, 8 sets of real-time process data exist (red), one for each output channel.
The channel variables "Analog output" are of the type INT, i.e. 16-bit with sign, including in the case of the unipolar output terminals 0…10 V, 0/4…20 mA.

The channel variables must be linked with the corresponding variables on the program side for operation. Linked variables are marked by an arrow (see figure below).

Once this has taken place and the TwinCAT configuration is activated, the EL40xx already electrically outputs the corresponding analog values.
The output is then cyclically written from the controller, here for example with a voltage ramp for testing:

The basic commissioning is thus completed.