Step 4: Writing Motor Data Files
|
|
|
UNINTENDED BEHAVIOR OF THE MOTOR; INCORRECT MOTOR NAMEPLATE DATA INFLUENCES THE CONTROLLER BEHAVIOR DIRECTLY. |
|
oVerify assignment of motor data to the motor before writing. oThis function may only be used by technically qualified personnel, who are capable of recognizing the meaning of the motor data. oEnsure that no one is in the operating zone during the startup. |
|
Failure to follow these instructions will result in death or serious injury. |
|
|
|
FIRE HAZARD DUE TO OVERHEATING OF THE MOTOR; MONITORING FUNCTION DEACTIVATED! |
|
oVerify assignment of motor data to the motor before writing. oThis function may only be used by technically qualified personnel, who are capable of recognizing the meaning of the motor data. oUse appropriate methods to verify thermal overload of the motor. oEnsure that no one is in the operating zone during the startup. |
|
Failure to follow these instructions will result in death or serious injury. |
Next, the motor data file has to be written into the corresponding axis.
For this, the function block FB_MotorDataWrite is used. As inputs it expects the selected axis, the file name of the motor data file and the storage location in the drive. Either the servo amplifier itself (drive) or the encoder EEPROM (encoder) can be selected as storage location. Since there is no encoder in this example, Drive is selected as storage location.
NOTE: If the storage location MTP.ET_StorageLocation.Drive is selected, the motor data are saved in the servo amplifier. This means that the motor data has to be rewritten when replacing the servo amplifier.
The following prerequisites must be fulfilled to write the motor data into the selected axis:
oThe Sercos communication bus must be in phase 2 (SERCOSIII.State =2).
oNo old motor data may be saved in the selected storage location. First, old data must be deleted (FB_MotorDataDelete).
fbWriteMotorData(
i_ifDrive := i_Drive,
i_sFilename := sUserMotorTypePlateFile,
i_xExecute := TRUE,
i_etStorageLocation := MTP.ET_StorageLocation.Drive
i_xEnable := TRUE,
q_xDone => xWriteDone,
q_etDiag => etWriteError,
q_etDiagExt => etDiagExt,
q_sMsg => sDiagMsg);
NOTE: Only when the motor nameplate is programmed correctly, it is possible to set the Sercos into phase 4. Otherwise the diagnostic message 8508 Sercos run-up not possible is triggered.