Jump to content
OMRON Forums

PPMAC 'save' command not functioning


wehg
 Share

Recommended Posts

I have a problem on a PPMAC where the 'save' command does not function. The pp_save.tpl file exists in the configuration directory of the project, and the file content shows numerous 'backup' command calls. (I should mention that this file is one that I copied from an earlier project, which I'm assuming was created by the IDE as default, because I didn't create it. I copied the file because when I create a new project, there is no .tpl file in the configuration directory, only the pp_save.cfg file.) The pp_save.cfg is never being written to. The 'save' command issued from the terminal appears to go through a normal cycle and shows 'save complete', yet the file remains empty. File attributes for pp_save.cfg appear normal. (i.e. not read only etc.) What might I be missing?

 

Thanks,

wehg

Link to comment
Share on other sites

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

wehg,

 

Can you do a simple test:

 

1. Issue a $$$*** (this will reset the Power PMAC to factory default)

2. Issue a change one of the parameters, lets say Motor[1].ServoCtrl=1.

3. Issue a SAVE command.

4. Issue a $$$ command.

5. Check the value of the variable you modified on step 2. (Motor[1].ServoCtrl for example).

 

If it has retained the value, then the save command is working fine and the problem is caused by moving files from older projects in to the new ones.

 

When you want to start a project, you don't have to worry about the save template file unless you want to save something which is not saved by default. If there is no template file, it would be created upon $$$*** on Power PMAC and upon downloading the project, these files will be read from the Power PMAC CPU and will be added to your project on your PC. At this point if you want to modify the save template file, then you can do so.

 

Regards,

Link to comment
Share on other sites

Sina,

 

Steps 1-5 in your previous reply functioned as described, and the value was retained. The contents of pp_save.cfg still never changes.

 

I tried this:

 

1. Created a new project with IDE using only default PowerPmacSuite project template. Didn't modify project whatsoever.

2. Issued $$$*** command.

3. Looked at Configuration directory, and pp_save.tpl file does not exist. Only pp_save.cfg and other .txt files and .ini file.

4. Set Motor[1].ServoCtrl=1.

5. Issue 'save' command.

6. Look at pp_save.cfg, and file is empty.

7. Issue $$$ command, and value of 1 is retained.

8. Build & download default PPMAC project. Download Successful.

9. pp_save.tpl still does not exist. pp_save.cfg is empty.

10. Issue 'save' command. Same results as step 9.

 

Thanks,

wehg

 

wehg,

 

Can you do a simple test:

 

1. Issue a $$$*** (this will reset the Power PMAC to factory default)

2. Issue a change one of the parameters, lets say Motor[1].ServoCtrl=1.

3. Issue a SAVE command.

4. Issue a $$$ command.

5. Check the value of the variable you modified on step 2. (Motor[1].ServoCtrl for example).

 

If it has retained the value, then the save command is working fine and the problem is caused by moving files from older projects in to the new ones.

 

When you want to start a project, you don't have to worry about the save template file unless you want to save something which is not saved by default. If there is no template file, it would be created upon $$$*** on Power PMAC and upon downloading the project, these files will be read from the Power PMAC CPU and will be added to your project on your PC. At this point if you want to modify the save template file, then you can do so.

 

Regards,

 

 

Link to comment
Share on other sites

wehg,

 

I did the same steps as you have mentioned, and although the file doesn't get uploaded to your project in IDE, the file does exist on the Power PMAC:

 

Here is how to check it:

 


login as: root
root@192.168.0.200's password:
Linux powerpmac 2.6.30.3 #16 Fri Jul 1 13:33:50 PDT 2011 ppc
---------------------------------
-- PowerPMAC Motion Controller --
---------------------------------
Last login: Wed Mar 21 14:07:28 2012 from 192.168.0.101
root@192.168.0.200:/opt/ppmac# cd /var/ftp/usrflash/Project/Configuration/
root@192.168.0.200:/var/ftp/usrflash/Project/Configuration# ls
geomacro.tpl   macro8x.tpl     pp_disable.txt      pp_save.tpl
macro16x1.tpl  macroio.tpl     pp_inc_disable.txt  pp_startup.txt
macro16x2.tpl  pp_default.cfg  pp_inc_startup.txt  umacro3603928.tpl
macro1x.tpl    pp_default.ini  pp_proj.ini
macro2x.tpl    pp_diff.cfg     pp_save.cfg
root@192.168.0.200:/var/ftp/usrflash/Project/Configuration# more pp_save.tpl
>//-------------------------------------------
>// save CID clock directions
>//-------------------------------------------
CID[2].DIR
CID[3].DIR
CID[10].DIR
CID[11].DIR
CID[18].DIR
CID[19].DIR
CID[26].DIR
CID[27].DIR
CID[34].DIR
CID[35].DIR
CID[42].DIR
CID[43].DIR
CID[50].DIR
CID[51].DIR
CID[58].DIR
CID[59].DIR

CID[4].DIR
CID[5].DIR
CID[6].DIR
CID[7].DIR
CID[20].DIR
CID[21].DIR
CID[22].DIR
CID[23].DIR
CID[36].DIR
CID[37].DIR
CID[38].DIR
CID[39].DIR
CID[52].DIR
CID[53].DIR
CID[54].DIR
CID[55].DIR
>//-------------------------------------------
>// save system data
>//-------------------------------------------
backup sys.
>//-------------------------------------------
>// save motor data
>//-------------------------------------------
backup motor[0]..
>//-------------------------------------------
>// save Motor Definitions
>//-------------------------------------------
#*->
>//-------------------------------------------
>// save coordinate data
>//-------------------------------------------
backup coord[0]..
>//-------------------------------------------
>// save encoder data
>//-------------------------------------------
backup enctable[0]..
>//-------------------------------------------
>// save ecat data
>//-------------------------------------------
backup ecat[0]..
>//-------------------------------------------
>// save Modbus data
>//-------------------------------------------
backup modbus[0]..
>//-------------------------------------------
>// save gate array data
>//-------------------------------------------
backup gate1
backup gate2
backup gate3.
backup iogates
>//-------------------------------------------
>// save comptables
>//-------------------------------------------
backup comptable[0]..
>//-------------------------------------------
>// save Macro System Vars
>//-------------------------------------------
backup macro.
>//-------------------------------------------
>// save M-variable Definitions
>//-------------------------------------------
backup mdefs
>&*%100

root@192.168.0.200:/var/ftp/usrflash/Project/Configuration#

 

Now, I'm not sure if this file is supposed to be uploaded automatically from the Power PMAC to your project in IDE or not. I'll let our software team to make the decision on that one.

 

If you have to, then upload this file from the Power PMAC, modify it as you like and then add it to your project. But you have to do this every time we change something in the save template lets say in future firmware releases, unless we add a feature so we can support custom save templates.

 

Link to comment
Share on other sites

Thanks Sina,

 

I can do as you describe below, and see the files on PPMAC, and see the contents of the pp_save.cfg file change when I issue a 'save' command from the IDE. I have no current need to modify the .tpl file, so I don't have any issue with it only residing on PPMAC. The real problem I have is that the .cfg file is getting updated on PPMAC, but it never gets back to the IDE. Therefore I no longer have the convenient means to issue a save command, and have the saved parameters associated to the current project. (The .cfg file in the project is always empty.) If I load a new project, the parameter settings at the last 'save' are still what are active. Is this behavior now by design? (In a much earlier PPMAC that we have, it writes back to the file in the IDE) If so, is there another mechanism that I can use, or should be used, to tie parameter settings to the project? I know I can save to a configuration file (.ppm), but I didn't see how to make that load automatically with the project. My goal was to be able to build and download a project, and establish all the parameter settings, ethercat setup, etc. with the project download. Suggestions???

 

Thank you,

Wehg

 

wehg,

 

I did the same steps as you have mentioned, and although the file doesn't get uploaded to your project in IDE, the file does exist on the Power PMAC:

 

Here is how to check it:

 


login as: root
root@192.168.0.200's password:
Linux powerpmac 2.6.30.3 #16 Fri Jul 1 13:33:50 PDT 2011 ppc
---------------------------------
-- PowerPMAC Motion Controller --
---------------------------------
Last login: Wed Mar 21 14:07:28 2012 from 192.168.0.101
root@192.168.0.200:/opt/ppmac# cd /var/ftp/usrflash/Project/Configuration/
root@192.168.0.200:/var/ftp/usrflash/Project/Configuration# ls
geomacro.tpl   macro8x.tpl     pp_disable.txt      pp_save.tpl
macro16x1.tpl  macroio.tpl     pp_inc_disable.txt  pp_startup.txt
macro16x2.tpl  pp_default.cfg  pp_inc_startup.txt  umacro3603928.tpl
macro1x.tpl    pp_default.ini  pp_proj.ini
macro2x.tpl    pp_diff.cfg     pp_save.cfg
root@192.168.0.200:/var/ftp/usrflash/Project/Configuration# more pp_save.tpl
>//-------------------------------------------
>// save CID clock directions
>//-------------------------------------------
CID[2].DIR
CID[3].DIR
CID[10].DIR
CID[11].DIR
CID[18].DIR
CID[19].DIR
CID[26].DIR
CID[27].DIR
CID[34].DIR
CID[35].DIR
CID[42].DIR
CID[43].DIR
CID[50].DIR
CID[51].DIR
CID[58].DIR
CID[59].DIR

CID[4].DIR
CID[5].DIR
CID[6].DIR
CID[7].DIR
CID[20].DIR
CID[21].DIR
CID[22].DIR
CID[23].DIR
CID[36].DIR
CID[37].DIR
CID[38].DIR
CID[39].DIR
CID[52].DIR
CID[53].DIR
CID[54].DIR
CID[55].DIR
>//-------------------------------------------
>// save system data
>//-------------------------------------------
backup sys.
>//-------------------------------------------
>// save motor data
>//-------------------------------------------
backup motor[0]..
>//-------------------------------------------
>// save Motor Definitions
>//-------------------------------------------
#*->
>//-------------------------------------------
>// save coordinate data
>//-------------------------------------------
backup coord[0]..
>//-------------------------------------------
>// save encoder data
>//-------------------------------------------
backup enctable[0]..
>//-------------------------------------------
>// save ecat data
>//-------------------------------------------
backup ecat[0]..
>//-------------------------------------------
>// save Modbus data
>//-------------------------------------------
backup modbus[0]..
>//-------------------------------------------
>// save gate array data
>//-------------------------------------------
backup gate1
backup gate2
backup gate3.
backup iogates
>//-------------------------------------------
>// save comptables
>//-------------------------------------------
backup comptable[0]..
>//-------------------------------------------
>// save Macro System Vars
>//-------------------------------------------
backup macro.
>//-------------------------------------------
>// save M-variable Definitions
>//-------------------------------------------
backup mdefs
>&*%100

root@192.168.0.200:/var/ftp/usrflash/Project/Configuration#

 

Now, I'm not sure if this file is supposed to be uploaded automatically from the Power PMAC to your project in IDE or not. I'll let our software team to make the decision on that one.

 

If you have to, then upload this file from the Power PMAC, modify it as you like and then add it to your project. But you have to do this every time we change something in the save template lets say in future firmware releases, unless we add a feature so we can support custom save templates.

 

 

 

Link to comment
Share on other sites

Hi Wehg,

 

We have implemented something similar to what you're asking in our next version of the IDE which will be released within the next 2 months (April 2012) time frame. This new feature allows you to take a snapshot of all the modified setup registers in Power PMAC from an factory default state, up to the point when the snapshot was taken and add it to your project in IDE. This feature also supports multiple snapshots under the same IDE.

Link to comment
Share on other sites

Thanks Sina,

 

Ok, sounds like a nice feature. Will the pp_save.cfg file be removed from the IDE project template in the next release? It's a bit puzzling having it generated in the IDE template, yet it doesn't appear to have any functionality from the IDE, or am I missing something?

 

Best Regards,

Wehg

 

Hi Wehg,

 

We have implemented something similar to what you're asking in our next version of the IDE which will be released within the next 2 months (April 2012) time frame. This new feature allows you to take a snapshot of all the modified setup registers in Power PMAC from an factory default state, up to the point when the snapshot was taken and add it to your project in IDE. This feature also supports multiple snapshots under the same IDE.

 

 

Link to comment
Share on other sites

  • 3 weeks later...

What is the current practice for being able to directly alter system variables? I need to modify the clock sources on my acc cards, but this seems to be being handled by something internal to the project. In this case I have an ACC-5E0 which is addressed as a macro gate2 and the IDE insists on making this board the S/P clock master in the rack. I would like to make my first ACC-24E3 the clock master in the rack to get better control over the phase/servo frequencies. I am able to write Gate2[0].PhaseServoDir=3 and save this but I have not found a way to alter Gate3[0].PhaseServoDir, even with the Sys.WpKey-$AAAAAAAA

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...