Hello,
The DMM4040 is an obsolete and unsupported DMM so the amount of support I am able to give is very limited. I did manage to find the programmers manual found below here, start on page 31 for all accepted SCPI commands.
DMM4040 and DMM4050 | Tektronix