Math Functions on MPC20

Discuss issues and ideas you have to configuring displays with PowerVision
slopez_22
Posts: 3
Joined: Wed Jun 03, 2015 4:43 pm

Math Functions on MPC20

Post by slopez_22 » Mon Feb 13, 2017 11:10 am

Hi,

PowerVision 2.8.10546 - Window 7 Professional 64bits

How can I have access to math functions such as sqrt, sin or cos for the MPC20 configurations? They are available on the PVs Standar configs, is there a way to "unlock" them or add them? Thanks for the response

SL
Sebastian Lopez
Design Engineer
ETec S.A.
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Math Functions on MPC20

Post by boyce » Mon Feb 13, 2017 2:15 pm

The Programming Manager said that those math functions were omitted because the CPU does not have floating point support. The software emulation for those math functions was not acceptable on this platform.

They actually use a lookup table to draw the circle for the gauge.
Boyce Schrack
Enovation Controls
slopez_22
Posts: 3
Joined: Wed Jun 03, 2015 4:43 pm

Re: Math Functions on MPC20

Post by slopez_22 » Mon Feb 13, 2017 3:44 pm

Hi boyce,

What I need is to use a trigonometric function in a Calculation Event, and the result will be presented on a text gauge. Can those look up tables be used for this?

Thanks
Sebastian Lopez
Design Engineer
ETec S.A.
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Math Functions on MPC20

Post by boyce » Mon Feb 13, 2017 4:43 pm

There is no way to access the lookup tables for use in a calculation event. The tables do not give high precision results so their accuracy may not be what you would require. Sorry, but there is no support for the sqrt and trig functions on this platform.
Boyce Schrack
Enovation Controls
slopez_22
Posts: 3
Joined: Wed Jun 03, 2015 4:43 pm

Re: Math Functions on MPC20

Post by slopez_22 » Wed Feb 15, 2017 4:20 pm

Does this also apply to the MPC-20R2? since this version should have a more powerfull CPU.
Sebastian Lopez
Design Engineer
ETec S.A.
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Math Functions on MPC20

Post by boyce » Thu Feb 16, 2017 10:55 am

The Programming Manager does not believe those math functions should be included for general purpose use even on the R2 version because of the performance impact. Maybe something can be done as far as providing a custom coded limited use solution. But that would incur programming cost that would have to be discussed.
Boyce Schrack
Enovation Controls