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 get IScriptDeviceObject

MSprock
2016-10-28
2016-11-02
  • MSprock - 2016-10-28

    Hi,

    I'd like to use a method from IScripDeviceObject in a "regular" plugin that does not use ScriptEngine yet. Is there a way to get the IScripDeviceObject from IDeviceObject? (Cast does not work.) Or do I have to use ScriptEngine.Execute?

    Thanks in advance.

     
  • mkeller - 2016-10-31

    Hi MSprock.

    MSprock hat geschrieben:
    I'd like to use a method from IScripDeviceObject in a "regular" plugin that does not use ScriptEngine yet. Is there a way to get the IScripDeviceObject from IDeviceObject? (Cast does not work.) Or do I have to use ScriptEngine.Execute?

    Which method do you want to use?

    BR
    Martin

     
  • MSprock - 2016-11-02

    M.Keller hat geschrieben:
    Hi MSprock.
    Which method do you want to use?
    BR
    Martin

    Hi Martin,

    the methods are: export/import_io_mappings_from_csv

    Best regards

     
  • mkeller - 2016-11-02

    Hi MSprock.

    Your question should normally be send to our support because it is beyond the scope of this forum.

    MSprock hat geschrieben:
    the methods are: export/import_io_mappings_from_csv

    These two methods of the IScriptDeviceObject are just calling the corresponding command with the necessary arguments.

    Both commands use the following argument list:
    - File path of the CSV file
    - Project handle of the project which contains the device
    - Object Guid of the device which should import/export its IO mapping

    BR
    Martin

     

Log in to post a comment.