During the programming of the TMC5130 I have noticed a strange behavior:
1.) Long step 102400 (full rotation), 2.) Short step 25600 ( ¼ rotation)
The short step starts with the small movement in the opposite direction!
Code: Select all
long Rail::moveStep(long targetPosition)
{
tmcSendData(0xAD,targetPosition); //XTARGET
tmcSendData(0x21,0x00000000);
delay(100);
tmcSendData(0xA1,0x00000000); //XACTUAL=0
}
1) Long step, 2.) Long step
1.) Short step, 2.) Short step
1.) Long step, 2.) -Long step
1.) Short step, 2.) –Short step
1.) Long step, 2.) –Short step
BTW, my controller looks as follows:
https://www.photomacrography.net/forum/ ... highlight=
BR, ADi