cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, I am using L6474 drive to drive the stepper motor and I am having issues as mentioned below.

MYadw.1
Associate II

Hello,

I am using L6474 drive to drive the stepper motor and I am having issues as mentioned below.

In status register the UVLO,TH_WRN,TH_SD and OCD flags are active low as mentioned in data sheet. 

In this the UVLO flag is set by undervoltage lockout or reset events (includes power on). So, when I read the status register the UVLO flag is always setting i.e. 0 is this the error occurred due to undervoltage only and whether it resets when I read status register ?

The NOTPERF_CMD and WRONG_CMD are always high. Why it is not resetting when I read the status register ?

7 REPLIES 7
Cristiana SCARAMEL
ST Employee

Hi @Community member​,

The GetStatus command returns the current Status register value and then resets the STATUS register warning flags.

To read the STATUS register reset you must send a second GetStatus command.

If you feel a post has answered your question, please click "Accept as Solution"

Hi @Cristiana SCARAMEL​ 

In both the cases it is showing the same value.

And I am getting the UVLO error continuously after giving proper voltage also.

Hi @Community member​,

During power-up the device is under reset until the following conditions are satisfied:

  • VS is greater than VSthOn (8.2 typ.)
  • VREG is greater than VREGth (2.8 V typ.)
  • Internal oscillator is operative

Are you sure all three conditions are met?

If you feel a post has answered your question, please click "Accept as Solution"

Hi @Cristiana SCARAMEL​ 

We attached a PIC of drive error which is getting please find it below.

As You mentioned we checked the above three points are coming correctly.

  1. Oscillator output is getting 2 MHz clock.
  2. VREG is Getting 3 Vdc.
  3. VS is 24V.

We are able to rotate the motor with drive but we are getting that error continuously.

We have enabled only four errors in Alarm_EN register.

  1. Over current.
  2. Thermal Shutdown.
  3. Thermal Warning.
  4. Under voltage.

0693W00000FAAjfQAH.jpg 

Hi @Cristiana SCARAMEL​ 

We are waiting for the response.

Thank You

Hi @Community member​,

please share the SDI and SDO waveforms when you send the GetStatus command and the returned status register value.

Also, did you configure the L6474 parameters of the control system properly?

You can refer to the Application Notes AN4158 for the driver parameters setup.

If you feel a post has answered your question, please click "Accept as Solution"

Hi @Community member​ any updates about you communication issue?

If you feel a post has answered your question, please click "Accept as Solution"