Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entry point for robostudio code #38

Open
mohsafwat23 opened this issue Mar 13, 2023 · 5 comments
Open

Entry point for robostudio code #38

mohsafwat23 opened this issue Mar 13, 2023 · 5 comments

Comments

@mohsafwat23
Copy link

I was trying the example in robot_setup_manual.md. However, I'm unable to communicate the virtual controller with the example.py.

Is there an entry point to the Rapid program, because I don't see the main() function?

Any help will be greatly appreciated!

@johnwason
Copy link
Collaborator

The configuration files loaded during the installation process change the entry point procedures. The three entry points are motion_program_main, motion_program_logger_main, and error_reporter.

What is the exact error message you are seeing?

A common problem is another program using port 80, which is needed by the virtual controller. What do you see if you go to http://127.0.0.1:80 in a browser?

@mohsafwat23
Copy link
Author

Thanks for the reply!

The entry point I used is motion_program_main, and here is the error I get

robostudioPythonError

The http://127.0.0.1:80 gets established when I run the python code.

@johnwason
Copy link
Collaborator

What do you see when you connect to http://127.0.0.1:80 when Robot Studio is not running?

The Python code will start the RAPID program when you execute a motion program. Do not press start yourself.

@mohsafwat23
Copy link
Author

mohsafwat23 commented Mar 14, 2023

I get this site can't be reached and the python code gets interrupted when it is running.

@johnwason
Copy link
Collaborator

You are using Robot Ware 6.13 or 6.14 on virtual IRC5? If you open the Robot Studio project and see the virtual controller is ready, the Python example still returns an error if you try to run it? (Don't press "Start" in Robot Studio, Python will start the task)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants