Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

How to add startup parameters to an EtherCAT slave

berl
2015-09-15
2015-09-15
  • berl - 2015-09-15

    Hello,
    I want to add startup parameters e.g. to the Beckhoff EL6631. I tried this one:

    proj.find("EL6631_1", True)[0].connectors.by_id(1).host_parameters.Insert(1627394048,x)
    

    -> I get the error message: "Collection is read only"

    Any other idea?

    Thanks

     
  • mkeller - 2015-09-15

    Hi.

    The device parameter set does not allow you to add, insert or remove a parameter or clear the whole collection. You are only allowed to change the value of an existing parameter. The documentation of the ScriptEngine should mention that.

    BR
    Martin

     
  • Anonymous - 2015-09-15

    Originally created by: M.Schaber

    Hi,

    The set of device parameters is determined by the device description file and cannot be modified via the scripting API.

    Adding arbitrary host parameters would not be helpful if neither the device nor the device editor honor them...

    HTH,
    Markus

     

Log in to post a comment.