Skip to main content
Submitted by sorenfriis on Wed, 02/17/2016 - 06:26

This calculation fails.

Can anybody explain me why?

GEARING=15
PULSPR=4096
A0=(GEARING*PULSPR)

However if I omit the parenthesis, it works.

The reason I am putting it inside parenthesis is, that the complete expression looks like this:
A0=(GEARING*PULS_PR)/DISTPR

It seems like an error to me.
This has been tested on a DMC 41x3

Comments 3

AndrewS on 02/17/2016 - 08:51

Hi sorenfriss,
I'm not able to replicate the issue on current standard firmware. What version of firmware are you on? Here's my terminal log.

[code]
:^R^S

:^R^V
DMC4143 Rev 1.2c
:GEARING=15
:PULSPR=4096
:A0=GEARING*PULSPR
:A1=(GEARING*PULSPR)
:LV
A0= 61440.0000
A1= 61440.0000
GEARING= 15.0000
PULSPR= 4096.0000
:
[/code]
Regards,
Andrew

sorenfriis on 02/18/2016 - 02:05

Here is our firmware:
:^R^V
DMC4183s04a

AndrewS on 02/18/2016 - 12:03

Thanks Soren,
I sent you an email to follow-up with this. Since your firmware version is custom, I would like to keep the discussion off the public forum.

Regards,
Andrew