climblinne - 2025-01-13

Hello,

I am already able to run an OPC UA method in Codesys. Now my question, how can I interact with other tasks (e.g. read an SDO from EtherCAT and return it by the function)?

The OPC UA method seems to be called only once (I tried to return BOOL or UINT values).

Up to now I only found to do a while loop to wait for the result of the other task.

Is there a better way to do it?
Is this the way OPC UA functions should be used (for "not too long" function calls) or should I use another mechanism (method: Start, event: Finish, method: getResult)?

Regards

 

Last edit: climblinne 2025-01-13