Jump to content
OMRON Forums

dro

Members
  • Posts

    44
  • Joined

  • Last visited

Posts posted by dro

  1. Hi,

    I am testing it and I will let you know the answer soon but It looks like a bug in the IDE. Since you have older version of the firmware, the newer IDE does not check to see if the C source download flag is set and simply downloads everything. If you upgrade the firmware, and choose not to download the C source, you will see that it does work. If you wish to keep your current version of the firmware it won;t be a problem because I am going to fix the bug anyways.

  2. Hi Dave,

    You are correct in what you are observing. in regards to pp_proj.h, we recreate the file on the Power PMAC, but we will modify our approach to encrypt or remove this file. In regards to the .sym files and Intellisence in the terminal window, we have to take a look at it and see if we can hide or remove these options whenever a project in encrypted. pp_save.cfg stores Power PMAC Configuration in its native variable format, so your symbolic names are not visible, but if you think this still makes you vulnerable we will see if we can also encrypt that file.

     

    Regards

    Dro

     

     

    With 1.6 IDE and 1.6.0.0 firmware I am pleased with the way encryption works and protects IP and most other things we need.

     

    However I have a couple of issues:

     

    1. You seem to get a "C Language/Include/pp_proj.h" as well as a "C Language/Include/pp_proj.h.gpg"
       
      This allows an end user to see entries such as:
       
      	#define AllowPaidFeature 8192


       
      They could easily alter this as P8192 in gpascii/terminal.

    2. Access to "Configurations/pp_save.cfg" is not ideal we store some unique settings here which could be manipulated.
    3. Looking in "Database/pp_global.sym" the user can see the following:
       
      	Global  AllowPaidFeature  8192


       
      They could easily alter this as P8192 in gpascii/terminal.

     

    I would appreciate any comments or maybe I am missing some settings

     

    Thanks

    Dave

  3. At this point we only allow custom compilation for Background C Programs. you can compile your code outside of the IDE, but I would need to give you instructions on how to do that. If you are interested n doing so, please email me at: drog@deltatau.com and I will let you know how to do this.

     

    Dro,

     

    Is there a way that, while using the IDE, you can change the gcc compiler options for the generation of usralgo.ko? It appears that the -O2 option is being added to the Makefile and can result in incorrect compilations of for loops assigning values from arrays of double in structures. Manually unraveling the loop into statements works correctly but the assignment in the for loop does not. This seems to be a reported bug to gcc (as late as version 4.5.2) when using the -O2 option but we can't seem to not use the option.

  4. Hi,

    I would have to test the IDE with a Korean version of Windows 8 to see if I can duplicate your problem. I will let you know in a day or two.

     

    Dro.

     

    Hi, dro

     

    I'm Korean. ^^

    So this is a Korean version of the Windows 8.

     

    And I check the international settings in option.

    That is already set to English.

     

    Do you have any ideas to check more things?

     

    thanks.

  5. Please check to see if your language is set to English in the Tools->Options->Environment->International Settings. If it is not, please change it to English and try it again. I belive you have a Japanese version of the Windows 8, I will try to find one and install IDE to see if I can duplicate your problem.

     

    Dro

    Hi, dro.

     

    Thanks for your fast reply.

     

    I tested again.

     

    And there's no process which is named "make.exe",

    but there appeared new process which is named "cmd.exe".

     

    I killed 5 times this process, then it resumed building project and download.

     

     

     

    And up to now there's no malfunction in PPMAC.

     

    Um... it worked but hard to use like that.

     

    I need your solution.

     

    This is the same in other PCs using Windows 8 OS.

     

    waiting for your reply...

     

    thanks.

  6. Hi,

    Could you please open the Windows Task Manager and look into the processes when your IDE hangs up during the build and download. If you see a make.exe running, end that process and see if the IDE continues the compilation process. You might need to do multiple end processes for multiple make.exe processes. This is not the solution to your problem; I am just trying to figure out if unresponsive make.exe is cause of your problem.

     

    Dro

     

    Hi,

     

    I'm in trouble with open/make new Power PMAC project in Windows 8 OS.

     

    The communications and others are fine.

     

    But when I open or make project, IDE hangs up.

     

    The Output message is stopped at

     

    "Please wait while setting up the compile options".

     

    How can I fix it up?

     

    Please answer ASAP.

    Thanks in advance.

  7. pp_proj.h is an integral part of the project and that is the reason you do not see any menu options that allow you to delete, remove or exclude it from the project. The reason that you get a message asking you to reload is because you have that file already opened in the editor.

     

     

    Using 8/9/2012, 1.5.0.21 IDE, after I build my project/solution, I repeatedly see a dialog box:

    =============================

    \C Language\Include\pp_proj.h

     

    This file has been modified outside of the source editor.

    Do you want to reload it?

     

    Yes |Yes to All | No |No to All

    ============================

    Even if I click "Yes", I see this dialog the next time I build my project.

     

    Does the IDE handle pp_proj.h in some special way?

     

    Are there restrictions on what I should put in this file?

     

    In some cases, if I click "Yes", I get an older version of this file.

     

    Also, in the IDE, when I right click on pp_proj.h, I see the menu:

    -----------

    Open

    Open With

    View Code

    Properties

    ------------

    For all other include files, the right click menu looks like:

    -----------

    Open

    Open With

    View Code

    Exclude from project

    Delete

    Rename

    Properties

    ------------

     

    Why is the menu different?

  8. To view the values of any PMAC variable, either in debug or regular mode, you should add those variables in a watch window. After you start the debug session, open a watch window and add those variables to the watch window to see their values. When you exit the debug session the watch window will be closed along the debug session, and when you restart the debug session, the same watch window will reopen.

     

    Dro

     

     

    I have managed to load a PLC into the debugger, set a breakpoint, then execute the PLC and stop on the breakpoint.

     

    I am trying to figure out how I can actually view the values in various variables such as either of these:

     

    Gather.Addr[3] = Motor[3].ActPos.a;

     

    is this something I can do with the Visual Studio debugger ?

     

    TIA.

     

     

     

     

  9. There are two types of programs that you can debug in the IDE environment. They are the CApps and script PLCs. In case of the CApps, you can put a breakpoint on a valid line of code and then right click on the CApp that you want to debug and select the "Debug the selected CApp" menu option. In case of the script PLCs, you can put a break point on a valid line of code and right click on the PLC that you want to debug and select the "Debug the selected PLC" menu option. In either case the debugger would launch, hit the breakpoint, and exit once the program is stopped. You can also stop the debugger by selecting "Debug->Stop Debugging" from the main menu or press "shift+f5".

     

    Dro

     

    Can I use break points in the IDE for Script and C plcs? If so, how do I make them function in each type?

     

    Thanks

     

     

     

     

  10. Hi Steven,

    Please add the following features to our bug reporting utility and select them as enhancements. We will take a look at them and let you know which ones we will implement for the next release.

     

    Dro Ghazarian

     

    And it shouldn't alter file attributes.

     

    Mick

     

    First of all, let me say that I have been very happy with the Delta Tau IDE (for the most part), and I am excited to see the constant updates and improvements released by DT.

     

    Unfortunately, after using Visual Studio for several years I have become spoiled with certain features. Here are some features that I hope DT can look at adding to the IDE in the future:

     

    1) Auto-indenting brackets

     

    2) Complete Intellisense (i.e. local/global variables, structures, and functions should be auto-recognized and added to the Intellisense list)

     

    3) Integrated Debugger (obviously this won't work for the real-time threads but it would be great if the Visual Studio debugger could be attached to background C applications)

     

    4) The user should be able to delete IDE folders that aren't being used (CPLCs, Script, Realtime Routines, etc)

     

    5) Libraries should be callable from both realtime (RTI PLCs, User Phase, etc) and non-realtime threads (Background Capps, etc)

     

    6) Enable the Visual Studio Refactoring menu (Maybe limited to renaming variables and functions?)

     

    7) This isn't a feature, but I think that the Global Includes folder should be moved up a level (not a big deal, but it makes more sense to me because the .pmh files can be used for CApps, CPLCs, Script PLCs, etc).

     

    Obviously some of these items are more difficult than others to implement. However, I think these improvements would go a long way to making the IDE much more user-friendly!

     

    -Steven

     

     

     

     

  11. Daves,

    We do save all the files, before downloading or compiling. Since our project system and the IDE is based on the visual studio, I am following the visual studio rule, in which all the files get saved before getting compiled or downloaded. We can take a look at the possibility of only saving the files that have been modified to take care of your issue. I will add your post to our list of enhancements.

     

    Dro Ghazarian

  12. Mick,

    The reason for changing the attributes of the files and folders in the IDE is that, some of the properties of the project and some of the files need to be modified for the backward compatibility reasons and if the files and the folders are read only, I won't be able to do this. If this is a major issue for you, I can certainly take a look at my code and see if it is possible to minimize the changes to the files and folders attribute.

     

    Dro Ghazarian

     

    Why does the September release IDE remove the read-only attribute from files in the solution/project?

     

    It may be convenient for the IDE, but these are my files, and I should be able to decide whether or not they are writable.

     

    Mick

     

     

  13. Daves,

    Currently the Libraries are only compiled and linked with the Background C Applications. If you include your lib header file and call the function within BGCPLC or RTICPLCs, the code will compile, but it will crash the Power PMAC RT. The reason for the crash is that once a real time thread calls the BGCPLC or RTICPLC function, it won't be able to link to your Library functions at the runtime and it is going to crash. Please do not use your library functions within the CPLCs, since we are not linking those libraries.

     

    Regards

    Dro

     

    Daves,

     

    I just talked to one of the developers and here is what he responded about using library functions in BGCPLC and RTICPLC:

     

    The BGCPLC and RTICPLC are running in real-time and they are scheduled to run using the real-time scheduler. These libraries are compiled and can be used in background (non-real-time) space, but not in real-time. The RTICPLC and BGCPLC don't have a reference to these libraries, hence they would cause a run-time error and crash the real-time task scheduler.

     

    Regards,

     

     

  14. Where do you see the check box that is asking if you want to create the project in the same directory? I don't think we have such a check box. Since our IDE is built around the visual studio, we follow the same rules of the visual studio in creating new projects. Visual studio always creates the project in its own folder with the new set of project hierarchy. In visual studio you can create a new project and add files to the project as a link, in which case it does not physically copy the files to the location of the new project and this will enable you to share the files in two different projects. We do not support this feature in the IDE and I have to see if it is possible to do such a thing in the IDE. You have created a custom project that is achieving the same result and that is why you saw the extra file gets downloaded to the Power PMAC, even though it is not part of the project. As Atul mentioned, I have modified my code to accommodate this, and it will be available in the new installation, which will be released today. Please install the new release (once it is released) and let me know if it fixed your problem.

     

    Thanks

    Dro

    I didn't find it hard to achieve :-)

     

    I would have thought that it would be fairly common to want to have multiple projects that are really just variations of one another i.e. they share some amount of files in common but have some files different. This was what I was trying to achieve. I had a project that used some motors as virtual, whereas a second project, they were physical motors. It wasn't actually very easy to achieve this. When you use the IDE to create a new project, there is a checkbox that asks whether you want to create a new directory or not. Yet this seems to be ignored. It always creates the new directory, so all projects appear to be in their own hierarchy. This is not really what you want if you want to share files between projects. That's perhaps why you hadn't come across this problem.

     

     

     

  15. The only way that you would get duplicate definition of a #define in a project is that there is another #define with the same name in a file within the project. Have you tried to do a find in all files to see if you have duplicate definition somewhere else. If a file is open in the editor, there is no way that the file will get downloaded to the Power PMAC. If you want to send us your project, we can take a look at it and find out the issue. you can email it to me @ drog@deltatau.com or Atul @ agovande@deltatau.com.

     

    Dro

     

    I've attached a zipfile that shows the problem.

     

    down1.bmp shows a screen-shot of my project that downloads correctly. down1.log is a copy from the output of the download log.

     

    I then open sim.pmc which is not part of the project and contains subprogs that have duplicate names in the project. You can see this in down2.bmp. This time the download fails. Again down2.log is a copy of the download.

     

    In the down1.log I do see three files with .ppproj extension and one of them is sim.pprpoj. So this is a valid project with sim.pmc. Now I think may be you have sim.pmc file in the project and then you open sim.pmc from another project and then you see the probelm. Can you rename the other sim.pmc to something else for the test purpose

    Thanks,

    Atul

     

    Atul

     

     

     

  16. We do not manually generate the assembler code as part of the IDE compiler process, but you can do this manually by modifying the make file. the following is what you do to generate and assembler file. 1. Go to you CApp folder on your pc (where the actuall files are physically located) 2. open up the make file. there should be a file such as the following "....._debug.mak" 3. go to the line that has the following script. $(CC) $(CFLAGS) $(DTDEBUG) -c $< 4. Modify the script to the following $(CC) $(CFLAGS) -S $(DTDEBUG) -c $< 5. save the file. 6. open up a command prompt and CD to where this make file is located. 7. execute the following command. make -f"....._debug.mak" clean ex: make -f"capp1_debug.mak" clean 8. execute the following command. make -f"....._debug.mak" ex: make -f"capp1_debug.mak" at this point after building you program, you should see a file with .s extension residing in the same folder. this file is the assembly code of your Capp. note: If you go to the IDE and build your program again, it will recreate your make file and remove the -S option from it. Dro Ghazarian [quote='artag' pid='1219' dateline='1296144644'] [quote='bradp' pid='1118' dateline='1295370455'] I changed your code a little to see what part was going wrong. With this you can see the correct values in P0 to P3 which means that the printf is having the problem. Printf is probably using emulation and that might be where the problem originates. I have no solution for that yet but hopefully this information will let you continue. [code] { int i; double dd = 0.0; long long ll = 0; for (i = 0; i < 4; ++i) { dd += 1000000001.0; ll = dd; pshm->P[i]=ll; printf("int i %d; double dd %f; long long ll %lld\n", i,dd,ll); } } [/code] [/quote] I tried to work on from this, but still failed. The reason becomes apparent if I change the code to [code] dd += 1000000001.01; ll = dd; pshm->P[i]=ll; [/code] This produces the output : int i 20; double dd 1000000001.010000; long long ll 0 int i 21; double dd 2000000002.020000; long long ll 0 int i 22; double dd 3000000003.030000; long long ll 0 int i 23; double dd 4000000004.040000; long long ll 0 But if the values of P20-P24 are queried in the terminal window: P20 P20=1000000001.00999999 P21 P21=2000000002.01999998 Since the fractional part of dd should have been lost when converting to a long long, I suspect that the compiler has optimised the assignment and assigned dd directly to P[n] without going via ll. Is there an option to output the assembler listing so I can check this ? -adrian [/quote]
  17. Do you have Cygwin installed on your machine? if you do, go to System enviroment variables and under the System Variables look for the Variable name "Path". double click on it and the first two entries should be the following( each entry is seperated by a semi colon) C:\Program Files\Delta Tau Data Systems Inc\Power Pmac Suite\powerpc-460-linux-gnu\usr\local\bin;C:\Program Files\Delta Tau Data Systems Inc\Power Pmac Suite\powerpc-460-linux-gnu\bin; if it is any thing but this, make sure that you remove the other entries and put it at the end of the Path string. Also check the following registry locations. HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib if they point to C:\Cygwin\bin, then it is wrong, they should point to directories where the IDE is installed and point to the bin directory within that folder. the easiest way to fix this would be to reinstall the IDE. Dro
×
×
  • Create New...