Difference between revisions of "Motion Project Example: Cartesian Robot"

From SoftMC-Wiki
Jump to: navigation, search
(System Setup)
(Example Files)
Line 34: Line 34:
 
=Example Files=
 
=Example Files=
 
{|class="wikitable"
 
{|class="wikitable"
!colspan = "2"|'''<big>User Files</big>'''
+
!colspan = "3"|'''<big>User Files</big>'''
 
|-
 
|-
 
!File Name
 
!File Name
 
!Description
 
!Description
 +
!Upload to Controller
 
|-
 
|-
 
|Properties table
 
|Properties table
 
|Excel matrix that contain the information that you need to setup your robot.<br> Notice which information you need to import from your system.
 
|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
 
|CONFIG.PRG
 
|MC-Basic program that define the basic data so that ControlStudio and sofMC Configurator will work.
 
|MC-Basic program that define the basic data so that ControlStudio and sofMC Configurator will work.
 +
|align="center" |'''+'''
 
|-
 
|-
 
|HOMING.PRG
 
|HOMING.PRG
 
|Execute homing procedure for each axis.
 
|Execute homing procedure for each axis.
 +
|align="center" |'''+'''
 
|-
 
|-
 
|AUTOEXEC.PRG
 
|AUTOEXEC.PRG
 
|Execute startPRG.PRG program and HOMING.PRG program.
 
|Execute startPRG.PRG program and HOMING.PRG program.
 +
|align="center" |'''+'''
 
|-
 
|-
 
|CIRCLE.PRG
 
|CIRCLE.PRG
 
|Basic circular movement program
 
|Basic circular movement program
 +
|align="center" |'''+'''
 
|}
 
|}
  
  
 
{|class = "wikitable"
 
{|class = "wikitable"
!colspan = "2"| '''<big>softMC Configurator files - DO NOT MAKE ANY CHANGE</big>'''
+
!colspan = "3"| '''<big>softMC Configurator files - DO NOT MAKE ANY CHANGE</big>'''
 
|-
 
|-
 
!File Name
 
!File Name
 
!Description
 
!Description
 +
!Upload to Controller
 
|-
 
|-
 
|AX_SETUP.PRG
 
|AX_SETUP.PRG
 
|Axes parameters setup program
 
|Axes parameters setup program
 +
|align="center" |'''+'''
 
|-
 
|-
 
|CANSETUP.PRG
 
|CANSETUP.PRG
 
|CANopen communication parameter setup program
 
|CANopen communication parameter setup program
 +
|align="center" |'''+'''
 
|-
 
|-
 
|EC_CDHD.LIB
 
|EC_CDHD.LIB
 
|EtherCat communication function and subroutine with CDHD library file
 
|EtherCat communication function and subroutine with CDHD library file
 +
|align="center" |'''+'''
 
|-
 
|-
 
|EC_USER.LIB
 
|EC_USER.LIB
 
|EtherCat communication function and subroutine library file
 
|EtherCat communication function and subroutine library file
 +
|align="center" |'''+'''
 
|-
 
|-
 
|ETHERCAT.LIB
 
|ETHERCAT.LIB
 
|EtherCat communication function and subroutine library file
 
|EtherCat communication function and subroutine library file
 +
|align="center" |'''+'''
 
|-
 
|-
 
|ECCONFIG.PRG
 
|ECCONFIG.PRG
 
|EtherCat configuration program
 
|EtherCat configuration program
 +
|align="center" |'''+'''
 
|-
 
|-
 
|EC_SETUP.PRG
 
|EC_SETUP.PRG
 
|EtherCat communication setup program
 
|EtherCat communication setup program
 +
|align="center" |'''+'''
 
|-
 
|-
 
|RobLib.LIB
 
|RobLib.LIB
 
|Robot function and subroutine library file  
 
|Robot function and subroutine library file  
 +
|align="center" |'''+'''
 
|-
 
|-
 
|ROBOT.PRG
 
|ROBOT.PRG
 
|Robot parameter setup program  
 
|Robot parameter setup program  
 +
|align="center" |'''+'''
 
|-
 
|-
 
|STARTPRG.PRG
 
|STARTPRG.PRG
 
|Program that runs all other softMC Configurator programs
 
|Program that runs all other softMC Configurator programs
 +
|align="center" |'''+'''
 +
|-
 +
|cartXYZ.apj
 +
|Project file - allowed to load an existing project from ControStudio.
 +
|align="center" |'''−'''
 +
|-
 +
|cartXYZ.mcfg
 +
|Project file - allowed to load an existing project from softMC Configurator.
 +
|align="center" |'''−'''
 +
|-
 +
|cartXYZ.dat
 +
|rowspan="3" align="center"|General project files
 +
|align="center" |'''−'''
 +
|-
 +
|cartXYZ.asn
 +
|align="center" |'''−'''
 +
|-
 +
|cartXYZ.pse
 +
|align="center" |'''−'''
 
|}
 
|}

Revision as of 08:13, 1 October 2017

The following example show how to set a cartesian robot properties using softMC Configurator and how to make circular movement using it.

System Setup

In this example we used the following system:

Wiring as showen:
cart 1.png

The motor parameters calculate according to the manufacture formulas as it's appear in the Excel file.

NOTE-Info.svgNOTE
When using other drivers then CDHD, it's important to inset the motor pitch value, as it provided from the motor manufacture, to the softMC Configurator

softMC Configurator

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

After creating all project files with softMC Configurator, the project ready to run from ControlStudio.
In this example you can upload the relevant files from the ZIP folder (see table bellow) and run it by yourself.

Running The Program

When all relevant files are at 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 CIRCLE.PRG
-->Stas CIRCLE.PRG     'when the program ends, your can find motion record file (CIRCLE.REC) at the controller


Example Files

User Files
File Name Description Upload to Controller
Properties table 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. +
HOMING.PRG Execute homing procedure for each axis. +
AUTOEXEC.PRG Execute startPRG.PRG program and HOMING.PRG program. +
CIRCLE.PRG Basic circular 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 +
cartXYZ.apj Project file - allowed to load an existing project from ControStudio.
cartXYZ.mcfg Project file - allowed to load an existing project from softMC Configurator.
cartXYZ.dat General project files
cartXYZ.asn
cartXYZ.pse