Andreik
Member
Good day,
I have a Stepper Motor with position feedback. It gives values from -2,147,483,648 to +2,147,483,647. I only need values from some -200 to +46,900. The problem occurs is when the feedback reaches +32767. Instead of an incrementing value, it goes immediately to -32768, -32767, -32766 instead of +32768, +32769 and so on.
This problem is solved when I use "Signed Double Integer (DINT)". The problem this time is when the value reaches (-). Instead of -1, -2, it gives me a value of +65535, +65534 and so on.
I don't know what to do converting these numbers and it confuses me a lot much more scaling them into measurement (mm). Someone please help me.
Thanks,
Andrei K.
I have a Stepper Motor with position feedback. It gives values from -2,147,483,648 to +2,147,483,647. I only need values from some -200 to +46,900. The problem occurs is when the feedback reaches +32767. Instead of an incrementing value, it goes immediately to -32768, -32767, -32766 instead of +32768, +32769 and so on.
This problem is solved when I use "Signed Double Integer (DINT)". The problem this time is when the value reaches (-). Instead of -1, -2, it gives me a value of +65535, +65534 and so on.
I don't know what to do converting these numbers and it confuses me a lot much more scaling them into measurement (mm). Someone please help me.
Thanks,
Andrei K.