Jump to content
OMRON Forums

Download a Motion Program


DT-Europe
 Share

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

[quote=DT-Europe] How can we download a Motion Program from our own HMI? Today, it's possible to download only a complete project from the IDE, but of course we need to download single files from our own HMI. [/quote] At the moment it is not recommended that you download a single program to the Power PMAC. This is because the auto assignment of M, P, & Q variables is only working for one processing session. We are looking at making this enhancement in the future. If you decide to make your own downloader and decide to download individual files then you should either have one header file declaring all M, P, & Q variables that is included in every download or not use the auto assign feature and stick with #define. The following are the procedures for downloading a motion or a PLC program. 1. Transfer the Motion and PLC programs into the power pmac. The Motion programs reside in /var/ftp/usrflash/prog folder and the plc programs reside in the /var/ftp/usrflash/plc folder. 2. Modify pp_proj.ini file. This file is located at /var/ftp/usrflash/project folder. You can create a pp_proj.ini from scratch on the computer and then download it into the power pmac. The attached file is an example of a pp_proj.ini file. For example I assume that you want to download a motion program named PROG1.pmc and a plc program named PLC1.plc. You should modify the ini file to indicate that you want these two file be loaded into the active memory. The user should modify the PMAC_PROGRAMS section of the ini file to include the downloaded motion and plc programs. The following shows a sample of the added files in the ini file. Last_file_number is used to tell the pre processor the total number of files added. So if you have 3 files that you want to be loaded in the active memory and they have been added in the PMAC_PROGRAMS section of the ini file, then the last_file_number would be equal to 3. PVARSTART, QVARSTART, and MVARSTART parameters are used to tell the preprocessor the starting point of auto assigning P, Q, and M variables. [PMAC_PROGRAMS] PVARSTART=512 QVARSTART=512 MVARSTART=512 file1=/var/ftp/usrflash/include/Global Definitions.h file2=/var/ftp/usrflash/prog/PROG1.pmc file3=/var/ftp/usrflash/plc/PLC1.plc last_file_number=3 3. Run projpp preprocessor on the power pmac. The user can do this by opening a telnet prompt to the power pmac and executing projpp program (all you need to do is to type projpp). You can also programmatically open up a telnet session and run the projpp. The user should monitor the output of the projpp (just like a stdio) and see if the projpp returns 0 errors or not. If there are no errors, the stdout value looks like the following: projpp exiting, errors = 0 and if there are errors then it will be the same syntax except it would show the number of errors. If there are errors reported, then the user shall open up pp_error.log file located at /var/ftp/usrflash/project directory to see the errors. The errors could be generated by the preprocessor or the Power PMAC’s native program processor. 4. If there are no errors, then the programs are in the active memory and the user can run the programs.
Link to comment
Share on other sites

  • 5 years later...
Is the procedure outlined by bradp still the procedure for downloading a motion program from an HMI? Is this the case if the HMI resides on the PPMAC. Does the motion program need to be written in pmac script or will C perform the same? In the past with a standard PMAC2 we were able to download a program by sending a text file to the PMAC2, the text file was evaluated by the PMAC2 with the Open and Close statements opening and closing the program buffer. Is this not the case currently with the PPMAC?
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...