AutomationDirect Technical Support
AutomationDirect | Direct Sales in US and Canada | 1-800-633-0405

DL06 Frequently Asked Questions AutomationDirect Logo


Question

Which formula do I use to scale an analog input if my engineering unit does not start at 0?

Answer

Click here for scaling formula.

a. When using BCD or Binary data types, you will lose resolution since you cannot use the fractional values. You can multiply the engineering min and max values by a factor of 10 or 100 to accommodate for this to a certain extent. For example, if your engineering range is 0 to 100, use 0 to 10000.
b. If you are dealing with negative values in DirectLogic PLCs, it will be easier if you use floating point data type.
c. Ladder example using IBOX to scale -10 deg C to 60 deg C, where V2000 is the raw count (0 to 4095):

Click here for scaling example using IBOXs.



FAQ Subcategory: CPU & Programming

This item was last updated on 2009-03-23
Document ID: 1182


The information provided in the AutomationDirect knowledge base is provided "as is" without warranty of any kind. AutomationDirect disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall AutomationDirect or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if AutomationDirect or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion of limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.


Copyright © 1999- AutomationDirect.com. ALL RIGHTS RESERVED