Showing results 1 to 3 of 3

Thread: Different drivers in one structure datatype

  1. #1

    Default Different drivers in one structure datatype

    Hello!

    I have logically joined variables that i want to combine into one structure datatype. This variables are connected to different drivers - iec104, internal and math. As I understand, structure-type based variable can be attached to only one driver. Have you some solution for my case?

  2. #2

    Default Re: Different drivers in one structure datatype

    Hi,

    You are right. A structure variable can only be linked to one driver. All structure variable elements are automatically assigned to this driver. It is not possible to have one structure variable element linked to one driver and another structure variable element linked to another driver.

    One way of "grouping" your variables is through the variable name. This allows easy substitution, and also better handling in symbols. When filtering or sorting in the detailview you get your variables "grouped"

    sw1.maintenance (internal variable)
    sw1.counter (math driver variable)
    sw1.command (iec870 driver variable)

    You can multi-select copy / paste, and then use "replace text in column" to replace e.g. "copy 1 of sw..:" with "sw2" to create a new "instance" of your "structure"

  3. #3

    Default Re: Different drivers in one structure datatype

    Thank you.

    We already use copy-paste method for this "structure".
    Just looking for more object-oriented representation of variables. May be we will simple replace base types in our "structure" with pre-configured child types (with remas, flags and so on), to change them centrally.

Similar Threads

  1. Replies: 6
    Last Post: 17th November 2011, 00:05
  2. Program access to structure datatype variables
    By stolyarov_as in forum VBA
    Replies: 2
    Last Post: 8th August 2011, 14:21
  3. Replies: 1
    Last Post: 19th May 2011, 07:51
  4. Structure varible using OPC Client V2-0
    By bsneddon in forum Drivers
    Replies: 1
    Last Post: 21st April 2011, 23:49
  5. Importing variables from drivers failes
    By roadster in forum Drivers
    Replies: 1
    Last Post: 22nd August 2010, 04:53

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •