E_FwUpdateState

E_FwUpdateState describes the state of the firmware update.

 

TYPE E_SoE_CmdState :(
   (* update states *)
   eFwU_NoError := 0,
   eFwU_CheckCfgIdentity,
   eFwU_CheckSlaveCount,
   eFwU_CheckFindSlavePos,
   eFwU_WaitForScan,
   eFwU_ScanningSlaves,
   eFwU_CheckScannedIdentity,
   eFwU_CheckScannedFirmware,
   eFwU_FindFirmwareFile,
   eFwU_WaitForUpdate,
   eFwU_WaitForSlaveState,
   eFwU_StartFwUpdate,
   eFwU_FwUpdateInProgress,
   eFwU_FwUpdateDone,
   eFwU_NoFwUpdateRequired,

   (* not updating via this channel *)
   eFwU_UpdateViaOtherChannelActive,
   eFwU_UpdatedViaOtherChannel,

   (* error states *)
   eFwU_GetSlaveIdentityError     := -1,
   eFwU_GetSlaveCountError        := -2,
   eFwU_GetSlaveAddrError         := -3,
   eFwU_StartScanError        := -4,
   eFwU_ScanStateError        := -5,
   eFwU_ScanIdentityError         := -6,
   eFwU_GetSlaveStateError        := -7,
   eFwU_ScanFirmwareError         := -8,
   eFwU_FindFileError         := -9,
   eFwU_CfgTypeInNoAX5xxx         := -10,
   eFwU_ScannedTypeInNoAX5xxx     := -11,
   eFwU_ChannelMismatch           := -12,
   eFwU_ChannelMismatch_1Cfg_2Scanned := -13,
   eFwU_ChannelMismatch_2Cfg_1Scanned := -14,
   eFwU_CurrentMismatch           := -15,
   eFwU_FwUpdateError         := -16,
   eFwU_ReqSlaveStateError        := -17    
);
END_TYPE
Update status

Parameter

Description

eFwU_NoError

initial state

eFwU_CheckCfgIdentity

reading of the configured slave type (number of channels, current, revision)

eFwU_CheckSlaveCount

get configured number of slaves

eFwU_CheckFindSlavePos

search slave address in the master object directory

eFwU_WaitForScan

wait for online scan

eFwU_ScanningSlaves

online scan of slaves

eFwU_CheckScannedIdentity

reading of scanned slave types (number of channels, current, revision)

eFwU_CheckScannedFirmware

get firmware version of the drive

eFwU_FindFirmwareFile

search for firmware file

eFwU_WaitForUpdate

wait for updates (short delay before the update)

eFwU_WaitForSlaveState

get EtherCAT slave state

eFwU_StartFwUpdate

Start firmware update

eFwU_FwUpdateInProgress

firmware update active

eFwU_FwUpdateDone

firmware update succeeded

eFwU_NoFwUpdateRequired

no firmware update required

eFwU_UpdateViaOtherChannelActive

Update via the other drive channel active

eFwU_UpdatedViaOtherChannel

Updated via the other drive channel

eFwU_GetSlaveIdentityError

reading of the configured slave type failed, see iAdsErrId

eFwU_GetSlaveCountError

get configured amount of slaves failed, see iAdsErrId

eFwU_GetSlaveAddrError

search slave address in the master object directory failed, see iAdsErrId

Update errors

Parameter

Description

eFwU_StartScanError

start of online scan of slaves failed, see iAdsErrId

eFwU_ScanStateError

online scan failed, see iAdsErrId

eFwU_ScanIdentityError

reading of scanned slave types (number of channels, current, revision) failed, see iAdsErrId

eFwU_GetSlaveStateError

get EtherCAT slave state failed, see iAdsErrId

eFwU_ScanFirmwareError

get firmware version of the drive failed, see iAdsErrId + iSercosErrId

eFwU_FindFileError

search for firmware file failed, see iAdsErrId

eFwU_CfgTypeInNoAX5xxx

the configured slave is not an AX5000

eFwU_ScannedTypeInNoAX5xxx

the scanned slave is not an AX5000

eFwU_ChannelMismatch

The amoutn of configured and scanned channels of the AX5000 do not match

eFwU_ChannelMismatch_1Cfg_2Scanned

one channel device configured but two channel device found

eFwU_ChannelMismatch_2Cfg_1Scanned

two channel device configured but one channel device found

eFwU_CurrentMismatch

current of the AX5000 type does not match, i.e. AX5103 (3A) configured but AX5106 (6A) found

eFwU_FwUpdateError

general update error, see iAdsErrId

eFwU_ReqSlaveStateError

switching to requested EtherCAT state failed, see iAdsErrId