Output

The unit table contains the look-up value.
Figure 1. Output from Function Code 7 (Convert Device Type to Look-up Value)
iea99g9b

The conversion of the device type to a look-up value is done in place. There is no error checking of the device type.

Register 15 contains one of the following return codes:
Code
Meaning
0
Processing is successful.
4
The input device type is not valid; no look-up value is returned.
28
The required input is not specified or is not valid.