M600 - ThomasToka/MarlinFirmware GitHub Wiki
As of v021 the firmwares are capable of initiating a filament runout on demand when printing from sd card.
On print start the icon will be activated on the main site and you can force a filament runout whenever you want.
To slice a filament runout / filament change for example in Cura 5.5 these settings are needed: