# Motor Control Torque Mode issue

**URL:** https://community.simplefoc.com/t/motor-control-torque-mode-issue/5455
**Category:** hardware support
**Tags:** maxon-motor, teensy
**Created:** [September 12, 2024, 11:44pm UTC](https://community.simplefoc.com/t/motor-control-torque-mode-issue/5455 "2024-09-12T23:44:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hyalinr](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/h/d2c977/32.png) [@hyalinr](https://community.simplefoc.com/u/hyalinr)
#### Post date: [September 12, 2024, 11:44pm UTC](https://community.simplefoc.com/t/motor-control-torque-mode-issue/5455/1 "2024-09-12T23:44:01Z")

</div>

Hello,

I’ve been working with SimpleFOC shield V2.0.4 recently and got into trouble with torque control of the motor under FOC\_current mode. So far as I understand (correct me if I’m wrong), the move(a) function under this mode sets the q-axis current setpoint in amps. However, when I set the current setpoint to 500mA, i.e. move(0.5); and monitored the actual Q-axis current using motor.monitor(), the q-axis current readout is 100-200mA. I tried to tune the PID gains for both the D and Q axis, but none helped. What could be the possible reason for that behavior?

The setup I’m using is :  
MCU: Teensy4.1  
Motor: Maxon ECX Torque 22XL with 4 pole pairs running @ 24Volts  
Encoder : AS5047P

---

<div class="post-metadata">

### Author: ![wrcman555](https://community.simplefoc.com/user_avatar/community.simplefoc.com/wrcman555/32/2273_2.png) [@wrcman555](https://community.simplefoc.com/u/wrcman555)
#### Post date: [September 13, 2024, 7:50pm UTC](https://community.simplefoc.com/t/motor-control-torque-mode-issue/5455/2 "2024-09-13T19:50:39Z")

</div>

When you measured the current, was the motor spinning? You will only see the Iq value reach the setpoint if the load is high enough. Try stalking it and see what the current reaches.
