Navigation

Rating (1)

Thanks 0

- Actions
- New post

6/17/2019 6:06 AM | |

Joined: 1/17/2013 Last visit: 7/23/2019 Posts: 327 Rating: (0) |
Dear Experts I use SIMOTION D425-2PN/DP I need to scaling any value to 4-20mA analog output. I can't find scale and unscale blocks. How can I find scale and unscale blocks or How can I scale out my input value to 4-20mA ? Best Refards, Vorapob |

6/17/2019 6:55 PM | |

Joined: 6/9/2014 Last visit: 7/18/2019 Posts: 118 Rating: (10) |
Here is how you would figure this out, for any analog scaling. Refer to the manual of the Analog I/O you are using. They all describe what bit values correspond to the voltage or current on the physical terminal. For example in a table in the documentation, hexadecimal 16#0000 might be 0 mA, and 16#7FF0 might be 20 mA. But this varies depending on what you have. From that point, you can write code using subtraction, multiplication, and addition to come up with a conversion. This is just basic programming and math. The mathematical function you're seeking is called "Linear Interpolation". |

6/18/2019 4:19 AM | |

Joined: 1/17/2013 Last visit: 7/23/2019 Posts: 327 Rating: (0) |
Dear Joeman, Thank you for your suggestion. Best Regards, Vorapob |

## Follow us on