MC_READAXISERROR
(Original Document)
Function Description
The MC_READAXISERROR function is used to recover system errors.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD Axis
CAL MC_READAXISERROR_Instance(AXIS:=AXIS, ENABLE:=ENB, ERROR=>ERR, VALID=>DO, BUSY=>B, ERRORID=>ERRID, AXISFAULT=>AXFLT, AXISFAULTID=>AXFLTID, AXISDIAG=>AXDIAG, AXISDIAGID=>AXDIAGID, AXISWARNING=>AXWARN, AXISWARNINGID=>AXWARNID, AXISERRORID=>AXERRID, MSGERRORID=>MSGERRORID)
Representation in ST
Representation:
MC_READAXISERROR_Instance(AXIS:=AXIS, ENABLE:=ENB, ERROR=>ERR, VALID=>DO, BUSY=>B, ERRORID=>ERRID, AXISFAULT=>AXFLT, AXISFAULTID=>AXFLTID, AXISDIAG=>AXDIAG, AXISDIAGID=>AXDIAGID, AXISWARNING=>AXWARN, AXISWARNINGID=>AXWARNID, AXISERRORID=>AXERRID, MSGERRORID=>MSGERRORID);
Description of the Output Parameters
The following table describes the output parameters that are in addition to the basic parameters:
Parameter
Type
Comment
AXISFAULT
Drive error.
AXISFAULTID
Drive error value.
AXISDIAG
  • Premium: Copy of the CPP110 diagnostic bit for the slave.
  • M340: Copy of the SLAVE_EMCY bit for the slave.
  • M580: Copy of the SLAVE_LIVE bit for the slave.
AXISDIAGID
AxisDiag value.
AXISWARNING
Drive warning.
AXISWARNINGID
Drive warning value.
AXISERRORID
MFB error number latching.
MSGERRORID
Error latching by messaging.
Error Codes
The following table shows the list of diagnostic objects and the corresponding values according to the drive types:
ATV31
ATV71
Lexium 15MP/HP
Lexium 05 / Lexium 32
Icla
Lexium 15LP
AXISFAULTID
LFT 2029:16
LFT 2029:16
ERRCODE 2070:16
SignLatched 301C:8
FaulSig_SR 301C:12
ERRCODE 385D:01
AXISWARNINGID
-
LRS6 2002:38
1002:00
WarnLatched 301C:0C
WarnSig 301C:A
1002:00
AXISDIAGID
ERRD 603F:0
ERRD 603F:0
1003:01
StopFault 603F:0
StopFault 3020:7
1003:01
NOTE: Refer to the CANopen device documentation to identify the meaning of the code.
Special feature: The Lexium 15MP ERRCODE refers to the ASCII object documentation of the Lexium.
Diagnostic
The table below describes a procedure to diagnose the behavior following the execution of an MFB. The Lexium 15MP is the device used in this example.
Step
Action
1
The AXISFAULT output parameter equals 1.
The AXISFAULTID output parameter displays an error code value.
The graph below shows how the diagnostic is given in this example through the code values:
2
Refer to the ASCII object documentation of the Lexium 15MP, and look for the ASCII ERRCODE 2070:16.
3
In the ASCII documentation, the value 16#0080 (128 in decimal) for ERRCODE designates an overspeed.
4
Correct the speed constants.
5
Execute the MC_RESET block