6/17/2019 6:06 AM  
Joined: 1/17/2013 Last visit: 10/6/2022 Posts: 917 Rating: (4) 
Dear Experts I use SIMOTION D4252PN/DP I need to scaling any value to 420mA 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 420mA ? Best Refards, Vorapob 
Best Regards, 

6/17/2019 6:55 PM  
Posts: 125 Rating: (11) 
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: 10/6/2022 Posts: 917 Rating: (4) 
Dear Joeman, Thank you for your suggestion. Best Regards, Vorapob 
Best Regards, 

Follow us on