I’m trying to use MpRecipeCsv to save permanent variables into a csv-file on a USB (FAT32), plugged in to the first USB port of the PLC. The issue is when I do Save=TRUE through the watch, the function block sets CommandBusy to TRUE but never goes to CommandDone = TRUE. It doesn’t give any information in the logger, it just goes on until I set everything to FALSE, and no CSV file is created.
It is more save to use the AsUSB library to detect and find the usb-stick and resulting path, which can be different depending on the type of the USB-stick.
I would double check the system logbook as there might be an error if it’s trying to create the \bd0 file device at boot if nothings connected. I also highly encourage the usage of AsUSb for usb stick MSD usage.
Another possible cause could be that MpRecipeRegParSync is used instead of MpRecipeRegPar.
In this case, the input ConfirmSave must be set, as soon as the output SaveNotification is pending.
I always recommend using the MpRecipeCsv.Active output as a conditional on the MpRecipeRegPar.Enable to make sure that the mpRecipeRegPar block doesn’t have any issue registering the parameters. Do you have any error numbers on the outputs or any messages in the logbook (mapp or Services logbook)?