Hi,
Is there an equivalent of the C++ Sleep function for BnR Automation C++?
Thanks and Regards,
Kenneth
Hi,
Is there an equivalent of the C++ Sleep function for BnR Automation C++?
Thanks and Regards,
Kenneth
Hi,
not as I know.
But even if there would be something comparable available, using a sleep() inside an isocronous realtime system could / would be very dangerous because of possible violations of the cycle times, so in cyclic systems “sleeping” should be avoided anyway in user tasks.
Best regards!
Hi,
there are some limitations which C++ functions could be used
Using the C++ Standard Library
and threading is not supported.
you can for example use a state machine to get something similar
As and addition to @christoph.hilchenbac s proposal.
You can use the functions and functionblocks from IEC libraries in C++.
Automation Help: Using function blocks in ANSI C / C++