03-07-2022 07:15 AM
Have you solved your problem?
03-07-2022 07:19 AM
Hi,
I've tried in seperate loops etc and the same thing happens. It seems to be motor 3 will only count when motor 1 counts.
03-07-2022 07:25 AM
Ok, Do you want to use 1,3 and 2,4 together?
03-07-2022 07:27 AM
Yes, but each motor uses seperate encoders.
Motor 1-=A/ENC (MXP A)
Motor 2 = B/ENC (MXP B)
Motor 3 = C/ENC0 (MXP A)
Motor 4 = C/ENC1 (MXP B)
03-07-2022 07:30 AM
Sorry but I don't understand your program logic. You have 4 motors and 4 encoders, right? When you use them separately, are they work well?
03-07-2022 07:32 AM
All three work well except Motor 3. I've attached the code so you can see the connection made to the motor adaptors
03-07-2022 07:36 AM
So when you try to use Motor 3 separately, its work wrong?
03-07-2022 07:38 AM
Yes, the count direction is always the wrong direction. It only changes when Motor 1 count direction changes, as shown from the attached photo.
03-07-2022 07:40 AM
I asked about using only motor 3 without others, is it work well?
03-07-2022 07:43 AM
And do you use the same motors and adapters for MyRIO?