Step 3: Delete Old Motor Nameplate (If Available)

Overview

New motor data can only be programmed into a new axis if there are no other motor data. If there already are old motor types an axis, these data have to be deleted before programming the new data. To do so, use the function block MTP.FB_MotorDataDelete.

fbDeleteMotorData(
        i_ifDrive := i_Drive,
        i_xExecute := TRUE,
        i_etStorageLocation := MTP.ET_StorageLocation.Drive,
        i_xEnable := TRUE,
        q_xDone => xDeleteDone,
        q_etDiag => etDeleteError,
        q_etDiagExt => etDiagExt,
        q_sMsg => sDiagMsg);