Difference between revisions of "Motion Project Example: Puma Robot CDHD"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "Enjoy Noam")
 
(new page)
Line 1: Line 1:
Enjoy Noam
+
The following example show how to set Puma robot properties using [[softMC Configurator]] and how to make Helix movement and Pick and Place method using it. <br>
 +
 
 +
 
 +
'''NOTICE''' - You can [[media:Puma01 CDHD.zip|download]] the example files, open the project with ControlStudio, and you'll have all the initial files to run this example. The instructions will be listed below.
 +
 
 +
 
 +
=System Setup=
 +
In this example we used the following system: <br>
 +
* softMC 7.
 +
* Six CDHD drivers connected to six motors
 +
* Computer with [[Control Studio|ControlStudio]] and [[softMC Configurator]]. <br>
 +
* [[media:Puma01 CDHD.zip| Example files]] - Programs, setups, properties and more. You can find files description down bellow (4.1)
 +
Wiring as shown: <br>
 +
[[image:puma 1.png |600px]] <br>
 +
The motors parameters calculate according to the manufacture formulas as it's appear in the Excel file.
 +
 
 +
=softMC Configurator=
 +
To upload the example setups to your sofMC Configurator, open the example '''.mcfg''' file from the softMC Configurator.
 +
 
 +
After creating all project files with softMC Configurator or upload an existing project, you can run your Puma robot from ControlStudio or from the softMC Configurator itself. <br>
 +
In this example we will make a helical movement and execute Pick and Place program with MC-Basic program, from ControlStudio terminal.
 +
 
 +
For more information about how to setup Puma robot parameters using softMC Configurator - [[6-Axis Puma robot Setup|look here]] <br>
 +
 
 +
=Running The Program=
 +
To upload the example setups to your ControlStudio, open the example '''.apj''' file from the Controlstudio.<br>
 +
When all relevant files upload to your controller, use the following code, from ControlStudio-terminal to run the example:
 +
 
 +
<syntaxhighlight lang='VB'>
 +
-->reset all
 +
-->load AUTOEXEC.PRG  'wait until the program will terminate
 +
-->load HELIX.PRG      'Load helical movement program
 +
-->Stas HELIX.PRG
 +
-->load PnP.PRG        'Load Pick and Place program 
 +
-->Stas PnP.PRG 
 +
</syntaxhighlight>
 +
 
 +
=Example Files=
 +
You can find all the example files attached [[media:Puma01 CDHD.zip|Here]] <br>
 +
It's recommended to download the file attached, upload the relevant files to the controller, connect between RoboDK and ControlStudio, and run the program.
 +
 
 +
==Files table With Description==
 +
 
 +
{|class="wikitable"
 +
!colspan = "3"|'''<big>User Files</big>'''
 +
|-
 +
!File Name
 +
!Description
 +
!Upload to Controller
 +
|-
 +
|Puma01_CDHD
 +
|Excel matrix that contain the information that you need to setup your robot.<br> Notice which information you need to import from your system.
 +
|align="center" |'''−'''
 +
|-
 +
|CONFIG.PRG
 +
|MC-Basic program that define the basic data so that ControlStudio and sofMC Configurator will work.
 +
|align="center" |'''+'''
 +
|-
 +
|AUTOEXEC.PRG
 +
|Execute startPRG.PRG program and SERVER.PRG program.
 +
|align="center" |'''+'''
 +
|-
 +
|HELIX.PRG
 +
|Basic helical movement program.
 +
|align="center" |'''+'''
 +
|-
 +
|PnP.PRG
 +
|Basic "Pick and Place" movement program.
 +
|align="center" |'''+'''
 +
|}
 +
 
 +
 
 +
{|class = "wikitable"
 +
!colspan = "3"| '''<big>softMC Configurator files - DO NOT MAKE ANY CHANGE</big>'''
 +
|-
 +
!File Name
 +
!Description
 +
!Upload to Controller
 +
|-
 +
|AX_SETUP.PRG
 +
|Axes parameters setup program
 +
|align="center" |'''+'''
 +
|-
 +
|CANSETUP.PRG
 +
|CANopen communication parameter setup program
 +
|align="center" |'''+'''
 +
|-
 +
|EC_CDHD.LIB
 +
|EtherCat communication function and subroutine with CDHD library file
 +
|align="center" |'''+'''
 +
|-
 +
|EC_USER.LIB
 +
|EtherCat communication function and subroutine library file
 +
|align="center" |'''+'''
 +
|-
 +
|ETHERCAT.LIB
 +
|EtherCat communication function and subroutine library file
 +
|align="center" |'''+'''
 +
|-
 +
|ECCONFIG.PRG
 +
|EtherCat configuration program
 +
|align="center" |'''+'''
 +
|-
 +
|EC_SETUP.PRG
 +
|EtherCat communication setup program
 +
|align="center" |'''+'''
 +
|-
 +
|RobLib.LIB
 +
|Robot function and subroutine library file
 +
|align="center" |'''+'''
 +
|-
 +
|ROBOT.PRG
 +
|Robot parameter setup program
 +
|align="center" |'''+'''
 +
|-
 +
|STARTPRG.PRG
 +
|Program that runs all other softMC Configurator programs
 +
|align="center" |'''+'''
 +
|-
 +
|Puma01_CDHD.apj
 +
|Project file - allowed to load an existing project from ControStudio.
 +
|align="center" |'''−'''
 +
|-
 +
|Puma01_CDHD.mcfg
 +
|Project file - allowed to load an existing project from softMC Configurator.
 +
|align="center" |'''−'''
 +
|-
 +
|Puma01_CDHD.dat
 +
|rowspan="3" align="center"|General project files
 +
|align="center" |'''−'''
 +
|-
 +
|Puma01_CDHD.asn
 +
|align="center" |'''−'''
 +
|-
 +
|Puma01_CDHD.pse
 +
|align="center" |'''−'''
 +
|}

Revision as of 07:21, 11 October 2017

The following example show how to set Puma robot properties using softMC Configurator and how to make Helix movement and Pick and Place method using it.


NOTICE - You can download the example files, open the project with ControlStudio, and you'll have all the initial files to run this example. The instructions will be listed below.


System Setup

In this example we used the following system:

Wiring as shown:
puma 1.png
The motors parameters calculate according to the manufacture formulas as it's appear in the Excel file.

softMC Configurator

To upload the example setups to your sofMC Configurator, open the example .mcfg file from the softMC Configurator.

After creating all project files with softMC Configurator or upload an existing project, you can run your Puma robot from ControlStudio or from the softMC Configurator itself.
In this example we will make a helical movement and execute Pick and Place program with MC-Basic program, from ControlStudio terminal.

For more information about how to setup Puma robot parameters using softMC Configurator - look here

Running The Program

To upload the example setups to your ControlStudio, open the example .apj file from the Controlstudio.
When all relevant files upload to your controller, use the following code, from ControlStudio-terminal to run the example:

-->reset all
-->load AUTOEXEC.PRG   'wait until the program will terminate
-->load HELIX.PRG      'Load helical movement program
-->Stas HELIX.PRG 
-->load PnP.PRG        'Load Pick and Place program  
-->Stas PnP.PRG

Example Files

You can find all the example files attached Here
It's recommended to download the file attached, upload the relevant files to the controller, connect between RoboDK and ControlStudio, and run the program.

Files table With Description

User Files
File Name Description Upload to Controller
Puma01_CDHD Excel matrix that contain the information that you need to setup your robot.
Notice which information you need to import from your system.
CONFIG.PRG MC-Basic program that define the basic data so that ControlStudio and sofMC Configurator will work. +
AUTOEXEC.PRG Execute startPRG.PRG program and SERVER.PRG program. +
HELIX.PRG Basic helical movement program. +
PnP.PRG Basic "Pick and Place" movement program. +


softMC Configurator files - DO NOT MAKE ANY CHANGE
File Name Description Upload to Controller
AX_SETUP.PRG Axes parameters setup program +
CANSETUP.PRG CANopen communication parameter setup program +
EC_CDHD.LIB EtherCat communication function and subroutine with CDHD library file +
EC_USER.LIB EtherCat communication function and subroutine library file +
ETHERCAT.LIB EtherCat communication function and subroutine library file +
ECCONFIG.PRG EtherCat configuration program +
EC_SETUP.PRG EtherCat communication setup program +
RobLib.LIB Robot function and subroutine library file +
ROBOT.PRG Robot parameter setup program +
STARTPRG.PRG Program that runs all other softMC Configurator programs +
Puma01_CDHD.apj Project file - allowed to load an existing project from ControStudio.
Puma01_CDHD.mcfg Project file - allowed to load an existing project from softMC Configurator.
Puma01_CDHD.dat General project files
Puma01_CDHD.asn
Puma01_CDHD.pse