CanOpen softmotion example

2019-07-12
2019-09-18
  • mos89@yahoo.com - 2019-07-12

    Hi,

    I am evaluating codesys, i have a Janztec eMPC running codesys RTE x64 with softmotion

    I am able now to use my axis via canOpen command, i would like to have an example in softmotion to be able to synchronize this two axis

     
  • eschwellinger

    eschwellinger - 2019-07-15

    Hi,
    just ust the examples from the SoftMotion package:

    "c:\Program Files\CODESYS 3.5.14.0\CODESYS\Projects\SoftMotion\4.5.0.0\Examples\Tutorial\PLCopenMulti.project"

    To have them running with your axis, just add CANbus-CANopenManager_SoftMotion_ followed by your drives.

    (rename the virtual axis from the example.

    BR
    Edwin

    IMG: renameAxis.png

     
  • mos89@yahoo.com - 2019-07-16

    Edwin Schwellinger hat geschrieben:
    Hi,
    just ust the examples from the SoftMotion package:
    "c:\Program Files\CODESYS 3.5.14.0\CODESYS\Projects\SoftMotion\4.5.0.0\Examples\Tutorial\PLCopenMulti.project"
    To have them running with your axis, just add CANbus-CANopenManager_SoftMotion_ followed by your drives.
    (rename the virtual axis from the example.
    BR
    Edwin

    thanks Edwin,
    do i need to set up something special for the axis PDO ? when i try to use with my axis i am not able to control it

     
  • eschwellinger

    eschwellinger - 2019-07-17

    Hi,
    depends on the drive.
    Which drive is it?

    BR
    Edwin

     
  • mos89@yahoo.com - 2019-07-18

    Edwin Schwellinger hat geschrieben:
    Hi,
    depends on the drive.
    Which drive is it?
    BR
    Edwin

    elmo Gold twitter CanOpen

     
  • eschwellinger

    eschwellinger - 2019-07-18

    is this device CIA DS402 compliant?
    Could you attach the EDS?

    BR
    Edwin

     
  • mos89@yahoo.com - 2019-07-18

    Edwin Schwellinger hat geschrieben:
    is this device CIA DS402 compliant?
    Could you attach the EDS?
    BR
    Edwin

    hi

    here is the file

    CANeds Gold V002.zip [7.33 KiB]

     
  • eschwellinger

    eschwellinger - 2019-07-20

    Hi,
    I would give this a try:

    BR
    Edwin

    IMG: PDOKonfig.PNG

     
  • mos89@yahoo.com - 2019-07-22

    Edwin Schwellinger hat geschrieben:
    Hi,
    I would give this a try:
    BR
    Edwin

    Edwin,
    When i add the SM_DRIVE402 generic device to my elmo drive the mode of operation(0x6060) is always set to 8
    this is controled by the driver ? is it possible to select another operation mode ?

     
  • eschwellinger

    eschwellinger - 2019-07-22

    Hi,
    you could use MC_Power, MC_Move... all PLCopen Fb's.
    If you want to command the axis manually ( do everything by your own) no need to add the SoftMotion drive...
    But it is alot easier with the functionblocks.
    BR
    Edwin

     
  • mos89@yahoo.com - 2019-07-23

    Edwin Schwellinger hat geschrieben:
    Hi,
    you could use MC_Power, MC_Move... all PLCopen Fb's.
    If you want to command the axis manually ( do everything by your own) no need to add the SoftMotion drive...
    But it is alot easier with the functionblocks.
    BR
    Edwin

    hi even if i am not using any function block
    my mode of operation is set at 8, is it the SM_genericDS402 driver which set that value is it possible to modify it, that enable only cyclic synchronous position mode

    IMG: codesys mot.png

     
  • eschwellinger

    eschwellinger - 2019-07-24

    Hi,
    at the moment you could not change this manually ( I mean if you use the SoftMotion drive the modes are commanded by the driver/Softmotion)
    But usually this is how to use it... I guess you just need to figure out why your drive/axis is in error state.
    If it is a DS402 compliant drive you may adjust these values here for your drive:

    Keep in mind that this additional page/views only occure if you enable Tools-options->device editor->
    By the way with the upcoming 3.5SP15 release there is a new function to make it possible to write manually the PDO's from the application.
    (SMC_SetController mode to 0 ) will decoulple the mappings to the SoftMotion FB's.

    BR
    Edwin

    IMG: DS402genericDriveParameter.png

     
  • mos89@yahoo.com - 2019-08-01

    Edwin Schwellinger hat geschrieben:
    Hi,
    at the moment you could not change this manually ( I mean if you use the SoftMotion drive the modes are commanded by the driver/Softmotion)
    But usually this is how to use it... I guess you just need to figure out why your drive/axis is in error state.
    If it is a DS402 compliant drive you may adjust these values here for your drive:

    Keep in mind that this additional page/views only occure if you enable ->
    By the way with the upcoming 3.5SP15 release there is a new function to make it possible to write manually the PDO's from the application.
    (SMC_SetController mode to 0 ) will decoulple the mappings to the SoftMotion FB's.
    BR
    Edwin

    Hi
    I update to codesys 3.5SP15
    i have no more error on my SM_Drive_GenericDSP402
    i still have my mode of operation blocked at mode 8

    IMG: codesys can4.png

     
  • mos89@yahoo.com - 2019-09-18

    hi
    i have updated codesys to the last release when i try to open sample project
    i have now this error:

    IMG: codesys1.png

    IMG: codesys2.png

     

Log in to post a comment.