plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sick AFS60A with Profinet S7 1200

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIMATIC Automation Systems -Reg.U
View previous topic :: View next topic  
Author Message
Demendia
Junior
Junior


Joined: 25 Mar 2015
Posts: 1
Location: Ελλάδα

PostPosted: 02/06/2015 17:30    Post subject: Sick AFS60A with Profinet S7 1200 Reply with quote

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
View user's profile Send private message
vardar
Member
Member


Joined: 19 Oct 2014
Posts: 135

PostPosted: 02/06/2015 19:24    Post subject: Re: Sick AFS60A with Profinet S7 1200 Reply with quote

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

Sick AFS60A with Profinet S7 1200 Re: Sick AFS60A with Profinet S7 1200
http://www.datafilehost.com/d/b6aa3645

Project is with TIA V11.
Back to top
View user's profile Send private message
Demendia
Junior
Junior


Joined: 25 Mar 2015
Posts: 1
Location: Ελλάδα

PostPosted: 02/06/2015 21:30    Post subject: Thanks Reply with quote

Thanks for the fast answer.

Solved it. Had an address wrong.

Didn't need to use your code even if it was correct Smile

Thanks anyway.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIMATIC Automation Systems -Reg.U All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro