Using MemCopySecure in CFC editor

Hi.
I’m trying to use MemCopySecure from WagoSysPlainMem the in the CFC editor, and I’m faced with an issue. When compiling, I get the following error:

[ERROR] Too few outputs exixts for the box ‘MemCopySecure’ (minimum is 1).

I’ve been able to work around this by triggering it in an action, but that’s a little bit cumbersome. Is there any other way to get it working?

Hello sommerz,

unfortunately, CFC always requires functions with a return value, so your workaround is correct. There is no other option in the CFC editor. Alternatively, you can work with a different implementation language.

Hi Florian,
thank you for the feedback.

I guess another option would be to write a function block in ST that implements MemCopySecure, but adds a dummy output to make it work in CFC.

Merry Christmas.