Jump to content
OMRON Forums

Studebaker

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Studebaker

  1. Ok, folks. We're trying to do this procedure on a CPU that we have. Windows recognizes that a new USB device is present. It shows up as a drive in Windows explorer, but when we click on the drive it says to insert a disk. Any ideas?
  2. I eventually figured that out yesterday. This thread is the example that steered me wrong: "How to convert a RT address to user-space address" http://forums.deltatau.com/showthread.php?tid=293&highlight=bgcplc It shows a write to a PPMAC structure in C code. I actually cut and pasted the following line in my code from this example: UserAlgo.BgCplc[0] = 0; // only run once Apparently the example was in error.
  3. Brad, I tried using the command "UserAlgo.BgCplc[0] = 0" from within my background CPLC to kill itself after running only once. However I get compiler errors: Error 1 'UserAlgo' undeclared (first use in this function) I'm assuming that I need to include a .h file, but which one? Here's my code: #include #include #include //#include //Not sure if this was needed saw it in an example so I tried it, didn't fix UserAlgo problem //------------------------------------------------------------- // The following is a projpp created file from the User defines //------------------------------------------------------------- #include "../../Include/pp_proj.h" #include "../../Include/fswmain.h" void user_plcc() { char *tempstr; sprintf(tempstr, "This is the sprintf in the bgplc"); Send(SEND1_PORT,tempstr); stmach_hmi1statusupdate(); sprintf(tempstr, "This is the sprintf after the state machine call"); Send(SEND1_PORT,tempstr); UserAlgo.BgCplc[0] = 0; // only run once }
  4. Studebaker

    PLC timer

    Great, I'll try that out tomorrow. Is there an explanation for why "pshm->Time" doesn't work? Is only part of the Sys. structure available in C or something? If so, is this described somewhere?
  5. Studebaker

    PLC timer

    Brad, I tried to write a simple timer in C, and I used the system time that you were using in your example above: "Sys.Time" Of course in C I wrote it like this: "pshm->time" Since according to my training notes the Sys is implicit when accessing it through the pshm pointer. Anyway, I received an error telling me that the structure SHM has no member named "Time". Can you advise me on how I should have done this?
  6. [quote='bradp' pid='732' dateline='1285959622'] At the moment there is no good way to do this. This will be part of our Dec 2010 IDE release but it is not ready yet. Until then you have to do something that is good enough for your needs. Some people might be OK with just picking a Pmac variable and setting it to a value in global definition.pmh that represents the version. Then they manually handle it. Each $$$ it will have the correct value. Others might want to FTP the the project out of the ppmac and run fcompare. Neither way is great. the next release wil take care of it. [/quote] That's more or less what I expected. Thanks for the answer.
  7. Is there a quick easy way to verify that the Solution/Project that is open in the IDE matches the Solution/Project downloaded and running in the PPMAC? If there's no quick easy way, what's the best way. Checking the time/date stamp of every file seems a bit tedious. Is there one key file that could be compared?
  8. [quote='agovande' pid='458' dateline='1276530933'] We are in the process of making sample files. In any case you still have to customize these files for your machine specific things. Atul [/quote] That sounds reasonable. How soon will you have the sample files available? You made it sound fairly simple for me to translate the Turbo stuff, so it shouldn't take you guys very long at all. Of course I'll have to customize them for my machine specific things. We had to do that for the Turbo, so that's no big deal.
  9. [quote='agovande' pid='456' dateline='1276527676'] [quote='Studebaker' pid='455' dateline='1276525806'] Is a “G-Code” Subroutine collection (G-code definition file) built? In the Turbo we used the following files: MILL.G MILL.M MILL.T Do equivalent files exist for the PPMAC or do we have to translate this code from the Turbo script to the PPMAC script? Surely someone else has already had to do this. [/quote] The architecture is same so you will be still using similar files. If you want to translate Turbo based NC to PowerPMAC I will suggest rewriting to take advantage of new commands introduced in PowerPMAC. Atul [/quote] Reading between the lines, I believe that you're saying that DT doesn't have equivalent files for the PPMAC yet, and that I'll have to make my own. (By translating the Turbo based NC to PPMAC) So I'll have to do work in order to use the PPMAC that I didn't have to do in order to use the Turbo.
  10. Is a “G-Code” Subroutine collection (G-code definition file) built? In the Turbo we used the following files: MILL.G MILL.M MILL.T Do equivalent files exist for the PPMAC or do we have to translate this code from the Turbo script to the PPMAC script? Surely someone else has already had to do this.
×
×
  • Create New...