Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Onboard program will not load

The two sub.vi's attached have been running happily under Labview 6.1 and NI Motion 5.1.1 for seven years.  We recently updated to Labview 8.5 and NI Motion 7.6.  When I try to run Init_Board_Program.vi I get an error -70125 at "StopProgram" on program 1.  The purpose of Program 1 is to provide a watchdog for Program 2 to Insure its position remains within a boundary passed to it.  Program 2 takes a set of profile data points and runs a motor through them.  In the old system, program 1 ran continuously and program two ran only when data was loaded.  While both programs APPEAR to be in memory, program 1 is not running.   What change do I need to make to get these funcitoning again?
Download All
0 Kudos
Message 1 of 6
(4,027 Views)
Dear JWfee,

I've been looking over you code, but am not sure why this error has occurred after the upgrade. Which motion card are you using? Did anything else change besides the LV and Motion driver upgrade? Has the implementation of the code changed, or did you have to replace any of the code during the upgrade?

With such a large upgrade, it may be possible that the implementation of some of the functions has changed, but I haven't been able to narrow anything down as of yet.

I'm going to see if I can try it out and let you know what I find out. Have you tried using the Program Status VI to determine what is happening with Program 1 and Program 2?

Hopefully I'll be able to gain some additional insight from trying your program out here and I'll be able to be of more help.

Best Regards,

~Nate


0 Kudos
Message 2 of 6
(4,009 Views)
Nate,

Many things have changed!!! 

All of them, I might point out, are due to bugs in this Labview.  For example the update rate is now 188 microsec as opposed to 125.  The resolver is 1/4 as sensitive as it used to be.  The soft switches no longer decelerate the motor, they allow it to keep right on going.  The kill and decelerate stop commands no longer remove the old target position, so when you start up after an emergency stop the motor continues in the very same dangerious direction it was originally moving...is that enough or shall  I continue?

But if your refering to that piece of code, No, its the same as it was.  I've taken out the "stopprogram.vi", I've put both programs in separate .vi's, and ONCE I've managed to load both on board at the same time without an error.  Once the stop program .vi is removed the error that now appears ONLY IN MAX i -70040 "The current device
is reserved for OnBoard Programs".  On the one occasion that I got both in cleanly the motor ran to the home position, about 37.80 deg and stopped....it  should have stopped at 60 degrees where it was sent.

If I do get errors, I can't run the program with the start.vi, but on one other occasion I've gone into MAX and told the program to run.  That time it went to home and began to osscilate wildly.

Jim Fee
0 Kudos
Message 3 of 6
(3,999 Views)
I'd still like some help with this problem.

Jim Fee
0 Kudos
Message 4 of 6
(3,971 Views)
Dear Jim,

I need to know which motion board and firmware you are using. I cannot load your programs on my motion controller, as I get this error when trying to run "Init_Board_Programs":

Error -70022 occurred at End Program Storage.flx: This command is not supported by this controller or operating system.

See the attached screenshot for my firmware versions.

Best Regards,

Nate

 


0 Kudos
Message 5 of 6
(3,891 Views)
Nate,

Thanks for your time, this update from 6.1 to 8.5 has been a vexing little project.

My NI Motion is 7.6

My firmware is as follows:

68331         7.40.3001
DSP            7.30.3001
FPGA1        7.00.3001
FPGA2        7.00.3001

Jim Fee

0 Kudos
Message 6 of 6
(3,883 Views)