Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Why RCS got RESET message after GET_NEXT_STEP return status 2?

[ Edited ]

Hi All:

     The strange situation environment as :

               Motion Type: Linear

               GET_NETX_STEP return Status: 2

 

Got error message as below:

Errors:
[rb08][RRS][0.00][Error] (Gen_Rob_Op) via2: Failed to start motion: Can't create new module, number of modules exceeds maximum. (2)

 

In the normal situation, after  GET_NETX_STEP  retrun 2 status to OLP module, OLP  should send SET_NEXT_TARGET RRS message  to RCS module. But in my situation,  OLP send RESET message to RCS module. I'm so confused!

 

     So, Under what circumstances will the RESET message be sent?

 

Thank you!

8 REPLIES

Re: Why RCS got RESET message after GET_NEXT_STEP return status 2?

I never saw that error message "Failed to start motion: Can't create new module, number of modules exceeds maximum." in all OLP and RCS we are using...

 

Probably a miscommunication between your OLP and your RCS.

Re: Why RCS got RESET message after GET_NEXT_STEP return status 2?

Dear Expert:

          This problem trouble me so much!

 

      I want to know under what circumstances will RESET message send to RCS module?

Re: Why RCS got RESET message after GET_NEXT_STEP return status 2?

They are probably several circonstances; but this is deep in Process Simulate simulation engine and I do not know them.

One possible case, as far as I remember, could be a wrong output buffer returned by the RCS.

 

Re: Why RCS got RESET message after GET_NEXT_STEP return status 2?

Dear Expert:

      When I simulate four location points which motionType is linear.

 

And  I debug the code I found OLP got an exception in via9 like picuture below, and then OLP send RESET RRS message to RCS module.

 

the exception message is :

Can't create new module, number of modules exceeds maximum. (2)

and the exception code point is

 /// <summary>
        /// Set RRS motion parameters to the RCS (Location parameters)
        /// </summary>
        public void SetRrsMotionParams()
        {
            // Set motion type
            m_app.ReportDebugNote("SelectMotionType " + CurrMotionType);

          // got an exception
            m_app.RrsEngineServices.SelectMotionType(CurrMotionType);

.......
}

 

err_log11.png

err_log.png

 

I wonder why could 'm_app.RrsEngineServices.SelectMotionType(CurrMotionType);' get an exception?

 

Re: Why RCS got RESET message after GET_NEXT_STEP return status 2?

Do you have the exact type of the Exception exc object (in addition to the message)? As I wrote above, I never saw such exception in the tenth of RCS OLP we have implemented...

 

Also can you share a RCS debug log of this call and return for service SELECT_MOTION_TYPE?

Re: Why RCS got RESET message after GET_NEXT_STEP return status 2?

Dear Expert: 

     This problem does not appear currently. But I did nothing, So strangely!!

 

     Another problem trouble me.

 

When I initialized the RCS, then I try to terminate it, after about 5 minutes it can show "RCS was terminated".

111.png

If I change another one RCS module, It terminated very fast.

 

Why My RCS module terminate need such a long time? I troubles me so much, Can you give me some tips?

 

 

 

thank you angain!

Solution
Solution
Accepted by topic author JamesLiu
‎03-23-2017 10:52 PM

Re: Why RCS got RESET message after GET_NEXT_STEP return status 2?

Well, when you push the button, Process Simulate sends TERMINATE service to the RCS. When the RCS returns from this call, it shows "RCS was terminated" message. So the time is somewhat in your RCS or in your RCS wrapper...

Re: Why RCS got RESET message after GET_NEXT_STEP return status 2?

thank you so much! 

 I found the problem.

 

if (waitRes == WAIT_OBJECT_0)
{

}

else

{

    break;  // I miss it.

}

 

I guess  the rcs.exe process was terminted by tune.exe in the before. but if I add "break" rcs.exe can exit by itself.