Create Array template elements

Forum Home Forums Communicating with Devices Create Array template elements

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13899
    LouisC
    Participant

    Hi,
    I am currently working on an device configuration import functionality. I need to create device template array elements but I don’t understand how to do it.

    In the “Simulator” default device, there is a group named “random” in which there is an array (see image here) and I would like to reproduce this configuration in a new device. I don’t see how to do it via “Properties”>”Edit” window.

    Could you explain how to create an array element for a device template ?

    Regards

    #13902
    Mikhail
    Moderator

    Hi,
    An implementation depends on the driver. What communication protocol do you use?

    #13910
    LouisC
    Participant

    Thank you for your answer,
    I use Modbus TCP

    #13914
    Mikhail
    Moderator

    The Modbus driver does not create data tags of the array type. If a device has a list of similar registers, you could create a “request” (in terms of the driver) that includes the necessary number of elements to read. In this case, the driver creates a group of data tags.

    #14351
    JW
    Participant

    So to use array data, the driver must array / list type support built in? or the protocol itself must support array / list type such as bacnet.

    the current modbus driver seems not, neither the modbus protocol.

    ———————————–

    If array / list type can be more flexible, that will be great.
    E.g. in many real worlds case, the modbus data return a list of value in a row. e.g. 100 values of current from address 101 to 201.

    #14353
    Mikhail
    Moderator

    For example, the device returns a list of registers A1…A10. And a manufacturer says that this is an array. A driver should create a tag that has length > 1 to support an array. But the current Modbus driver does not support this.

    While OPC devices can return data of array types. And the OPC driver also supports this.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.