Here is some logic from a program which uses DL40. It is setup using the bit trigger mode, which means you set a bit and it will display the message associated with that bit. The messages reside in the DL40 as well as the mode the DL40 is set up to use.
There are some other modes besides bit trigger, but I think bit trigger is about the easiest to use.