How can I define optional and mandatory input values for methods?

0
Hello, how can I define optional inputs and mandatory inputs of a method? For example this method: METHOD Test     VAR_INPUT            inputMandatory : INT;            inputOptional : INT := 10;    END_VAR // Do something ; END_METHOD   But if I call this method in this way "THIS.Test()", the compiler don't recognize that the first input is not optional and it will be needed. How can I declare it, that I have to fill the first input?   Regards
asked
1 answers
0

Repost comment as answer:

 

Hello Timo,

 

Thank you for your inquiry. Currently, the feature to define mandatory and optional inputs in the way you described is not available. However, it is a known requirement and is being considered for future enhancements. Unfortunately, I cannot provide a specific timeline for when this feature will be implemented. If you have further questions or need additional assistance, please feel free to reach out.

 

Best regards

Juergen

answered