REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Solved Extra parameters for REXLANG inside Subsystem?

    REXYGEN Studio
    2
    4
    437
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Apollo
      last edited by

      I am using a REXLANG FB inside a Subsystem and I want to inherit 17 parameters inside the REXLANG FB from the subsystem. However, there are only 16 parameters available.
      What is the best approach for this?

      cechuratC 1 Reply Last reply Reply Quote 0
      • cechuratC
        cechurat @Apollo
        last edited by

        @apollo Hi Kris,

        if you have any spare REXLANG Input I would use it (e.g. create CNx (according to the parameter data type) and connect it to the spare REXLANG Input).

        There are also functions GetExt* which enables you to read any scalar value within REXYGEN Project (see REXLANG Docs: https://www.rexygen.com/doc/PDF/ENGLISH/BRef_ENG.pdf#page=456).
        Note: don't overuse this functions since it makes the Project less "readable".

        Cheers, Tomas

        A 1 Reply Last reply Reply Quote 0
        • A
          Apollo @cechurat
          last edited by

          @cechurat

          Once I created a Subsystem to read 8 analog values and store them into InfluxDb (still somewhere to be found in the old forum). Now I wanted to double the number of inputs, so from 8 to 16. This makes that I am already using all the inputs of the REXLANG FB.

          The parameters which should be inherited by the REXLANG FB inside the subsystem are all the names of the data points and also the name of the measurement, thus 16 + 1 strings. (btw, a workaround could be to do some concatenation outside the REXLANG FB instead of inside)

          I 'll try with the GetExt function, so I'll need to create a CNS, which inherits the parameter, in the same level as where my REXLANG FB is located and use a relative path (e.g. .CNS:scv ) in the C-program, correct?

          Thx & grtz,

          Kris

          cechuratC 1 Reply Last reply Reply Quote 0
          • cechuratC
            cechurat @Apollo
            last edited by

            @apollo said in Extra parameters for REXLANG inside Subsystem?:

            'll try with the GetExt function, so I'll need to create a CNS, which inherits the parameter, in the same level as where my REXLANG FB is located and use a relative path (e.g. .CNS:scv ) in the C-program, correct?

            Yes, this is correct.

            Kind Regards,
            Tomas

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

            There is also an outdated REXYGEN community forum.

            Powered by NodeBB.