Jump to content
OMRON Forums

tkb11

Members
  • Posts

    22
  • Joined

  • Last visited

tkb11's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I get how to use CFromScripts from motion programs, libraries etc inside the IDE environment. What is the quickest way to utilize the speed of functions in C from a motion control program in NC16? Maybe a new M-Code? Or is there a generic way of doing it. We are doing pretty math-intensive calculations to machine a-spherical surfaces with a very fancy high-precision lathe.
  2. I do not see anything about G-Code script files that is not specific to the NC16 projects built from source. We are using the default project as recommended by DT. The equivalent instructions are not clear (or present). I'm a cross platform real-time software developer and with respect, the documentation is pretty obtuse. Edit: Found the gcode script was there but not active. Removed all the Y axis references (since it is a fancy lathe) and it is working
  3. Are you sure X doesn't move? positive - I can see the motors moving (or not moving) What response do you get if you type the following into the IDE terminal? #1-> &1#1->1270000x
  4. This is the entire program G00 X.1 F.1 M30 IDE (status dialog) says the motors are running closed loop and I can jog from within the IDE and from NC16. Do I need a script file to handle the G-Codes? The guy before me setup coordinate system 1, not 0. And used motor 1 and 2 instead of 0 and 1. Does that matter? I'm kinda fishing for answers ...
  5. I have a simple 3 line NC file. It has nothing but 'G00' on the first line. When I run it nothing happens. I suspect I need to do something to make G-Codes, even the default, work? Help? This is version 1.7r from 8/20/18. I've been successfully running programs from IDE version 4.4.2.3 but need to get NC16 working. The position display works. I can jog successfully and home works. The machine is very simple, a diamond turning machine with only two axis but uses interferometers for position (accurate to 1,270,000 counts per inch) TIA
  6. Thanks Eric! I got in touch with somebody at Delta Tau that said that initialization file option is really only meant for use by folks who are building NC16 from source. I put my initialization file in pp_startup.txt as you suggested and all is well. Either doing 'Home' from the Manual dialog or doing a 'Reset' clears the alarm.
  7. Thanks Eric! It seems only RS-274 syntax is allowed in the .nc files. After using .pmc files in the IDE environment for a while I missed that! And the initialization file option in NC16 is really only meant to be used by folks who have the full source code. I wish the manual were a little better organized. I thought I read it cover to cover.
  8. I'm trying to finish setting up an NC16 / PowerPMAC UMAC for a friend. They have been using the IDE with some success so I think the motor/dencode/axis parameters are close. My NC program is not behaving the way I think it should. INC LINEAR Z0.05 DWELL(2*1000) X0.05 DWELL(2*1000) X-0.05 Z-0.05 M30 The parser does not like either of the first two lines. Weird, heh? We are executing motion programs from the IDE with those lines. If I remove them the program executes but stops just before the X-0.05 move completes. The position reports as -0.047886. No matter the commanded position it never quite gets there. The program hangs up and I have to abort to get control again. It will stop that same distance from any negative commanded position on both axis (this is a diamond turning machine so only two axis). I'm sure I've messed something up. Its hard when multiple hands have there fingers in something. [EDIT] I'm thinking this is exactly the same problem I had getting NC16 to load and run an initialization script. It would not parse it correctly. I got past that by putting the plc script in pp_startup.txt. But I can't do that with NC files forever. I really need those to run after being loaded remotely. I can run .pmc files so I KNOW it is something to do with files downloaded remotely rather than present in the image created by the IDE. Any clues? TIA
  9. So when I put "enable plc InitializePlc" in pp_startup.txt it runs properly. I removed the option in NC16 to run a script on startup. I think if one loaded a plc script there the parsing capabilities are pretty limited. Setting "Coord[1].HomeRequired =0" did not seem to help. It read "Coord[1].HomeRequired =1" but was commented out anyways. Now I'm working on things in the IDE where X and Z are the only two axis. There are some buttons in NC16 that use Y axis constants no matter the axis labels.
  10. Eric - it is pretty much the default setup. It is kinda simple. It controls a precision lathe, a "diamond turning" machine. We use the PMAC mostly for the resolution from our laser encoders. The only significant change is that motors 1 and 2 run axis X and Z, kinda typical for a lathe. It does download the script just seems to be using a different parser than when running plc scripts from local storage. It does not like /***/ style comment lines ,only // style comments. And it does not like plc script names, only numbers.
  11. My plc scripts were not enumerated correctly. I fixed that. I can run the InitializePlc script from the task manager and things seem to come up normally. But I get an error when that script is loaded automagically when I start NC16. I get no erors when building and downloading. These are my alarms after NC16 starts: ------------------------------------------- Error: CS Status: Not homed. Error: Power PMAC File Download Error: "C:\Users\DOS\Documents\PowerPMAC IDE\PowerPMAC0828\PowerPMAC0828\PMAC Script Language\PLC Programs\ppnc_initialize.plc" /var/ftp/gather/ppnc_initialize.plc:0:2: error #20: ILLEGAL CMD: /***********************************************************************************/ root@192.168.0.200:/opt/ppmac# ---------------- I tried loading from a simpler path with no spaces but no joy. Any more ideas? TIA
  12. Thanks and I'll look into the sequence numbers and post the error. They are in the Database folder, pp_progs.sym sound correct?
  13. Thanks so much for trying to help us get this thing running. I changed that timer and tried it to no avail. I actually found that suggestion elsewhere and had already tried it and just tried it again. I'm an advanced user of Linux and a C/C++ real-time software developer. I'm pretty sure I got it right. My problem is that the initialize plc script is having trouble being executed. The script names are not being parsed. If I change ... open plc InitializePlc close to open plc 14 close ... we get no errors. For some reason the conversion from script names to script numbers is not happening automatically. I can see the translations in pp_prog.sym in the Database folder but they are not happening automagically. Any ideas?
  14. The parameter error is the string in open plc InitializePlc For some reason the automagical translation from plc name to number is not happening. Is there a flag that turns this on and off? Or a special build or download sequence? I get no errors building or downloading, only when I startup NC16 and it tries to pull and run the initialization script. Maybe the startup plc file defined in nc16 has some restrictions with the name substitutes? Also the open and close lines look just like your example. TIA [Edit] Maybe I should be telling NC16 to run the script that is on the PMAC instead of the script in the file system of the computer running the IDE? Not sure how to do that ...
  15. Even if I delete every statement but the comment header (from the original) I get an error. It complains of an "Illegal Command" and then prints out the first line of the block comment on line 1. Could it be a EOL character thing? There is nothing else in the file! [Edit] If I take every line out of the plc_initialize script, except the open and close calls, it complains of a parameter error in the open call. Something has to be configured incorrectly. It is driving me nuts! [Edit] So the parameter error is the plc name. If I do 'open plc 0' I do not get a parameter error. It seems the translation from string plc names to numbers is not occurring. Is there a special build and/or download sequence to make the translation work? Is there a flag that turns this feature on and off?
×
×
  • Create New...