Hi, I am trying to develop a special Lab utilizing a Fanuc CR-35ia. Right now I develop my TP program by using matlab simscape to output a CSV file with end effector positions which I convert to a KAREL file using a VBA script. I then verify and export to the robot using ROBOGUIDE, then run from the controller itself. However, it is part of my goal to be able to cut out the need to export to and run from the controller. I want to be able to create the TP program and run straight from my computer without the need to get up and press start on the controller. Is this possible, if so, how?
Creating, Transfering, and running program from PC
-
intelligentrobotics -
January 31, 2024 at 9:09 PM -
Thread is Unresolved
-
-
MOM
January 31, 2024 at 9:37 PM Approved the thread. -
I think there are two parts to your question: exporting and executing.
I don't think there's any real workaround to exporting, or more precisely, running the program from the robot controller. The program will somehow need to execute from the robots RAM. How you get it onto the controller is up to you, whether it's a USB drive, PCShare, or FTP.
Executing the program from your computer is definitely possible. For a quick and dirty approach that only requires an ethernet cable and PC, I would look into using KCL commands over Telnet.
-
Right now I develop my TP program by using matlab simscape to output a CSV file with end effector positions which I convert to a KAREL file using a VBA script.
TP and KAREL are two completely different languages. What does your final output look like?
I want to be able to create the TP program and run straight from my computer without the need to get up and press start on the controller. Is this possible, if so, how?
Depends. What options does your robot have installed?
You'll have to execute at least two steps: first, send the program to the robot, and then execute it. Programs can be pushed to the robot using simple FTP, but execution is trickier. Without an industrial controller to connect to the UI/UO of the robot controller, you might have to use URLs to trigger a KAREL program that might be able to issue start/stop signals using the Rack 0 loopback.
-
Starting remotely is possible. You can use an HTTP command to set a register value. Then if you monitor that register value in BG Logic it can turn on a Flag. The flag can be mapped to UIs or a Macro trigger to start the program.
-
Starting remotely is possible. You can use an HTTP command to set a register value. Then if you monitor that register value in BG Logic it can turn on a Flag. The flag can be mapped to UIs or a Macro trigger to start the program.
Should be also possible to set the Flag direct trough HTTP command, so the step over BG logic is obsolete, at least to start a macro.
-
Set $RMT_MASER = 1 and local/remote to remote.
Under SETUP > HOST COMM > Telnet, assign a password for the KCL user:
Once that is set, you're done with the robot.
On your computer, first verify connection to the robot by pinging it. If Telnet is not enabled, google how to enable it. Once successful, from CMD:
>telnet {robot.ip}
You should see:
ogin with the kcl user and the password you set earlier.
Then from the KCL prompt:
KCL> RUN <prog_name>
If you forgot to set the correct remote master, you can set it from the KCL prompt:
If I need a quick way to run remotely for development, I prefer to do it this way. Mostly because the only thing you really need to change on the robot side is the remote master variable.
KCL and Telnet still have their uses.
-
Thank you all very much I will be working on this for a while and appreciate all the help I can get.