Driver Dev

krizans
2021-02-09
2021-02-10
  • krizans

    krizans - 2021-02-09

    Hi I am developing drivers for my devices. The drivers are working fine, but I want to add a drop-down list with certain parameters to the device configuration window. How do I do this?

     
  • i-campbell

    i-campbell - 2021-02-09

    The parameters listed in your device description can be seen by turning on the Show generic device configuration views

    To create a custom editor like you see for example with Ethernet IP Scanner, you will need to purchase Automation Platform, or have CODESYS or their System Partners program such an editor for you.

     
  • krizans

    krizans - 2021-02-10

    Thank you, how do I enable Show generic device configuration views? Do you have an example of devdesc.xml file that contains drop-down lists and other elements of the user interface.

     
  • i-campbell

    i-campbell - 2021-02-10

    It says how to enable in the link, right?
    An example with a generic editor is:
    https://forge.codesys.com/drv/io-drivers/code/HEAD/tree/trunk/
    - IoDrvFB.devdesc.xml
    - IoDrvFB.library
    It does not have any enums, you can look at the enum in the following example, with parameter EthernetProtocol which is only available in the generic editor view

    An example with an Automation Platform editor is:
    Tools > Device Repository > Fieldbuses > Ethernet Adapter > Ethernet > Export

     
  • krizans

    krizans - 2021-02-10

    Thanks. The fact is that I have my task to write my own interface for configuring my device. Whether it is implemented by means of .devdesc.xml ? In order for the configuration registers to be in the form of a drop-down list with values. Currently, a number is written to the configuration registers to select the device mode.

     

Log in to post a comment.