The diagram only shows the correct format for the commands 0 to 255, and Direct Arc Power, which are the most common commands to use once a system has been commissioned (short addresses assigned).
The commands above 255 do not use the format where the first byte is the address, instead the first byte is the command. Most of these commands are not addressed ie they are broadcast: received by all control gear. Notice that the Y bit is 1 in these commands. A few of them have the address in the second byte. Unfortunately DALI is not consistent in this respect.
Eg Commands 267 and 268 Program Short Address and Verify Short Address use the second byte, but the address is left shifted one place. The Search Address commands use the second byte for the search address which is 24 bits so is sent as High, Mid and Low bytes.
These can be distinguished from commands 0-255 by the fact that their "A" bits, the middle 6 bits of the first byte, are not valid address formats. Recall that the valid address formats are:
Short Address 0 to 63: 0AAAAAAS
Group Address 0-15: 100AAAAS
Broadcast: 1111111S
Therefore if the first byte starts 101... or 110... it must be a command above 255.
This applies to all device types.