3-Axis XYZ Cartesian Group Setup in EtherCAT Network

From SoftMC-Wiki
Revision as of 01:19, 19 April 2022 by Hallel (talk | contribs) (Hallel moved page 3-Axis Group Setup in EtherCAT Network to 3-Axis XYZ Cartesian Group Setup in EtherCAT Network: This page explains how to configure an XYZ Cartesian Group)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文(简体)‎

TOP2.png

Introduction

Note: Only essential background information is included in this training manual. For downloads and more information about the softMC hardware and software systems, use the resources available on the Servotronix website.

ControlStudio is a PC-based graphical user interface for developing and testing motion applications controlled and/or coordinated by the softMC. ControlStudio contains a programming editor, data recorder, debugger and monitoring tools. Once the application programs are completed, the PC can be removed and the softMC controller can operate standalone or within a network.

softMC Configurator is a wizard that is bundled with ControlStudio. The Configurator is used to define the axes and IOs to be controlled in the motion application; it then generates a set of programs and files for initializing the softMC.

MC-Basic (Motion Control BASIC) is the proprietary programming language developed by Servotronix for use with the softMC. It is based on standard BASIC programming language, with extensive enhancements for multi-tasking and motion control functionalities.

Procedures

step 1: Install and activate ControlStudio

Windows

  1. If any previous versions of softMC are installed on the PC, uninstall them.
    For instructions, refer to Appendix A of this document and/or contact Technical Support.
  2. Run CSSetup.exe to install ControlStudio.
    Accept the default settings during the installation.
    Four programs are installed.
  3. If not already opened, activate ControlStudio (from the Start menu or desktop icon).



step 2: Install device parameter (library) file on PC

ControlStudio Offline

  1. From the ControlStudio menu bar, activate the softMC Configurator.
    Select: Tools > softMC Configurator
    Note: Always activate Configurator from ControlStudio (do not use desktop icon).

  2. When operating offline, the Configurator looks like this.
    configurator-2.png
    At the bottom-right of the Configurator screen, click Install Libraries.
    Note: Libraries is a file that contains the parameters of all I/O devices and drives that can be controlled by the softMC.
    An updated Libraries file must be installed on the PC whenever new controller firmware is installed.

  3. Browse to the folder containing the file configurator_archive_0.4.x.x.bndl
    This is the Libraries file.
    Click Open.
    configurator-library.png
    Wait for the confirmation message. Click OK.

  4. Close Configurator.
    Note: Do not minimize. You must close Configurator.



step 3: Make the cable connections


  1. Connect the system cables, if not already connected.
    Refer to diagram below.
    For more instructions, refer to the softMC Installation Guide'.

    softMC 7 with CDHD – EtherCAT devices and network

    softMC-3-Networks-CDHD-EtherCAT-v4a.png

  2. Turn on the softMC system.


step 4: Establish communication between PC and softMC

ControlStudio Online

  1. At the right side of the ControlStudio screen, hover over Controller Monitor.
    The Controller Monitor pane opens.
    Click the Refresh button.
    Wait a few moments until the softMC in your setup is recognized and displayed in the list. (e.g., “DEMO”)
    configurator-169.png

  2. Select the detected softMC, and click the Connect button.
    configurator-118.png
  3. The communication status at the bottom of the screen turns green, indicating that the softMC and ControlStudio are communicating.
    configurator-170.png

  4. In the middle of the ControlStudio screen, you will see the Terminal pane.
    Note: The Terminal is a command line interface to the softMC. It allows you to send commands and queries to the softMC, and receive responses in return.
    To confirm communication has been established, place the cursor in the Terminal pane.
    Query the firmware version: ?ver
    configurator-152b.png
    Make sure the response to the version query is 0.4.16.2 or later.
    If necessary, update the softMC firmware. For instructions, refer to Appendix B of this document and/or contact Technical Support.

  5. Make sure program config.prg is cleared of all program lines.
    It must contain only 2 lines:
Program 
End program


step 5: Create a Configurator project


  1. Open Configurator.
    Access through: Tools > softMC Configurator
    The Open Project dialog box opens:
    configurator-1.png

  2. Select the New Project tab.
    A list of all installed libraries is displayed, with the library most suitable for the currently installed firmware selected.
    configurator-24.png
    Click OK.
    A Configurator project is created, but is not yet saved.

  3. The Configurator opens.
    If using EtherCAT network, the Configurator online screen will look like this:
    configurator-25.png

Note: If using an EtherCAT network, drives and I/O devices are automatically detected and displayed in the Buses section of the navigation pane.

  1. Optional: In the MC Name field, enter a name for the softMC; e.g., DEMO_EX

  2. Optional: Create a folder/file and save the Configurator project (called EX01).
    configurator-16.png

    configurator-157.png



step 6: Define three axes for the configuration


  1. In the navigation pane, right-click on Axes, and add Axis A1.
    Repeat for Axis 2 and Axis 3.

    configurator-4.png

  2. Optional: Save the Configurator project.



step 7: Define axis A1 configuration settings


  1. In the navigation pane, select the first drive (CDHD).
    When selected, the device is displayed in blue text.

  2. Enter settings as shown below.
    General Settings:
    Initial Active OpMode = 8-Cyclic synchronous position
    Physical Address = 1
    Click Apply.

    configurator-20.png

    Note: For proper operation, Initial Active OpMode must be set to 8-Cyclic synchronous position.

    Drive Axis Linkage:
    Link Drive to Axis = A1.
    Click the Link arrow.

    configurator-131a.png

  3. The Configurator displays the Axis:A1 screen.
    The screen has four tabs: General, Properties, Motion and Graph.

    In the General tab, enter settings as shown below.
    Note: These values are for demonstration purposes only, and are not necessarily suitable for your application.'
    Axis Type =
    Linear Screw
    Length Units =
    mm
    Gear Ratio =
    1.0
    Screw Pitch =
    10 (mm)

     :configurator-5.png

  4. In the Properties tab, click on the Limits bar to access Limit parameters.
    Change the value of the following parameter:
    Position Error Max = 2
    After typing in a value, be sure to press Enter.

    configurator-6.png

  5. Optional: Save the Configurator project.



step 8: Define axis A2 and axis 3 configuration settings


Configurator online

  1. Define the parameters for Axis A2 and for Axis 3 by repeating the steps in Step 7.

  2. Optional: Save the Configurator project.



step 9: Define the Cartesian group

 

  1. In the navigation pane, right-click on Groups, and select Add Group.
    The Add a Group/Robot dialog box opens:

    configurator-7.png

    Select: Cartesian group
    Enter a name for the group; for example: gxyz
    Select the specific configuration; for example: cartesian xyz xyz
     
  2. Assign axes to the group: in the list; double-click on axis A1, A2 and A3.
    They will move to the Assigned Axes list.

    configurator-8.png

    Click OK.
    The axis group is now defined:

    configurator-9.png
     
  3. Optional: Save the Configurator project.

 

step 10: Compile project files and send configuration to the softMC


  1. In the Configurator menu bar, click the Build & Run button.

    configurator-10.png
    Note: The project is saved before the compilation is executed. If you have not yet saved the project, a File Manager dialog box will prompt you to save.

  2. The Configurator generates files on the PC and sends them to the softMC.
    When complete, click Close.

    configurator-11.png

  3. You can view folders and files using the ControlStudio File View pane.

    configurator-21.png

  4. Note: If you created and saved folder/files named EXO1, the Configurator will generate a ControlStudio file called EX01.APJ file.: It will also generate a folder called EXO1_Files
    In ControlStudio, go to the File Manager pane at the bottom of the screen.
    Select folder EX01 in the left pane, and look at the middle pane.
    If files do not appear, right-click in the middle pane > Refresh List

    Note: Files in the right pane reside in the softMC. Do not click on these files, or attempt to manipulate them.

    configurator-164.png



step 11: Verify the configuration by moving the axes


  1. Select the Axis Group you configured (Cartesian group gxyz), and open the Motion tab.

    configurator-12.png

  2. Enter Target Position values for the three axes in the group; for example:

    Target A1: 10
    Target A2: 20
    Target A3: 30

    Change the value of the Velocity parameter to 20. (A slow speed allows you to more easily verify the motion).

    Switch the axis group to Enabled.
    configurator-13.png

  3. Hold and press the Run button.
    configurator-14.png

    Watch the actual axes and/or watch the position values on the screen.
    Motion will end when the Position values equal the Target values.


Appendices

Appendix A: Uninstall previous ControlStudio installation

Windows

  1. Uninstall all previously installed softMC programs.
    You can identify and uninstall the programs to be removed according to the publisher name: Servotronix.

    Note: Do not uninstall ServoStudio by Servotronix.


Appendix B: Update the softMC firmware

ControlStudio online

  1. To update the firmware:
    Tools > Firmware Update

  2. At the prompt, click Update.

  3. Browse to the folder containing the firmware zip file.
    Select the file and click Open.

  4. Follow the prompts.
    During the firmware update, the controller power cycles automatically.
    The Communication status indication turns yellow.
    Wait for the yellow LED on the front of the Demo Kit to turn off.
    To reestablish communication, use the Reset Communication button in the Controller Monitor pane (or Ctrl+D).

  5. When finished, check the version again.
    If it does not appear to be updated, turn the controller off and then on again.
    Make sure Communication status in indicates Connected.