You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
my background lays in other programming languages where it is usually not appropriate to manually change the source code of libraries. That's why I was a bit perplexed when it is encouraged to change the values of GPL_JSON to suit my needs.
So I was wondering if it is possible to have optional arguments for the JSON_TO_STRUCT and STRUCT_TO_JSON function blocks. I would be fine if the GPL_JSON stays the way it is (for default values perhaps) but I think it would be nice to offer the option to bypass this values when creating objects out of these function blocks.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hey,
that would make it possible but that was not my goal. Instead, my original goal is that these GPL_JSON values do not need to be changed manually in the source code. In my opinion it is not an elegant solution that I have to go in the libary to increase the value size for example.
Like I said, I am used to other prgramming languages where it is not appropriate to change the source code of external libraries. I am not sure if this is a normal process in CODESYS however.
the smat thing is, you can change these var of a library in you project. All vars in a parameter var list can be changed independed for each project on there needs:
Hi,
my background lays in other programming languages where it is usually not appropriate to manually change the source code of libraries. That's why I was a bit perplexed when it is encouraged to change the values of GPL_JSON to suit my needs.
So I was wondering if it is possible to have optional arguments for the JSON_TO_STRUCT and STRUCT_TO_JSON function blocks. I would be fine if the GPL_JSON stays the way it is (for default values perhaps) but I think it would be nice to offer the option to bypass this values when creating objects out of these function blocks.
Thanks in advance!
The text was updated successfully, but these errors were encountered: