<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to AXIS_REF_SM3 Error Codes?</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/c3b3151e93/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/c3b3151e93/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/c3b3151e93/</id><updated>2025-09-24T11:18:06.106000Z</updated><subtitle>Recent posts to AXIS_REF_SM3 Error Codes?</subtitle><entry><title>AXIS_REF_SM3 Error Codes?</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/c3b3151e93/?limit=25#2005" rel="alternate"/><published>2025-09-24T11:18:06.106000Z</published><updated>2025-09-24T11:18:06.106000Z</updated><author><name>gseidel</name><uri>https://forge.codesys.com/u/gseidel/</uri></author><id>https://forge.codesys.comdee9ca05c4b6cb8d41cedff23468de4b2db5a760</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi SLUCodesys,&lt;/p&gt;
&lt;p&gt;dwErrorId is a drive specific error number. The drive documentation should be consulted to interpret it. (Note that you should use MC_ReadAxisError to read this error, see &lt;a href="https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Diagnostics/MC_ReadAxisError.html." rel="nofollow"&gt;https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Diagnostics/MC_ReadAxisError.html.&lt;/a&gt; Accessing the internal variable will result in outdated values if the acis error is not mapped by PDO and is not recommended in general.)&lt;/p&gt;
&lt;p&gt;uiDriveInterfaceError holds errors of the SoftMotion driver for the drive. It is also an internal variable, not intended for direct access. It is intended for logging, the PLC log will contain the drive interface error, consisting of this number and an error text.&lt;/p&gt;
&lt;p&gt;My recommendation for handling axis errors in the CODESYS application:&lt;br/&gt;
   1) Use MC_ReadStatus on the axis to find out whether it is in state Errorstop&lt;br/&gt;
   2) If in Errorstop, there are two possibilities: an error reported by the drive (MC_ReadAxisError) or an error of the SoftMotion function blocks (output MC_ReadStatus.FBErrorOccured).&lt;br/&gt;
   3) If there is no drive error, you can use SMC_ReadFBError &lt;a href="https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Diagnostics/FBError/SMC_ReadFBError.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Diagnostics/FBError/SMC_ReadFBError.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>AXIS_REF_SM3 Error Codes?</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/c3b3151e93/?limit=25#1955" rel="alternate"/><published>2025-09-22T20:54:10.812000Z</published><updated>2025-09-22T20:54:10.812000Z</updated><author><name>SLUCodesys</name><uri>https://forge.codesys.com/u/bmatlove/</uri></author><id>https://forge.codesys.comb74402d6cd2cbfc5ec452ea4001b84e7cc4c59b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying to firm up alarming of axis faults. Declutter the code and figure out what's what.&lt;br/&gt;
Diving into it, I see the AXIS_REF_SM3 function block provides uiDriveInterfaceError and dwErrorId, but I can't find any significance of these further than &lt;em&gt;Drive interface error number Parameter number: 1014&lt;/em&gt; and &lt;em&gt;Drive specific error identifier, parameter number: 1031&lt;/em&gt;, respectively.&lt;br/&gt;
Is there some corresponding appendix I could use to decode these?&lt;/p&gt;
&lt;p&gt;Also, is there any relation to the Error ID (of type SMC_Error) of the MC POUs? MC_Jog, MC_Reset, MC_MoveRelative, etc? If so, are the above errors redundant?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>