Jump to content
OMRON Forums

hannsx

Members
  • Posts

    102
  • Joined

  • Last visited

Posts posted by hannsx

  1. Hi, I want to share the problems and solutions I had for other people to benefit from it. So the problem is solved.

     

    Problem: When building and downloading an empty

    Powerbrick Solution Template I get the Message:

     

    error : The compiler was not able to generate an executable file. Please open the following error log file for more information

     

    Output:

     

    ********************************************************

    ********************************************************

    Please wait while uploading Libraries from PowerPMAC.

    Libraries upload successful.

    Please wait while Executing Project Script.

    Please wait while mapping PowerPMAC variables.

    End of synchronizing the Database.

    PowerPMAC variables mapped successfully.

    Build process for capp1.out has started.

    \\win.desy.de\home\guickinf\My Documents\PowerPMAC IDE\PowerBrick_LV1\PowerBrick_LV1\PowerBrick_LV1.ppproj(94,5): error : The compiler was not able to generate an executable file. Please open the following error log file for more information

    \\win.desy.de\home\guickinf\My Documents\PowerPMAC IDE\PowerBrick_LV1\PowerBrick_LV1\C Language\Background Programs\capp1\err.log

    \\win.desy.de\home\guickinf\My Documents\PowerPMAC IDE\PowerBrick_LV1\PowerBrick_LV1\C Language\Background Programs\capp1\msg.log

    Build process for capp1.out has ended.

     

    Done building project "PowerBrick_LV1.ppproj" -- FAILED.

    Project Building and Mapping total time = 4.132 sec

    ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

    ********************************************************

    ********************************************************

     

    However when I used an sftp-file transfer software to manually copy the files onto the PowerBrickLV

    it works and I can run the Motion Program. As soon as I do a Factory Reset it is of course gone.

     

     

     

     

    When I try to upload motion programs it gives me the information:

    Error message: Project Load Error

    Output:

    ********************************************************

    ********************************************************

    Total Project download time = 3.572 seconds.

    Total Project build and download time = 4.777 seconds.

    There were errors during the download process and the download process has stopped.

    The following errors were found:

     

    Error: Opening PMAC File: /var/ftp/usrflash/Project/PMAC Script Language/Global Includes/global definitions.pmh

    Error: Opening PMAC File: /var/ftp/usrflash/Project/PMAC Script Language/Libraries/poweronresetsub.pmc

    Error: Opening PMAC File: /var/ftp/usrflash/Project/PMAC Script Language/Libraries/timersub.pmc

    Error: Opening PMAC File: /var/ftp/usrflash/Project/PMAC Script Language/Motion Programs/prog1.pmc

    Error: Opening PMAC File: /var/ftp/usrflash/Project/PMAC Script Language/PLC Programs/plc1.plc

    Build Succeeded.

    ********************************************************

    ********************************************************

     

     

     

     

    Solution: My Project-Folder was automatically created on a network drive.

    On other systems this may not be a problem, but in my case it was.

    The support found out that it was caused by my pc, not allowing for the long path names

    arising from the location of the project on the network drive.

    Many thanks to the Support for helping me out!

     

    Easy workaround: Save your Project on your local disk.

     

    Fixing it: This are the Instructions given by the support. I wasn't able to specify

    a certain drive, so I had to set the value to "0" for all drives.

    ********************************************************

    ********************************************************

    1) As Administrator (right click on CMD icon, “ Run as Administrator” ), you have to query the short name path status for that drive

     

    C:\WINDOWS\system32>fsutil 8dot3name query d:

     

     

     

    You will probably see the following:

     

     

     

    The volume state is: 1 (8dot3 name creation is disabled).

     

    The registry state is: 2 (Per volume setting - the default).

     

     

     

    Based on the above two settings, 8dot3 name creation is disabled on d:

     

    2) In this case you have to enable the short path with the following command:

     

    C:\WINDOWS\system32>fsutil 8dot3name set d: 0

     

    Successfully enabled 8dot3name generation on d:

     

     

     

    C:\WINDOWS\system32>fsutil 8dot3name query d:

     

    The volume state is: 0 (8dot3 name creation is enabled).

     

    The registry state is: 2 (Per volume setting - the default).

     

     

     

    Based on the above two settings, 8dot3 name creation is enabled on d:

     

    Nota bene: Maybe you have to zip all the projects files, remove or move the original files and unzip the files to let windows to regenerate the short name path, but first see if everything works without this additional step.

     

    Important: remember to map the folder with the projects and do not browse the network server from the file selector. For certain reasons, if you load the solution from the network servers instead from a mapped share drive, you will get a garbled solution explorer, with several folder entry repeated x times.

     

    ********************************************************

    ********************************************************

     

    That both worked fine and the empty Template, as well as the Motion Program gave me the output I wished for:

     

    ********************************************************

    ********************************************************

    Please wait while uploading Libraries from PowerPMAC.

    Libraries upload successful.

    Please wait while Executing Project Script.

    Please wait while mapping PowerPMAC variables.

    End of synchronizing the Database.

    PowerPMAC variables mapped successfully.

    Build process for capp1.out has started.

    Build process for capp1.out has ended.

     

    Project Building and Mapping total time = 5.409 sec

    ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

    ********************************************************

    ********************************************************

    Please wait while uploading Libraries from PowerPMAC.

    Libraries upload successful.

    Please wait while Executing Project Script.

    Please wait while mapping PowerPMAC variables.

    End of synchronizing the Database.

    PowerPMAC variables mapped successfully.

    Project Building and Mapping total time = 3.826 sec

    Please wait while downloading to PowerPMAC.

    sending incremental file list

    ./

    deleting Temp/pp_debug.txt

    deleting Temp/

    deleting Database/pp_subprog.sym

    deleting Database/pp_prog.sym

    deleting Database/pp_local.sym

    deleting Database/pp_global.sym

    deleting Database/

    PowerBrick_LV_Filip_6.ppproj

     

    5,554 100% 0.00kB/s 0:00:00

    5,554 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=34/36)

    Bin/

    deleting Bin/Release/

    Bin/Debug/

    deleting Bin/Debug/usralgo.so

    deleting Bin/Debug/usralgo.ko

    C Language/

    deleting C Language/Libraries/

    C Language/Background Programs/

    C Language/Background Programs/capp1/

    C Language/CPLCs/

    deleting C Language/CPLCs/user/

    deleting C Language/CPLCs/rti/

    C Language/CPLCs/bgcplc00/

    C Language/CPLCs/rticplc/

    C Language/Include/

    deleting C Language/Include/pp_proj.h

    C Language/Realtime Routines/

    deleting C Language/Realtime Routines/.tmp_versions/

    Configuration/

    Configuration/pp_custom_save.cfg

     

    235 100% 11.47kB/s 0:00:00

    235 100% 11.47kB/s 0:00:00 (xfr#2, to-chk=19/36)

    Configuration/pp_custom_save.tpl

     

    0 100% 0.00kB/s 0:00:00 (xfr#3, to-chk=18/36)

    Configuration/pp_disable.txt

     

    248 100% 12.11kB/s 0:00:00

    248 100% 12.11kB/s 0:00:00 (xfr#4, to-chk=17/36)

    Configuration/pp_inc_disable.txt

     

    0 100% 0.00kB/s 0:00:00 (xfr#5, to-chk=16/36)

    Configuration/pp_inc_startup.txt

     

    0 100% 0.00kB/s 0:00:00 (xfr#6, to-chk=15/36)

    Configuration/pp_proj.ini

     

    700 87% 34.18kB/s 0:00:00

    796 100% 38.87kB/s 0:00:00 (xfr#7, to-chk=14/36)

    Configuration/pp_save.cfg

     

    32,768 27% 1.56MB/s 0:00:00

    119,934 100% 5.72MB/s 0:00:00 (xfr#8, to-chk=13/36)

    Configuration/pp_startup.txt

     

    0 100% 0.00kB/s 0:00:00 (xfr#9, to-chk=12/36)

    Documentation/

    Documentation/note.txt

     

    0 100% 0.00kB/s 0:00:00 (xfr#10, to-chk=11/36)

    Log/

    Log/pp_error.log

     

    15 100% 0.73kB/s 0:00:00

    15 100% 0.73kB/s 0:00:00 (xfr#11, to-chk=10/36)

    Log/pp_proj.log

     

    3,270 100% 159.67kB/s 0:00:00

    3,270 100% 159.67kB/s 0:00:00 (xfr#12, to-chk=9/36)

    PMAC Script Language/

    deleting PMAC Script Language/Kinematic Routines/

    PMAC Script Language/Global Includes/

    PMAC Script Language/Global Includes/global definitions.pmh

     

    0 100% 0.00kB/s 0:00:00 (xfr#13, to-chk=4/36)

    PMAC Script Language/Libraries/

    PMAC Script Language/Libraries/poweronresetsub.pmc

     

    1,954 100% 95.41kB/s 0:00:00

    1,954 100% 95.41kB/s 0:00:00 (xfr#14, to-chk=3/36)

    PMAC Script Language/Libraries/timersub.pmc

     

    685 100% 33.45kB/s 0:00:00

    685 100% 33.45kB/s 0:00:00 (xfr#15, to-chk=2/36)

    PMAC Script Language/Motion Programs/

    PMAC Script Language/Motion Programs/prog1.pmc

     

    773 100% 37.74kB/s 0:00:00

    773 100% 37.74kB/s 0:00:00 (xfr#16, to-chk=1/36)

    PMAC Script Language/PLC Programs/

    PMAC Script Language/PLC Programs/plc1.plc

     

    341 100% 16.65kB/s 0:00:00

    341 100% 16.65kB/s 0:00:00 (xfr#17, to-chk=0/36)

     

    sent 20,299 bytes received 1,001 bytes 14,200.00 bytes/sec

    total size is 133,805 speedup is 6.28

    Downloading pp_startup.txt to PowerPMAC.

    Downloading pp_disable.txt to PowerPMAC.

    Downloading pp_custom_save.tpl to PowerPMAC.

    Downloading pp_proj.ini to PowerPMAC.

     

     

    Please wait while loading the project.

    LoadRTUserCode() Delta Time (sec) = 0.052814Start of Project Loading using INI File: "/var/ftp/usrflash/Project/Configuration/pp_proj.ini"Status: Starting Pass #1, getting Script properties & file names

    Status: Pass #1, Pre-processing file: /var/ftp/usrflash/Project/PMAC Script Language/Global Includes/global definitions.pmh

    Status: Pass #1, Pre-processing file: /var/ftp/usrflash/Project/PMAC Script Language/Libraries/poweronresetsub.pmc

    Status: Pass #1, Pre-processing file: /var/ftp/usrflash/Project/PMAC Script Language/Libraries/timersub.pmc

    Status: Pass #1, Pre-processing file: /var/ftp/usrflash/Project/PMAC Script Language/Motion Programs/prog1.pmc

    Status: Pass #1, Pre-processing file: /var/ftp/usrflash/Project/PMAC Script Language/PLC Programs/plc1.plc

    Status: Pass 1 Create debug file, #defines, *.h & .sym files, Time (sec) = 0.026702

    Status: Pass 2 Verify prog calls, local stack & labels, Time (sec) = 0.001391

    Status: Create PPMAC Symbol Table & Run CPP Time (sec) = 0.194447Status: Downloading to Power Pmac file = /var/ftp/usrflash/Temp/pp_proj.pmaStatus: Download to PPMAC Command Processor, Time (sec) = 0.002097

    Status: Final pp_proj.h & Run Background C Apps, Time (sec) = 0.056196Project Preprocessing & Load Total Time (sec) = 0.333942

    Success: projpp

    projpp-completed

     

     

    Uploading pp_error.log file from the PowerPMAC.

    Uploading pp_proj.log file from the PowerPMAC.

    Uploading pp_error_hist.log file from the PowerPMAC.

    Uploading pp_debug.txt file from the PowerPMAC.

    Uploading pp_proj.h file from the PowerPMAC.

    Uploading and synchronizing PowerPMAC variables

    Download successful.

    Total Project download time = 3.838 seconds.

    Total Project build and download time = 7.664 seconds.

    Build Succeeded.

    ********************************************************

    ********************************************************

  2. Hi I wanted to share my Problems and Solutions to make them

    findable and help other people to find solutions to their Problems.

     

    I am currently doing my obligatory internship as

    at a research facility in Germany. Here I have been given the Task to

    take make a PowerBrickLV work.

    I used a Brushless Motor without any Limit switches, just for getting to

    know the Powerbrick.

     

    Problem: AmpFault when trying to run the tests and in the system setup

    menu.

     

    Source: Sys.pAbortAll, a global safety switch is set true at default.

     

    Solution: Type Sys.pAbortAll = 0 into Terminal.

     

    Unfortunately, when I started reading the manuals my supervisors afvised

    me to watch the online tutorials instead, as it would take forever to

    read the manual. In the Tutorials is no mentioning of this global fault switch.

×
×
  • Create New...