Difference between revisions of "Motion Project Examples"

From SoftMC-Wiki
Jump to: navigation, search
(How To Load Project Example To ControlStudio)
Line 1: Line 1:
 
=Project Examples Manual=
 
=Project Examples Manual=
 +
[[Project Examples Manual| How to use the examples - Download zip files, open projects and run the example]]
 +
 +
 
The following examples created to demonstrated simple robots configuration and movement execute by them. <br>  
 
The following examples created to demonstrated simple robots configuration and movement execute by them. <br>  
 
Every example include '''"ZIP"''' file that contain all the files you need to run the project by your self. You will find the files list in the projects examples pages. <br>  
 
Every example include '''"ZIP"''' file that contain all the files you need to run the project by your self. You will find the files list in the projects examples pages. <br>  

Revision as of 11:03, 15 October 2017

Project Examples Manual

How to use the examples - Download zip files, open projects and run the example


The following examples created to demonstrated simple robots configuration and movement execute by them.
Every example include "ZIP" file that contain all the files you need to run the project by your self. You will find the files list in the projects examples pages.

Notice that there is examples that made for real systems, and examples that made for simulated system.


You can duplicate and modify every project example - you will find instructions bellow.


NOTE-Info.svgNOTE
At the "ZIP" folder you will find an excel file that contain the basic parameters that provided by the robot/motors manufactures. Those parameter were used at the robot setup with softMC Configurator
NOTE-Info.svgNOTE
In some simulated examples there is an option to run simulated robot through RoboDK software, you will find the instructions bellow.


How To Load Project Example To ControlStudio

  1. Download project ZIP file to your computer, extract and save it in accessible folder.
  2. Open ControlStudio. From the menu-bar, choose File → Open Project... and locate the project example file. Notice that the relevant file is the ".apj" file.
    open project.png
  3. To upload the project files to the controller do the following:
    1. At the "File View" window, at the project tree, right click on the project name and choose "Copy all files to controller"
      open project3.png
    2. From terminal → send Reset All command, and after execute send Load AUTOEXEC.PRG task.
      open project4.png
  4. The project now ready to run the specific movement example program, according to example files - instructions given in each example page.

How To Open Project Example Properties With softMC Configurator

  1. After load and run the example to ControlStudio, open softMC Configurator from the menu-bar Tools → softMC Configurator.
    open project5.png
  2. The project setups will open at softMC Configurator window, notice that you use the same system as describe in the example page.
    open project10.png
  3. You can watch and change properties for axes and robot as you want. It's recommended to make project duplicate, as explain bellow, and make changes to the copy.
  4. You can find more information about softMC Configurator HERE

How To simulated Robots Using RoboDK

To simulate relevant examples on RoboDk, you will need the following:

  • RoboDK software. You can download it from HERE
  • mcEnv.py file - Download and extract the file from HERE. Save this file at your roboDK folder.
  • Robot template, that provide with the project.
  • Working ControlStudio that connect to your softMC.

Follow those steps to connect your softMC with the simulated robot using ControlStudio:

  1. After loading project files as explain before, load SERVER.PRG program from ControlStudio terminal :
    --> load SERVER.PRG 

  2. When the program finished, you will get the following message at the Message Log ("socket 2" it's an example)
     socket  2  is set 

  3. With RoboDK open the robot file, RoboDK Station file or .rdk file.
  4. At the left side, right click on Prog1, the python file, and choose Edit Python Script. A new window will opened.
    open project9.png
  5. In the Python script you'll need to make sure that the host IP address, is the one that your softMC has. If it's not the same - change and save it, and close the window:
    open project11.png
  6. Execute double click on the Python script symbol, a small yellow arrow should appear on the symbol. You will get the following message at the Message Log
     client is connected 

  7. From now until you disconnect from RoboDK file, from your network or other interruptions, you can watch every movement command you will execute in ControlStudio.

Project Example Duplication

In case you want to use the projects examples setups, or want to create your own setups, you can copy the examples properties, including programs files, library and more, by following the next steps:

  1. From ControlStudio, at the menu-bar, choose File → Save Project as...
  2. Locate project copy at any folder you'll like.
  3. You have now a new robot, with all necessary files, ready for you to take control.

Robot Examples