Hi Stefan,
when trying to use the fdrawcmd format_n_write command it gives an IO error and does not write the data. Reading the FDC data sheet did not reveal any hints either.
Attached is a sample script that shows how I use the format_n_write command. When the variable format_n_write is set to 0 the script also uses the more common way of formatting and then writing a track, which works without problems.
No answer, I'm afraid, but you may have more replies from the list if you cut your example down to ‘This fdrawcmd works, this one doesn't’ rather than have the list's (busy) subscribers have to step through the script's workings.