| View previous topic :: View next topic |
| Author |
Message |
Demendia Junior

Joined: 25 Mar 2015 Posts: 1 Location: Ελλάδα
|
Posted: 02/06/2015 17:30 Post subject: Sick AFS60A with Profinet S7 1200 |
|
|
Hello to everyone.
I need to get the absolute value from a shaft with the encoder from the subject. I made the connection correct since i get the absolute value at my program.
I need to scale this value to 0-360. My application is setted to 1 encoder rotation 1 shaft rotation.
My problem is that everything i use to scale it gets me 0-360 to a small movement of the encoder shaft.
Anyone faced it before? |
|
| Back to top |
|
 |
vardar Member

Joined: 19 Oct 2014 Posts: 135
|
Posted: 02/06/2015 19:24 Post subject: Re: Sick AFS60A with Profinet S7 1200 |
|
|
| Demendia wrote: | Hello to everyone.
I need to get the absolute value from a shaft with the encoder from the subject. I made the connection correct since i get the absolute value at my program.
I need to scale this value to 0-360. My application is setted to 1 encoder rotation 1 shaft rotation.
My problem is that everything i use to scale it gets me 0-360 to a small movement of the encoder shaft.
Anyone faced it before? |
Here is a simple project which convert a Gray impulse encoder to a real value and degrees.
If you have the value just DIV with the Resolution of your Encoder and
MULtiply with 360 degrees and you'll get the result in degrees
http://www.datafilehost.com/d/b6aa3645
Project is with TIA V11. |
|
| Back to top |
|
 |
Demendia Junior

Joined: 25 Mar 2015 Posts: 1 Location: Ελλάδα
|
Posted: 02/06/2015 21:30 Post subject: Thanks |
|
|
Thanks for the fast answer.
Solved it. Had an address wrong.
Didn't need to use your code even if it was correct
Thanks anyway. |
|
| Back to top |
|
 |
|