TcLog
TcLog copied to clipboard
Usage with multiple tasks/cores
Could you provide some additional detail on the use of TcLog (a great library btw) in an environment where the TcLogCore.RunLogger() may be called from a different task than callers of the TcLog methods (with the TcLogCore task running on the same or possibly different core)?
An example:
- Task 1 includes the majority of PLC code, running at 1ms cycle time on Core 0. Many calls to TcLog methods are made from POUs running in this task.
- Task 2 includes the cyclic call to TcLogCore.RunLogger(), and runs at 1ms cycle time, or possibly slower, on Core 0 or possibly a different core.
Is this arrangement permitted? If so, are there constraints to be aware of?
So far I have not tested this setup. And unfortunately, due to current time constraints, this is unlikely to happen soon.
But I'll leave this open for discussion here. If anyone has insights, please share 👍