leandro.martins Posted June 7, 2023 Share Posted June 7, 2023 (edited) I have noticed that if a 'nan' value is assigned into a Gate3[i].Chan[j].PwmFreqMult, then 0 is set to it. Also, the IDE doesn't showed me any kind of error or warning when downloading. Tested on: FW: 2.5.0.4 CPU: PowerPC,APM86xxx IDE: 4.6.0.14 Is this behaviour expected? Edited June 8, 2023 by leandro.martins Quote Link to comment Share on other sites More sharing options...
steve.milici Posted June 8, 2023 Share Posted June 8, 2023 Yes, this is expected behavior. Variables and structures that are not floating-point format will be set to zero. 1 Quote Link to comment Share on other sites More sharing options...
steve.milici Posted June 8, 2023 Share Posted June 8, 2023 We are currently evaluating the description in the “Power PMAC User’s Manual”. 1 Quote Link to comment Share on other sites More sharing options...
leandro.martins Posted June 9, 2023 Author Share Posted June 9, 2023 Thank you Steve, a description including this information would be great. In my opinion, would be interesting evaluate if it's possible to show a warning during the download process as well, since a typo in some situations could lead to that. Quote Link to comment Share on other sites More sharing options...
steve.milici Posted June 9, 2023 Share Posted June 9, 2023 Since it is considered valid PMAC syntax there would not be any way to generate a warning. 1 Quote Link to comment Share on other sites More sharing options...
leandro.martins Posted June 15, 2023 Author Share Posted June 15, 2023 Thanks Steve, I'll keep that in mind and maybe think about some sanity check for the cases that the value assigned is calculated from other data-structure elements. Quote Link to comment Share on other sites More sharing options...
steve.milici Posted July 13, 2023 Share Posted July 13, 2023 This was allowed starting with firmware version 2.6.1.0 to allow “fload” to restore PMAC variables saved as “nan” with the “fsave” feature. From the “Power PMAC Software Reference Manual” in the chapter “FIRMWARE UPDATE HISTORY” starting on page 1656 (specifically on page 1658): 4. Permit “fload” of user variables that had been stored with “fsave” as “not-a-number” (nan). Previously resulted in abnormal program termination. Quote Link to comment Share on other sites More sharing options...
leandro.martins Posted July 14, 2023 Author Share Posted July 14, 2023 I tested in FW version 2.5.0.4 and compared with FW version 2.7.0.0. For the Gate3 structure, the behaviour is the same on both. User variables (e.g. P variables) it's allowed to assign as "nan" in the latest version. Quote Link to comment Share on other sites More sharing options...
steve.milici Posted July 14, 2023 Share Posted July 14, 2023 Gate structures that exist will always be assigned a “real” value but in 2.5.0.4 the error is still generated: error #31: invalid function in equation: Gate3[0].Chan[1].PwmFreqMult=nan. In vs 2.7.0.0 no error is generated. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.