kmonroe023 Posted November 12, 2012 Share Posted November 12, 2012 Motor 4 on one of our systems is setup with a trajectory pre-filter. It ran fine with the pre-filter enabled, but the system won't re-load the pp_save cfg files at boot because Motor[4].PreFilterEna is equal to -1 in the config file. If I try to download the pp_save.cfg file, the download stops at .PrefilterEna with an illegal write error. I normally upload the configuration files to the IDE after I save changes to the Pmac, so the system settings are backed up. Just wondering how PreFilterEna got set to -1 in the cfg file. Any ideas?? Thanks, Kmonroe Link to comment Share on other sites More sharing options...
Sina.Sattari Posted November 12, 2012 Share Posted November 12, 2012 Kmonroe, I found a bug in the Tuning software which causes this: If you click "Calculate Prefilter Coefficients" in the Trajectory Pre-filter Setup tab without any values for filter poles/zeros, you get an error "Please provide the frequencies of poles and zeros of the prefilter". At this point if you click "Implement Prefilter" then you'll end up with a -1 in the Motor[x].PreFilterEna. We will fix the bug. Thanks for reporting. Link to comment Share on other sites More sharing options...
Omron Forums Support Posted November 12, 2012 Share Posted November 12, 2012 Kmonroe, I found a bug in the Tuning software which causes this: If you click "Calculate Prefilter Coefficients" in the Trajectory Pre-filter Setup tab without any values for filter poles/zeros, you get an error "Please provide the frequencies of poles and zeros of the prefilter". At this point if you click "Implement Prefilter" then you'll end up with a -1 in the Motor[x].PreFilterEna. We will fix the bug. Thanks for reporting. Link to comment Share on other sites More sharing options...
Omron Forums Support Posted November 12, 2012 Share Posted November 12, 2012 Kmonroe, The prefilterena will be automatically set by the firmware to negative value of the set prefilter.ena value when the motor is killed (i.e. open loop mode) and will be set to positive value whenever the motor is closed loop . Since the configuration file just compares the values of structure elements with the default settings it generates this error. Just change the sign (make it positive) in the configuration file which will solve this issue. Link to comment Share on other sites More sharing options...
bradp Posted November 13, 2012 Share Posted November 13, 2012 Serkan, Does this mean if I kill the motor then issue the SAVE command I will have the problem described, that the value in pp_save.cfg is wrong and my PPmac can not properly restart anymore? Link to comment Share on other sites More sharing options...
Omron Forums Support Posted November 13, 2012 Share Posted November 13, 2012 Serkan, Does this mean if I kill the motor then issue the SAVE command I will have the problem described, that the value in pp_save.cfg is wrong and my PPmac can not properly restart anymore? Link to comment Share on other sites More sharing options...
Omron Forums Support Posted November 13, 2012 Share Posted November 13, 2012 If you generate the configuration file when the motor is killed, and that configuration file will have a negative value for the prefilter.ena, either you download this file or restart then you will have an error. Link to comment Share on other sites More sharing options...
Omron Forums Support Posted November 13, 2012 Share Posted November 13, 2012 To correct myself, resetting won't be an issue since you won't be able to download successfully the project in the first place. Link to comment Share on other sites More sharing options...
kmonroe023 Posted November 19, 2012 Author Share Posted November 19, 2012 To correct myself, resetting won't be an issue since you won't be able to download successfully the project in the first place. But...the file in question (pp_save.tpl and/or pp_save.cfg) is actually generated on the PMAC when you type 'save' in the terminal window. The user only gets the files if they are explicitly uploaded to the IDE. So, can't the preFilterEna bit be set incorrectly if the PMAC is saved while a motor is disabled with trajectory pre-filter? The reason I make this point, is because I think this is how I first discovered this issue. I had disabled all motors then saved to my PMAC, I then uploaded the config files to save the latest settings to the IDE. A little while later I reset ($$$) the PMAC; at this point the PMAC started up in the default state...no PLCs or programs and clock settings were set back to default. It was only when I attempted to download the pp_save.cfg file (that was originally uploaded from the PMAC) that I discovered that the preFilterEna flag was set to -1. Hope all this makes sense. Thanks, Kmonroe Link to comment Share on other sites More sharing options...
Recommended Posts