How Can i Configure User Event Task in PLC Next Engineering?
I want to Call Some of My POU on Bit which is available in my PLC Logic or Digital Input Can i Use this Feature?
How Can i Configure User Event Task in PLC Next Engineering?
I want to Call Some of My POU on Bit which is available in my PLC Logic or Digital Input Can i Use this Feature?
There was a discussion about this feature back in 2019, here:
[url="https://www.plcnext-community.net/forum/#/discussion/497/user-event-task"]https://www.plcnext-community.net/forum/#/discussion/497/user-event-task[/url] Unfortunately it seems that the EVENT_TASK function block mentioned in the help system has still not made it into PLCnext Engineer. In the mean time, it is possible to trigger user event tasks from C++ code, as described in the other thread.
I Read this Thing But i dont know where i can write C++ Code.
Can you Please help me in that. Where i can Write #include "Arp/Plc/Commons/Esm/RtEventManagerProxy.hpp" Arp::String eventName = "EventName"; Arp::Plc::Commons::Esm::RtEventManagerProxy& rtEventManagerProxy = Arp::Plc::Commons::Esm::RtEventManagerProxy::GetInstance(); this->rtEventPtr = rtEventManagerProxy.GetEvent(eventName); if (this->rtEventPtr != nullptr) { this->rtEventPtr->Set(); } this stuff?
Answered in the other thread.