S4Start from "main" [WebWare SDK]
I have an IRC5 multimove system, and I am trying to remotely start all my tasks from main. To do this, I call S4Start with the "main" argument and the appropriate task ID number for the task I want to start. However, it appears that it only starts the first task when I do this. It is almost like the task ID number argument is not working correctly.
I can call S4Start with an empty program name "" and a task ID number and it works fine.
Any ideas?
I can call S4Start with an empty program name "" and a task ID number and it works fine.
Any ideas?
0
Comments
-
Hi,
we had similar problems some time ago and could't make it work. We solved the problem by defining system signals for starting the robots by digital I/O. Then, we write to these signals from our application. You can get more detailed information if you are not familiar to these techniques.
In this case, please provide an email adress.
0 -
So after some testing, here is a more specific description of what is happening:
I want to start all the tasks from main in my IRC5 controller using WebWare SDK. I can start tasks one at a time from "main" using S4Start without a problem. However, when one task is already running and I try to start another one, it gives me the Interlink Error -2106, which I think means "Procedure not found".
This does not happen if I call S4Start with an empty procedure name. In that case, all the tasks start from where they are without problems.
Any more ideas?
Thanks.
0 -
Also, I don't think I can use IO signals to start individual tasks. From what I have seen in the system parameter manual it looks like the system input for Start affects all the tasks. I will have to test this out though.
0 -
Hi again,
yes, you are right. Starting by system signals starts all tasks. It seemed as if this was what you needed ... However, I think you will have to stop all tasks via a system signal, too.
0 -
You are correct, that does work to start all tasks from main. So I will do it that way for now. However, it seems like I should be able to do that with S4Start as well, maybe there is a bug.
Thanks for your help!
0 -
I share your opinion that there might be a bug. But since when do you expect Interlink to work the way YOU want ? Or, by all means, to be free of bugs ? I apologize (?) for the irony ...
0 -
This is true. Now I have a problem where if I try to read a string array that contains a comma, it claims that the array data is corrupt. I don't think you have to apologize at all :-)
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings