Jump to content
OMRON Forums

dro

Members
  • Posts

    44
  • Joined

  • Last visited

Everything 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. dro

    Encryption Issues

    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
  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,
  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.
  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
  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
  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.
  8. Unfortunately we no longer support the DPlot. This activeX was created for one of our customers and it was included by mistake in the designer. I don't believe it was ever finished as a full featured product.
  9. 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
  10. These were both bugs that have been fixed in the upcoming release. Dro
  11. dro

    Breakpoint usage

    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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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 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
  18. 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]
  19. 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...