Solved Extra parameters for REXLANG inside Subsystem?
-
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? -
@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
-
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
-
@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