×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Analog Output Scaling - Beckhoff

Analog Output Scaling - Beckhoff

Analog Output Scaling - Beckhoff

(OP)
Hi.

I have an application where I going to control a servo motor. The input to servo motor driver card is +-10V. So I have a +-10V output card in my Beckhoff CX1030 controller.

The position of the servo is +-30degree, hence +-10V is +-30degree. The speed of the servo is given by frequency of signal. So im planning to use a triangular signal generator.

The position feedback signal is +-3V. I will make a simple closed loop to position the servo. I know how to make the input scaling, but not the output scaling..

So my question is:
How to scale the output signal. My setpoint value is in degree. If I set 30 degree, then I like 10V. If I set -10degree, then I want output to be -3,33V.

How to make this scaling function in code?

Thanks!

Best Regards

Hans Pettersson
 

RE: Analog Output Scaling - Beckhoff

Typical scaling formulas:
For analog inputs:
Eng_Out = (Raw_In-Min_Raw)*((Max_Eng-Min_Eng)/(Max_Raw-Min_Raw))+Eng_Min

For analog outputs:
Raw_Out = (Eng_In-Min_Eng)*((Max_Raw-Min_Raw)/(Max_Eng-Min_Eng))+Min_Raw

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources