Showing results 1 to 2 of 2

Thread: Error with function structure member.

  1. #1
    Join Date
    31.08.2017
    Posts
    1

    Frage Error with function structure member.

    Hello,

    Iam programming with the IDE Straton.

    Iam trying to use 2 structure parameter, one 'IN' and one 'OUT'.
    The types of the structures are the same ACCE_QUALITY.

    ACCE_QUALITY :
    - validity : BYTE
    - detailQual : ACCE_DETAIL_Q
    - source : BYTE
    - test : BOOL
    - operatorBlocked : BOOL

    ACCE_DETAIL_Q :
    - overflow : BOOL
    - outOfRange : BOOL
    - ...


    But when I compiled my function i have this error :
    Loading application symbols...
    quality_in: Invalid parameter declaration: complex data types not supported
    Opt.: Requires option 'Complex variables in separate segment'
    quality_out: Invalid parameter declaration: complex data types not supported
    Opt.
    : Requires option 'Complex variables in separate segment'

    So I Try with the option 'Complex variables in separate segment' and i have a other error :
    Build in progress... Please Wait...
    Compiler V15.4.2.0
    >> Complex variables stored in a separate segment
    Loading application symbols...
    : quality_out (gestion_mode_in): Invalid type for structure member
    Error(s) detected


    I dont know how to resolve this problem.

    I found a patch but i dont like that :
    I use 2 'IN' parameter, and i only modify the second 'IN' as if a 'OUT', but is not a good solution...

    Please help me pls.

    Arpa

  2. #2
    Join Date
    08.12.2015
    Posts
    39

    Default Re: Error with function structure member.

    Hello Arpa,

    This is difficult to say, normally structures are accepted as inputs and outputs as soon as the 'Complex variables in a separate segment' is used.
    Please send me your project at support.fr@copadata.com (On the left, in the project list, right-click on the project > Save project > To zip)

    Thank you,

    Anthony

Similar Threads

  1. Editing structure datatype
    By yolovs in forum zenon Supervisor
    Replies: 2
    Last Post: 8th July 2013, 14:22
  2. Different drivers in one structure datatype
    By stolyarov_as in forum zenon Supervisor
    Replies: 2
    Last Post: 13th December 2011, 08:30
  3. Structure varible using OPC Client V2-0
    By bsneddon in forum Drivers
    Replies: 1
    Last Post: 21st April 2011, 23:49
  4. SQL error when I try the archive server function
    By lephis in forum zenon Supervisor
    Replies: 2
    Last Post: 23rd April 2009, 14:20
  5. New member
    By gh_ounie in forum zenon Supervisor
    Replies: 1
    Last Post: 21st January 2008, 07:42

Tags for this Thread

Posting Rules

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