Sign in to follow this  
Followers 0
Milosh

APR function - help

1 post in this topic

Hi all...

I want to scale data from analog input which I defined as

Name: _LEVEL

Type: CHANNEL

I defined also next D words

D10000 - ParamControlWordLevel    UINT

D10001 - ParamAnalogLowLevel    INT

D10003 - ParamOutLowLevel    REAL

D10005 - ParamAnalogHighLevel    INT

D10007 - ParamOutHighLevel     REAL

Scaled variable is MeasureLevel REAL  W20

I have set on PLC first cycle ParamControlWord=#0201, use floating point  with one linear segment, ParamAnalogLowLevel=#0000, ParamAnalogHighLevel=#4000 (current input).

ParamOutLowLevel and ParamOutHighLevel sets administrator from touch panel.

APR Call parameters are 1. Control word = ParamControlWord 2. Source = _LEVEL 3.Result = MeasureLevel

Is this good configuration?

What if I have something in Source word (etc. #1160), but Result is zero (+0.0).

 

Best regards,

Milos

 

 

Edited by Milosh

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0